|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.StatementResultRow
StatementResultRow represents a row in the cache.
Field Summary | |
protected int |
action
|
private static java.lang.String |
copyright
|
protected DatabaseRow |
currentColumnValues
|
static int |
DELETED
|
protected boolean |
inDatabase
|
static int |
INSERTED
|
static int |
NEW
|
static int |
NONE
|
protected int |
numberWhenChanged
|
protected DatabaseRow |
previousColumnValues
|
(package private) static long |
serialVersionUID
|
protected int |
status
|
static int |
TRUNCATED
|
static int |
UNCHANGED
|
static int |
UPDATED
|
static int |
VALUE_SET
|
Constructor Summary | |
StatementResultRow(DatabaseRow aRow)
Constructs a new StatementResultRow and sets the current column values to the passed DatabaseRow. |
|
StatementResultRow(StatementResultRow aRow)
Consturcts a new StatementResultRow which is a clone of the StatementResultRow passed. |
Method Summary | |
java.lang.Object |
copyValue(java.lang.Object aValue)
This method was created in VisualAge. |
int |
getAction()
Returns one of the following values that describe the action to perform on this row in the cache: NONE, UPDATED, INSERTED, DELETED. |
java.lang.Object |
getColumnValue(int columnNumber)
Returns the current value of the specified column. |
java.lang.Object |
getColumnValue(java.lang.String columnName)
Returns the current value of the specified column. |
DatabaseRow |
getCurrentColumnValues()
Returns the current column values. |
protected int |
getNumberWhenChanged()
This method was created by a SmartGuide. |
java.lang.Object |
getPreviousColumnValue(int columnNumber)
Returns the previous value of the specified column value. |
DatabaseRow |
getPreviousColumnValues()
Returns the previous column values. |
int |
getStatus()
Returns the status of the result row. |
boolean |
isInDatabase()
Returns true if the row in the cache represents a row that is already in the database. |
void |
reset()
Resets the status of the row. |
void |
restore()
Restores the row's values to those last known to be in the database. |
void |
setAction(int anAction)
Sets the action to be performed on this row: NONE, UPDATED, INSERTED, DELETED. |
void |
setColumnValue(int columnNumber,
java.lang.Object aValue)
Sets the current value of the specified column to the specified value. |
void |
setInDatabase(boolean aValue)
If true, the row is already in the database. |
protected void |
setNumberWhenChanged(int rowNumber)
This method was created by a SmartGuide. |
void |
setStatus(int aStatus)
Sets the status of the row: UNCHANGED, NEW, VALUE_SET, or TRUNCATED. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected DatabaseRow currentColumnValues
protected DatabaseRow previousColumnValues
protected int status
protected int action
protected boolean inDatabase
protected int numberWhenChanged
public static final int UNCHANGED
public static final int VALUE_SET
public static final int NEW
public static final int TRUNCATED
public static final int NONE
public static final int UPDATED
public static final int DELETED
public static final int INSERTED
static final long serialVersionUID
private static final java.lang.String copyright
Constructor Detail |
public StatementResultRow(DatabaseRow aRow)
aRow
- the current column valuespublic StatementResultRow(StatementResultRow aRow) throws DataException
aRow
- the result row to be clonedMethod Detail |
public java.lang.Object copyValue(java.lang.Object aValue)
aValue
- java.lang.Objectpublic int getAction()
setAction(int)
public java.lang.Object getColumnValue(int columnNumber)
columnNumber
- the index of the columnsetColumnValue(int, java.lang.Object)
public java.lang.Object getColumnValue(java.lang.String columnName)
columnName
- the name of the columnsetColumnValue(int, java.lang.Object)
public DatabaseRow getCurrentColumnValues()
protected int getNumberWhenChanged()
public java.lang.Object getPreviousColumnValue(int columnNumber)
columnNumber
- the index of the columnpublic DatabaseRow getPreviousColumnValues()
public int getStatus()
setStatus(int)
public boolean isInDatabase()
SelectResult.newRow
has been used to insert this row into the
cache, it returns false.setInDatabase(boolean)
public void reset()
public void restore()
public void setAction(int anAction)
action
- NONE, UPDATED, INSERTED, DELETEDgetAction()
public void setColumnValue(int columnNumber, java.lang.Object aValue) throws DataException, DataException
columnNumber
- the index of the columnaValue
- the column valuegetColumnValue(int)
public void setInDatabase(boolean aValue)
aValue
- true if the row is in the database;
false if the row has been inserted into the cache.#getInDatabase
protected void setNumberWhenChanged(int rowNumber)
rowNumber
- intpublic void setStatus(int aStatus)
aStatus
- UNCHANGED, NEW, VALUE_SET, or TRUNCATEDgetStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |