|
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
DDL represents a Data Definition Language (DDL)
statement. This class is the superclass for all DDL Structured
Query Language (SQL) statement classes.
Create - Create a new database table.Alter - Alter an existing database table.Drop - Drop an existing database table.DDL class is declared abstract and cannot be instantiated.
Create,
Alter,
Drop,
Serialized Form| Field Summary | |
protected SQLHelper |
sql
The SQL helper object for this DDL
statement. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
protected |
DDL(String command)
Constructs a new DDL statement object for the specified
SQL command. |
protected |
DDL(String command,
Object object)
Constructs a new DDL statement object for the specified
SQL command Database
Object. |
| Method Summary | |
protected void |
finalize()
Ensures the DDL statement Database
Connection is closed when called by the garbage collector. |
Connection |
getConnection()
Returns the Database Connection to use to execute
the DDL statement. |
protected Database |
getDatabase()
Returns the Database definition for this DDL
statement. |
Object |
getObject()
Returns the Database Object for this
DDL statement. |
protected boolean |
isValid()
Returns true if the DDL statement is valid. |
DDL |
setObject(Object object)
Sets the Database Object for this
DDL statement. |
| 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 |
protected final SQLHelper sql
SQL helper object for this DDL
statement.
| Constructor Detail |
protected DDL(String command)
DDL statement object for the specified
SQL command.
SQLInvalidException - No DDL command is specified.
protected DDL(String command,
Object object)
DDL statement object for the specified
SQL command Database
Object.
SQLInvalidException - No DDL command is specified,
no database object is specified, or the object type is
not valid.| Method Detail |
protected void finalize()
DDL statement Database
Connection is closed when called by the garbage collector.
finalize in class SQLpublic Connection getConnection()
Database Connection to use to execute
the DDL statement. If no Database Connection
is specified, this class obtains a Connection from the Database
Schema or Table definition.
getConnection in class SQLDatabase Connection to use.protected Database getDatabase()
Database definition for this DDL
statement.
Database definition.public Object getObject()
Database Object for this
DDL statement.
Database Object.public DDL setObject(Object object)
Database Object for this
DDL statement.
DDL statement object.
SQLInvalidException - No database object is specified or the
object type is not valid.protected boolean isValid()
isValid in class SQLTrue if the SQL statement is valid. False if the SQL statement is not valid
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||