|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.base.DatabaseStatement
Field Summary | |
protected DatabaseConnection |
conn
|
private static java.lang.String |
copyright
|
protected boolean |
isOpen
|
protected DatabaseQuerySpec |
qSpec
|
Constructor Summary | |
DatabaseStatement()
This method was created in VisualAge. |
|
DatabaseStatement(DatabaseConnection aConnection,
DatabaseQuerySpec aQuerySpec)
This constructor sets the connection,name,and query spec It then prepares and executes the statement which produces a JDBC result set |
Method Summary | |
abstract void |
cancel()
This method sends cancel() to the JDBC statement instance. |
abstract void |
clearWarnings()
This method was created in VisualAge. |
abstract void |
closeStatement()
This method sends close() to the JDBC statement instance. |
abstract void |
execute()
This method executes the sql statement, and retrieves a JDBC result set (if any) |
abstract void |
execute(DatabaseRow aRow)
This method executes the sql statement, and retrieves a JDBC result set (if any) |
protected DatabaseConnection |
getConnection()
This method returns the connection |
protected DatabaseQuerySpec |
getQuerySpec()
This method returns the query spec |
abstract java.sql.SQLWarning |
getWarnings()
This method was created in VisualAge. |
static boolean |
isCallStatement(java.lang.String sql)
|
boolean |
isOpen()
This method checks if the table is still open |
static boolean |
isSelectStatement(java.lang.String sql)
|
protected void |
setConnection(DatabaseConnection aConnection)
This method was created by a SmartGuide. |
protected void |
setIsOpen(boolean aValue)
This method was created by a SmartGuide. |
protected void |
setQuerySpec(DatabaseQuerySpec aQuerySpec)
This method was created by a SmartGuide. |
abstract void |
setTimeout(int seconds)
This method sets the query timeout of the JDBC statement |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected boolean isOpen
protected DatabaseQuerySpec qSpec
protected DatabaseConnection conn
private static final java.lang.String copyright
Constructor Detail |
public DatabaseStatement()
public DatabaseStatement(DatabaseConnection aConnection, DatabaseQuerySpec aQuerySpec)
Method Detail |
public abstract void cancel() throws java.sql.SQLException
public abstract void clearWarnings() throws java.sql.SQLException
public abstract void closeStatement() throws java.sql.SQLException
public abstract void execute() throws java.sql.SQLException, DataException
public abstract void execute(DatabaseRow aRow) throws java.sql.SQLException, DataException
protected DatabaseConnection getConnection()
protected DatabaseQuerySpec getQuerySpec()
public abstract java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public static boolean isCallStatement(java.lang.String sql) throws DataException
public boolean isOpen()
public static boolean isSelectStatement(java.lang.String sql) throws DataException
protected void setConnection(DatabaseConnection aConnection)
aParameter
- intprotected void setIsOpen(boolean aValue)
protected void setQuerySpec(DatabaseQuerySpec aQuerySpec)
aQuerySpec
- DatabaseQuerySpecpublic abstract void setTimeout(int seconds) throws java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |