|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.sqlutil.parsql.CreateTableStatement
An SQL CREATE statement. CreateStatement ::= CREATE TABLE name ( field_name field_type [modifiers], ... ) field_type ::= DATE | YEAR | ENUM | SET | ... modifiers ::= AUTO_INCREMENT | BINARY | NOT NULL | ...
Constructor Summary | |
CreateTableStatement(java.lang.String tableName)
Create a CREATE statement on a given table |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if cts represents exactly the same CREATE TABLE statement as 'this'. |
java.util.Vector |
getColumns()
Returns the columns. |
java.lang.String |
getDifferenceMessage()
Returns a message outlining the reason for equals() returning false. |
java.lang.String |
getTableName()
Returns the tableName. |
boolean |
isEquivalentTo(CreateTableStatement createTable)
Returns true if cts is equivalent to this CreateTableStatement. |
static CreateTableStatement |
parse(java.lang.String createStatement)
Parses the CREATE TABLE statement into a CreateTableStatement object. |
void |
setColumns(java.util.Vector columns)
Sets the list of columns. |
void |
setPrimaryKeyColumns(java.util.Vector pks)
Sets the list of primary key columns. |
void |
setTableName(java.lang.String tableName)
Sets the tableName. |
java.lang.String |
toString()
Returns this CREATE statement as an SQL String. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CreateTableStatement(java.lang.String tableName)
tableName
- Name of table to create.Method Detail |
public void setColumns(java.util.Vector columns)
columns
- The list of ColumnDefinition objects.public java.util.Vector getColumns()
public void setPrimaryKeyColumns(java.util.Vector pks)
pks
- Column names that form the Primary Key.public void setTableName(java.lang.String tableName)
tableName
- The tableName to setpublic java.lang.String getTableName()
public boolean equals(java.lang.Object obj)
public boolean isEquivalentTo(CreateTableStatement createTable)
createTable
- CreateTableStatement.
public static CreateTableStatement parse(java.lang.String createStatement) throws org.edg.info.sqlutil.parsql.ParseException
createStatement
- SQL CREATE TABLE statement as a String.
ParseException
- Thrown if the CREATE TABLE statement is invalid.public java.lang.String getDifferenceMessage()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |