|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.StatementResult
StatementResult represents a result set from a executing an SQL statement.
Field Summary | |
protected StatementResultAfterListener |
aStatementResultAfterListener
|
protected StatementResultBeforeListener |
aStatementResultBeforeListener
|
private static java.lang.String |
copyright
|
protected int |
fieldNumRows
|
protected DatabaseResultTableParent |
rt
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
StatementResult()
Constructs a new StatementResult. |
Method Summary | |
void |
addStatementResultAfterListener(StatementResultAfterListener listener)
Adds the StatementResultAfterListener. |
void |
addStatementResultBeforeListener(StatementResultBeforeListener listener)
Adds the StatementResultBeforeListener. |
abstract void |
closeResult()
Closes the result set. |
abstract java.util.Enumeration |
columnNames()
Returns an enumeration containing the names of the columns in the result set. |
abstract void |
deleteRow()
Deletes a row. |
protected void |
finalize()
Code to perform when this object is garbage collected. |
protected void |
fireAboutToAddNewRow(DataEvent event)
Method to support listener events. |
protected void |
fireAboutToClose(DataEvent event)
Method to support listener events. |
protected void |
fireAboutToDeleteRow(DataEvent event)
Method to support listener events. |
protected void |
fireAboutToUpdateRow(DataEvent event)
Method to support listener events. |
protected void |
fireAddedNewRow(DataEvent event)
Method to support listener events. |
protected void |
fireClosed(DataEvent event)
Method to support listener events. |
protected void |
fireDeletedRow(DataEvent event)
Method to support listener events. |
protected void |
fireUpdatedRow(DataEvent event)
Method to support listener events. |
abstract int |
getColumnCount()
Returns the number of columns in the result set. |
abstract java.lang.String |
getColumnName(int columnNumber)
Returns the name of the column at the specified index. |
abstract java.lang.Object |
getColumnValue(int columnNumber)
Returns the value of the column at the specified index. |
abstract java.lang.Object |
getColumnValue(java.lang.String columnName)
Returns the value of the column with the specified name. |
abstract java.lang.String |
getColumnValueToString(int columnNumber)
Returns the value of the column at the specified index as a String. |
abstract java.lang.String |
getColumnValueToString(java.lang.String columnName)
Returns the value of the column with the specified name as a String. |
java.sql.ResultSetMetaData |
getJDBCMetaData()
Returns the java.sql.ResultSetMetaData associated with this StatementResult. |
int |
getNumRows()
Returns the number of rows in the result set. |
protected DatabaseResultTableParent |
getResultTable()
Returns the DatabaseResultTable associated with the StatementResult. |
protected static void |
handleSQLException(java.sql.SQLException ex)
This method was created by a SmartGuide. |
protected abstract void |
initialize()
Initializes the StatementResult. |
boolean |
isOpen()
Returns true if the result set is open in the database and can be accessed, otherwise returns false. |
void |
removeStatementResultAfterListener(StatementResultAfterListener listener)
Removes the StatementResultAfterListener. |
void |
removeStatementResultBeforeListener(StatementResultBeforeListener listener)
Removes the StatementResultBeforeListener. |
abstract void |
restoreRow()
Restores a row's column values to those last known to be in the database. |
abstract void |
setColumnValue(int columnNumber,
java.lang.Object aValue)
Sets the value of the column at the specified index to the specified value. |
abstract void |
setColumnValue(java.lang.String columnName,
java.lang.Object aValue)
Sets the value of the column with the specified name to the specified value. |
abstract void |
setColumnValueFromString(int columnNumber,
java.lang.String stringValue)
Sets the value of the column at the specified index to the specified value. |
abstract void |
setColumnValueFromString(java.lang.String columnName,
java.lang.String stringValue)
Sets the value of the column with the specified name to the specified value. |
protected void |
setResultTable(DatabaseResultTable resultTable)
This method was created in VisualAge. |
protected void |
setResultTable(DatabaseResultTableParent resultTable)
This method was created in VisualAge. |
abstract void |
updateRow()
Updates a row. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int fieldNumRows
protected transient DatabaseResultTableParent rt
protected transient StatementResultBeforeListener aStatementResultBeforeListener
protected transient StatementResultAfterListener aStatementResultAfterListener
static final long serialVersionUID
private static final java.lang.String copyright
Constructor Detail |
public StatementResult()
Method Detail |
public void addStatementResultAfterListener(StatementResultAfterListener listener)
listener
- StatementResultAfterListenerStatementResultAfterListener
,
removeStatementResultAfterListener(com.ibm.db.StatementResultAfterListener)
public void addStatementResultBeforeListener(StatementResultBeforeListener listener)
listener
- StatementResultBeforeListenerStatementResultBeforeListener
,
removeStatementResultBeforeListener(com.ibm.db.StatementResultBeforeListener)
public abstract void closeResult() throws DataException
public abstract java.util.Enumeration columnNames() throws DataException
public abstract void deleteRow() throws DataException
protected void finalize() throws java.lang.Throwable
protected void fireAboutToAddNewRow(DataEvent event)
event
- DataEventprotected void fireAboutToClose(DataEvent event)
event
- DataEventprotected void fireAboutToDeleteRow(DataEvent event)
event
- DataEventprotected void fireAboutToUpdateRow(DataEvent event)
event
- DataEventprotected void fireAddedNewRow(DataEvent event)
event
- DataEventprotected void fireClosed(DataEvent event)
event
- DataEventprotected void fireDeletedRow(DataEvent event)
event
- DataEventprotected void fireUpdatedRow(DataEvent event)
event
- DataEventpublic abstract int getColumnCount() throws DataException
public abstract java.lang.String getColumnName(int columnNumber) throws DataException
columnNumber
- index of the columnpublic abstract java.lang.Object getColumnValue(int columnNumber) throws DataException
columnNumber
- index of the columnsetColumnValue(int, java.lang.Object)
public abstract java.lang.Object getColumnValue(java.lang.String columnName) throws DataException
columnName
- name of the columnsetColumnValue(int, java.lang.Object)
public abstract java.lang.String getColumnValueToString(int columnNumber) throws DataException
columnNumber
- index of the columnsetColumnValueFromString(int, java.lang.String)
public abstract java.lang.String getColumnValueToString(java.lang.String columnName) throws DataException
columnName
- name of the columnsetColumnValueFromString(int, java.lang.String)
public java.sql.ResultSetMetaData getJDBCMetaData() throws DataException
setColumnValueFromString(int, java.lang.String)
public int getNumRows()
newRow
method.protected DatabaseResultTableParent getResultTable()
DatabaseResultTable
protected static void handleSQLException(java.sql.SQLException ex) throws DataException
protected abstract void initialize() throws DataException
public boolean isOpen()
close
method has been invoked, or the
StatementResult has been serialized and then de-serialized.public void removeStatementResultAfterListener(StatementResultAfterListener listener)
listener
- StatementResultAfterListenerStatementResultAfterListener
,
addStatementResultAfterListener(com.ibm.db.StatementResultAfterListener)
public void removeStatementResultBeforeListener(StatementResultBeforeListener listener)
listener
- StatementResultBeforeListenerStatementResultBeforeListener
,
addStatementResultBeforeListener(com.ibm.db.StatementResultBeforeListener)
public abstract void restoreRow() throws DataException
public abstract void setColumnValue(int columnNumber, java.lang.Object aValue) throws DataException
columnNumber
- index of the columnaValue
- value for the columngetColumnValue(int)
public abstract void setColumnValue(java.lang.String columnName, java.lang.Object aValue) throws DataException
columnName
- name of the columnaValue
- value for the columngetColumnValue(int)
public abstract void setColumnValueFromString(int columnNumber, java.lang.String stringValue) throws DataException
columnNumber
- index of the columnstringValue
- value for the column as a StringgetColumnValueToString(int)
public abstract void setColumnValueFromString(java.lang.String columnName, java.lang.String stringValue) throws DataException
columnName
- name of the columnstringValue
- value for the column as a StringgetColumnValueToString(int)
protected void setResultTable(DatabaseResultTable resultTable)
resultTable
- com.ibm.db.base.DatabaseResultTableprotected void setResultTable(DatabaseResultTableParent resultTable)
resultTable
- com.ibm.db.base.DatabaseResultTablepublic abstract void updateRow() throws DataException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |