|
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.dml.DML
DML represents a Data Manipulation Language (DML)
statement. This class is the superclass for all DML Structured
Query Language (SQL) statement classes.
Select - Select one or more rows from a database table.Insert - Insert a row into from a database table.Update - Update one or more rows in a database table.Delete - Delete one or more rows from a database table.DML class is declared abstract and cannot be instantiated.
Select,
Insert,
Update,
Delete,
Serialized Form| Field Summary | |
protected SQLHelper |
sql
The SQL helper object for this DML
statement. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
protected |
DML(String command)
Constructs a new DML statement object for the specified
SQL command. |
protected |
DML(String command,
Table table)
Constructs a new DML statement object for the specified
SQL command Database
Table definition. |
| Method Summary | |
protected void |
finalize()
Ensures the DML statement Database
Connection is closed when called by the garbage collector. |
protected Column |
getColumn(Column column,
String method)
Returns the actual Table Column definition
for the specified Column definition. |
Connection |
getConnection()
Returns the Database Connection to use to execute
the DML statement. |
Table |
getTable()
Returns the Database Table definition
for this DML statement. |
DML |
setTable(Table table)
Sets the Database Table definition
for this DML statement. |
| Methods inherited from class com.jdc.rdb.sql.SQL |
addClause, execute, getClause, getCommand, getStatement, isValid, 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 DML
statement.
| Constructor Detail |
protected DML(String command)
DML statement object for the specified
SQL command.
SQLInvalidException - No DML command is specified.
protected DML(String command,
Table table)
DML statement object for the specified
SQL command Database
Table definition.
SQLInvalidException - No DML command
is specified or no database, schema, or table definition
is specified.| Method Detail |
protected void finalize()
DML statement Database
Connection is closed when called by the garbage collector.
finalize in class SQL
protected Column getColumn(Column column,
String method)
Table Column definition
for the specified Column definition. The calling method
name may also be specified (to isolate exceptions).
Table Column definition.
SQLInvalidException - No column is specified or an invalid
table column is specified.public Connection getConnection()
Database Connection to use to execute
the DML statement. If no Database Connection
is specified, this class obtains a Connection from the Database
Table definition.
getConnection in class SQLDatabase Connection to use.public Table getTable()
Database Table definition
for this DML statement.
Database Table definition.public DML setTable(Table table)
Database Table definition
for this DML statement.
DML statement object.
SQLInvalidException - No table definition is specified.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||