|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQL
|
+--com.jdc.rdb.sql.ddl.DDL
|
+--com.jdc.rdb.sql.ddl.create.Create
Create represents a Data Definition Language CREATE
SQL statement. The Create statement creates a
new Database Object.
Schema,
Table,
IfNotExists,
Serialized Form| Field Summary | |
static String |
COMMAND
The Create statement command keyword. |
| Fields inherited from class com.jdc.rdb.sql.ddl.DDL |
sql |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Create()
Constructs a new Create statement object. |
|
Create(Schema schema)
Constructs a new Create statement object for the specified
Database Schema definition. |
|
Create(String statement)
Constructs a new Create statement object for the specified
SQL String. |
|
Create(Table table)
Constructs a new Create statement object for the specified
Database Table definition. |
|
| Method Summary | |
CreateStatus |
execute()
Executes the Create statement and returns
a CreateStatus object. |
String |
getColumns()
Returns the columns clause for the CREATE command. |
String |
getConstraint()
Returns the CONSTRAINT clause for the CREATE command. |
String |
getUnique()
Returns the UNIQUE clause for the CREATE command. |
Create |
set(CreateClause clause)
Sets a CreateClause for this Create statement. |
Create |
setColumns(String columnNames)
Sets the columns clause for the CREATE command. |
Create |
setColumns(String[] columnNames)
Sets the columns clause for the CREATE command. |
Create |
setConstraint(String constraintClause)
Sets the optional CONSTRAINT clause for the CREATE command. |
Create |
setUnique(String uniqueClause)
Sets the optional UNIQUE clause for the CREATE command. |
| Methods inherited from class com.jdc.rdb.sql.ddl.DDL |
finalize, getConnection, getDatabase, getObject, isValid, setObject |
| Methods inherited from class com.jdc.rdb.sql.SQL |
addClause, execute, getClause, getCommand, getStatement, setCommand, setConnection, setStatement, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String COMMAND
Create statement command keyword.
| Constructor Detail |
public Create()
Create statement object.
public Create(Schema schema)
Create statement object for the specified
Database Schema definition.
SQLInvalidException - No schema definition is specified.public Create(Table table)
Create statement object for the specified
Database Table definition.
SQLInvalidException - No table definition is specified.public Create(String statement)
Create statement object for the specified
SQL String. If you specify a
custom SQL String, you must also specify
a Database Connection to use.
SQLInvalidException - No CREATE statement is specified.SQL.setConnection(java.sql.Connection)| Method Detail |
public CreateStatus execute()
Create statement and returns
a CreateStatus object.
Create statement status.public String getColumns()
public String getConstraint()
public String getUnique()
public Create set(CreateClause clause)
CreateClause for this Create statement. Use
this method to specify a custom Create clause.
Create statement object.
SQLInvalidException - No DROP statement clause is specified.public Create setColumns(String columnNames)
public Create setColumns(String[] columnNames)
public Create setConstraint(String constraintClause)
public Create setUnique(String uniqueClause)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||