|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.base.DatabaseStatement | +--com.ibm.db.base.DatabaseResultTableParent | +--com.ibm.db.base.DatabaseResultTable
Field Summary | |
protected boolean |
afterLastResult
|
private java.sql.PreparedStatement |
aStmt
|
private static java.lang.String |
copyright
|
protected java.util.Enumeration |
qSpecEnum
|
protected java.util.Vector |
qSpecVector
|
protected int |
resultCount
|
protected int |
updateCount
|
Fields inherited from class com.ibm.db.base.DatabaseResultTableParent |
copyright,
dbSearchTypeInfo,
resultSet,
resultSetType,
rowStruct |
Fields inherited from class com.ibm.db.base.DatabaseStatement |
conn,
copyright,
isOpen,
qSpec |
Constructor Summary | |
DatabaseResultTable(DatabaseConnection aConnection,
DatabaseQuerySpec aQuerySpec,
int type)
This constructor sets the connection,name,and query spec It then prepares and executes the statement which produces a JDBC result set |
Method Summary | |
void |
addQuerySpec(DatabaseQuerySpec aQuerySpec)
This method was created by a SmartGuide. |
void |
cancel()
This method sends cancel() to the JDBC statement instance. |
void |
closeStatement()
This method sends close() to the JDBC statement instance. |
void |
execute()
This method executes the sql statement, and retrieves a JDBC result set (if any) |
void |
execute(DatabaseRow aRow)
This method executes the sql statement, and retrieves a JDBC result set (if any) |
void |
executeUpdate()
This method executes the sql statement, and retrieves a JDBC result set (if any) |
void |
executeUpdate(DatabaseRow aRow)
This method executes the sql statement, and retrieves a JDBC result set (if any) |
private void |
fetchResultSet()
This method was created in VisualAge. |
boolean |
getAfterLastResult()
This method was created in VisualAge. |
java.lang.String |
getCursorName()
This method returns the cursor name associated with the java.sql.ResultSet |
java.lang.Object |
getParameter(int parameterNumber,
DatabaseTypeField type)
Returns the value of the parameter at the specified index. |
private java.sql.PreparedStatement |
getStatement()
This method returns the JDBC Prepared Statement |
int |
getUpdateCount()
This method was created in VisualAge. |
java.sql.SQLWarning |
getWarnings()
This method was created in VisualAge. |
protected boolean |
hasResultSet()
This method checks if the JDBC result set has been set |
void |
nextResult()
|
private void |
prepare(int type)
This method prepares the sql statement |
void |
refresh()
|
void |
refresh(DatabaseRow parms)
|
private void |
registerOutputParameters()
|
private void |
setInputValues(DatabaseRow aRow)
Sets the host var values passed in aRow. |
protected void |
setQuerySpec(DatabaseQuerySpec aQuerySpec)
This method was created by a SmartGuide. |
private void |
setStatement(java.sql.PreparedStatement aStatement)
This method was created by a SmartGuide. |
void |
setTimeout(int seconds)
This method sets the query timeout of the JDBC statement |
Methods inherited from class com.ibm.db.base.DatabaseResultTableParent |
absoluteRow,
checkSearchLevel,
clearWarnings,
close,
describe,
describeCol,
fillInColumnShape,
getMetaData,
getResultSet,
getRow,
getRowNumber,
getRowStruct,
getType,
lastRow,
newEmptyRow,
nextRow,
previousRow,
relativeRow,
setResultSet,
setRowStruct |
Methods inherited from class com.ibm.db.base.DatabaseStatement |
getConnection,
getQuerySpec,
isCallStatement,
isOpen,
isSelectStatement,
setConnection,
setIsOpen |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.sql.PreparedStatement aStmt
private static final java.lang.String copyright
protected java.util.Vector qSpecVector
protected java.util.Enumeration qSpecEnum
protected int resultCount
protected int updateCount
protected boolean afterLastResult
Constructor Detail |
public DatabaseResultTable(DatabaseConnection aConnection, DatabaseQuerySpec aQuerySpec, int type) throws java.sql.SQLException, DataException
Method Detail |
public void addQuerySpec(DatabaseQuerySpec aQuerySpec)
aQuerySpec
- DatabaseQuerySpecpublic void cancel() throws java.sql.SQLException
public void closeStatement() throws java.sql.SQLException
public void execute() throws java.sql.SQLException, DataException
public void execute(DatabaseRow aRow) throws java.sql.SQLException, DataException
public void executeUpdate() throws java.sql.SQLException, DataException
public void executeUpdate(DatabaseRow aRow) throws java.sql.SQLException, DataException
private void fetchResultSet() throws java.sql.SQLException, DataException
public boolean getAfterLastResult()
public java.lang.String getCursorName() throws java.sql.SQLException
public java.lang.Object getParameter(int parameterNumber, DatabaseTypeField type) throws java.sql.SQLException
parameterNumber
- index of the parametertype
- DatabaseTypeField associated with the parameterprivate java.sql.PreparedStatement getStatement()
public int getUpdateCount()
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
protected boolean hasResultSet()
public void nextResult() throws java.sql.SQLException, DataException
private void prepare(int type) throws java.sql.SQLException, DataException
public void refresh() throws java.sql.SQLException, DataException
public void refresh(DatabaseRow parms) throws java.sql.SQLException, DataException
private void registerOutputParameters() throws java.sql.SQLException
private void setInputValues(DatabaseRow aRow) throws java.sql.SQLException
protected void setQuerySpec(DatabaseQuerySpec aQuerySpec)
aQuerySpec
- DatabaseQuerySpecprivate void setStatement(java.sql.PreparedStatement aStatement)
aStatement
- PreparedStatementpublic void setTimeout(int seconds) throws java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |