|
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
SQL represents a Structured Query Language (SQL)
statement. This class is the superclass for all Data Definition Language
(DDL) and Data Manipulation Language (DML) statement
classes.
DDL and DML
statement classes for the specific SQL statements supported..
DDL,
DML,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
SQL(String statement)
Constructs a new SQL statement object for the specified
SQL statement. |
|
| Method Summary | |
protected void |
addClause(int index,
Clause clause)
Adds the specified SQL Clause
for this SQL Statement to the list
of SQL statement clauses. |
SQLStatus |
execute(boolean displayMessages)
Executes the requested SQL statement. |
protected void |
finalize()
Ensures the SQL statement Database
Connection is closed when called by the garbage collector. |
protected SQLClause |
getClause(Class clause)
Returns the SQL statement clause for the specified
SQL statement clause Class. |
String |
getCommand()
Returns the SQL statement command. |
Connection |
getConnection()
Returns the Database Connection to use to execute
the SQL statement. |
String |
getStatement()
Returns the SQL statement. |
protected boolean |
isValid()
Returns true if the SQL statement is valid. |
protected SQL |
setCommand(String command)
Sets the SQL statement command. |
SQL |
setConnection(Connection connection)
Sets the Database Connection to use to execute
the SQL statement. |
protected SQL |
setStatement(String statement)
Sets the SQL statement. |
String |
toString()
Returns a String representation of this SQL statement. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SQL(String statement)
SQL statement object for the specified
SQL statement.
SQLInvalidException - No SQL statement or
command is specified.| Method Detail |
protected void addClause(int index,
Clause clause)
SQL Clause
for this SQL Statement to the list
of SQL statement clauses. Specify an SQL statement
clause position from 1 to 15; otherwise, specify -1 to add the SQL
statement clause to the end of the list.
protected void finalize()
SQL statement Database
Connection is closed when called by the garbage collector.
finalize in class Objectpublic SQLStatus execute(boolean displayMessages)
protected SQLClause getClause(Class clause)
SQL statement clause for the specified
SQL statement clause Class.
public String getCommand()
SQL statement command.
SQL statement command.public Connection getConnection()
Database Connection to use to execute
the SQL statement.
Database Connection to use.public String getStatement()
SQL statement.
SQL statement.protected boolean isValid()
true if the SQL statement is valid.
True if the SQL statement is valid. False if the SQL statement is not validpublic SQL setConnection(Connection connection)
Database Connection to use to execute
the SQL statement.
SQL statement object.protected SQL setCommand(String command)
SQL statement command.
SQL statement object.
SQLInvalidException - No SQL statement command is specified.protected SQL setStatement(String statement)
SQL statement.
SQL statement object.
SQLInvalidException - No SQL statement is specified.public String toString()
String representation of this SQL statement.
toString in interface StatementtoString in class ObjectString representation of this SQL statement.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||