| java.lang.Object org.hsqldb.Row
All known Subclasses: org.hsqldb.CachedRow,
Row | public class Row implements CachedObject(Code) | | Base class for a database row object implementing rows for
memory resident tables.
Subclass CachedRow implements rows for CACHED and TEXT tables
author: Thomas Mueller (Hypersonic SQL Group) version: 1.8.0 since: Hypersonic SQL |
Constructor Summary | |
protected | Row() Default constructor used only in subclasses. | | Row(Table t, Object[] o) Constructor for MEMORY table Row. |
Row | protected Row()(Code) | | Default constructor used only in subclasses.
|
Row | Row(Table t, Object[] o) throws HsqlException(Code) | | Constructor for MEMORY table Row. The result is a Row with Nodes that
are not yet linked with other Nodes in the AVL indexes.
|
clearNodeLinks | void clearNodeLinks()(Code) | | |
delete | void delete() throws HsqlException(Code) | | Is used only when the database row is deleted, not when it is freed
from the Cache.
|
equals | public boolean equals(Object obj)(Code) | | Lifetime scope of this method depends on the operations performed on
any cached tables since this row or the parameter were constructed.
If only deletes or only inserts have been performed, this method
remains valid. Otherwise it can return invalid results.
Parameters: obj - row to compare boolean |
getData | public Object[] getData()(Code) | | Returns the array of fields in the database row.
|
getId | public long getId()(Code) | | |
getId | public static long getId(Table table, int pos)(Code) | | |
getNextNode | Node getNextNode(Node n)(Code) | | Returns the Node for the next Index on this database row, given the
Node for any Index.
|
getNode | Node getNode(int index)(Code) | | Returns the Node for a given Index, using the ordinal position of the
Index within the Table Object.
|
getPos | public int getPos()(Code) | | |
getStorageSize | public int getStorageSize()(Code) | | |
getUpdatedRow | Row getUpdatedRow() throws HsqlException(Code) | | Returns the Row Object that currently represents the same database row.
In current implementations of Row, this is always the same as the this
Object for MEMORY tables, but could be a different Object for CachedRow
or CachedDataRow implementation. For example the Row Object that
represents a given database row can be freed from the Cache when other
rows need to be loaded into the Cache. getUpdatedRow() returns a
currently valid Row object that is in the Cache.
|
hasChanged | public boolean hasChanged()(Code) | | |
hashCode | public int hashCode()(Code) | | Hash code is valid only until a modification to the cache
file position of row |
isCascadeDeleted | boolean isCascadeDeleted()(Code) | | |
isInMemory | public boolean isInMemory()(Code) | | |
isKeepInMemory | public boolean isKeepInMemory()(Code) | | |
keepInMemory | public void keepInMemory(boolean keep)(Code) | | |
setInMemory | public void setInMemory(boolean in)(Code) | | |
setPos | public void setPos(int pos)(Code) | | |
setStorageSize | public void setStorageSize(int size)(Code) | | |
|
|