|
|||||||||
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
Field Summary | |
private static java.lang.String |
copyright
|
protected java.util.Hashtable |
dbSearchTypeInfo
|
protected java.sql.ResultSet |
resultSet
|
protected int |
resultSetType
|
protected DatabaseCompoundType |
rowStruct
|
Fields inherited from class com.ibm.db.base.DatabaseStatement |
conn,
copyright,
isOpen,
qSpec |
Constructor Summary | |
DatabaseResultTableParent()
This method was created in VisualAge. |
|
DatabaseResultTableParent(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 | |
boolean |
absoluteRow(int row)
This method positions the cursor on the specified row of the result set. |
abstract void |
addQuerySpec(DatabaseQuerySpec aQuerySpec)
This method was created by a SmartGuide. |
abstract void |
cancel()
This method sends cancel() to the JDBC statement instance. |
private void |
checkSearchLevel(java.lang.String columnTypeName,
DatabaseTypeField columnType)
Checks the search level for the column, based on the columnTypeName and the TypeInfo obtained from the DatabaseMetaData. |
void |
clearWarnings()
This method was created in VisualAge. |
void |
close()
This method sends close() to the JDBC ResultSet instance. |
abstract void |
closeStatement()
This method sends close() to the JDBC statement instance. |
protected void |
describe()
This method describes the row structure of the result table |
protected void |
describeCol(int columnIndex,
DatabaseCompoundType compoundType,
java.sql.ResultSetMetaData metaData)
This method adds the appropriate field instance that maps to the Sql Data type |
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 void |
fillInColumnShape()
|
abstract java.lang.String |
getCursorName()
This method returns the row structure (type) |
java.sql.ResultSetMetaData |
getMetaData()
This method returns the JDBC result set meta data. |
protected java.sql.ResultSet |
getResultSet()
This method returns the JDBC result set |
DatabaseRow |
getRow()
This method was created by a SmartGuide. |
int |
getRowNumber()
This method the row number where the ResultSet cursor is currently posititioned. |
DatabaseCompoundType |
getRowStruct()
This method returns the row structure (type) |
int |
getType()
This method returns the type of the java.sql.ResultSet Types are: TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, and TYPE_SCROLL_SENSITIVE |
abstract java.sql.SQLWarning |
getWarnings()
This method was created in VisualAge. |
boolean |
lastRow()
This method positions the cursor on the last row of the result set. |
protected DatabaseRow |
newEmptyRow()
This method returns an empty row with the same type of the result table row structure |
boolean |
nextRow()
This method positions the cursor on the next row of the result set. |
boolean |
previousRow()
This method positions the cursor on the previous row of the result set. |
abstract void |
refresh()
|
abstract void |
refresh(DatabaseRow parms)
|
boolean |
relativeRow(int offset)
This method positions the cursor on the row of the result set at the requested offset from the current cursor position. |
protected void |
setQuerySpec(DatabaseQuerySpec aQuerySpec)
This method was created by a SmartGuide. |
protected void |
setResultSet(java.sql.ResultSet aResultSet)
This method was created by a SmartGuide. |
protected void |
setRowStruct(DatabaseCompoundType aRowStruct)
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 com.ibm.db.base.DatabaseStatement |
getConnection,
getQuerySpec,
isCallStatement,
isOpen,
isSelectStatement,
setConnection,
setIsOpen |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected DatabaseCompoundType rowStruct
protected java.sql.ResultSet resultSet
protected int resultSetType
protected transient java.util.Hashtable dbSearchTypeInfo
private static final java.lang.String copyright
Constructor Detail |
public DatabaseResultTableParent()
public DatabaseResultTableParent(DatabaseConnection aConnection, DatabaseQuerySpec aQuerySpec)
Method Detail |
public boolean absoluteRow(int row) throws java.sql.SQLException
public abstract void addQuerySpec(DatabaseQuerySpec aQuerySpec)
aQuerySpec
- DatabaseQuerySpecpublic abstract void cancel() throws java.sql.SQLException
private void checkSearchLevel(java.lang.String columnTypeName, DatabaseTypeField columnType) throws java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public abstract void closeStatement() throws java.sql.SQLException
protected void describe() throws java.sql.SQLException, DataException
protected void describeCol(int columnIndex, DatabaseCompoundType compoundType, java.sql.ResultSetMetaData metaData) throws java.sql.SQLException, DataException
public abstract void execute() throws java.sql.SQLException, DataException
public abstract void execute(DatabaseRow aRow) throws java.sql.SQLException, DataException
protected void fillInColumnShape() throws java.sql.SQLException, DataException
public abstract java.lang.String getCursorName() throws java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
protected java.sql.ResultSet getResultSet()
public DatabaseRow getRow() throws java.sql.SQLException, DataException
public int getRowNumber() throws java.sql.SQLException
public DatabaseCompoundType getRowStruct()
public int getType()
public abstract java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public boolean lastRow() throws java.sql.SQLException
protected DatabaseRow newEmptyRow()
public boolean nextRow() throws java.sql.SQLException
public boolean previousRow() throws java.sql.SQLException
public abstract void refresh() throws java.sql.SQLException, DataException
public abstract void refresh(DatabaseRow parms) throws java.sql.SQLException, DataException
public boolean relativeRow(int offset) throws java.sql.SQLException
protected void setQuerySpec(DatabaseQuerySpec aQuerySpec)
aQuerySpec
- DatabaseQuerySpecprotected void setResultSet(java.sql.ResultSet aResultSet)
aResultSet
- ResultSetprotected void setRowStruct(DatabaseCompoundType aRowStruct)
aRowStruct
- DatabaseCompoundTypepublic 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 |