|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ASTCreateTable.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/* JJT: 0.2.2 */
|
|
| 2 |
|
|
| 3 |
package mobisnap.mobile_trx;
|
|
| 4 |
|
|
| 5 |
/**
|
|
| 6 |
* Creates table
|
|
| 7 |
*
|
|
| 8 |
*/
|
|
| 9 |
public class ASTCreateTable extends mobisnap.mobile_trx.SimpleNode { |
|
| 10 |
ASTTableReference tablename; |
|
| 11 |
public MSQLTable table;
|
|
| 12 |
|
|
| 13 | 0 |
public ASTCreateTable(int id) { |
| 14 | 0 |
super(id);
|
| 15 |
} |
|
| 16 |
|
|
| 17 | 0 |
public ASTCreateTable( MobisnapSQL p, int i) { |
| 18 | 0 |
super( p, i);
|
| 19 | 0 |
id = i; |
| 20 |
} |
|
| 21 |
|
|
| 22 |
/** Accept the visitor. **/
|
|
| 23 | 0 |
public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
|
| 24 | 0 |
return visitor.visit(this, data); |
| 25 |
} |
|
| 26 |
|
|
| 27 | 0 |
public void process( int msql_type) throws Exception { |
| 28 | 0 |
StringBuffer buffer = new StringBuffer();
|
| 29 | 0 |
sourceCode( msql_type, buffer); |
| 30 | 0 |
MobisnapSQL.transaction.executeUpdate( buffer.toString().trim()); |
| 31 |
} |
|
| 32 |
|
|
| 33 | 0 |
public String tableName( int msql_type) throws Exception { |
| 34 | 0 |
StringBuffer buffer = new StringBuffer();
|
| 35 | 0 |
tablename.sourceCode( msql_type, buffer); |
| 36 | 0 |
return buffer.toString().trim();
|
| 37 |
} |
|
| 38 |
|
|
| 39 |
} |
|
| 40 |
|
|
||||||||||