|
||||||||
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.
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. |
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. |
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. |
abstract void |
updateRow()
Updates a row. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
public 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
public int getNumRows()
newRow
method.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)
public abstract void updateRow() throws DataException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |