org.hsqldb
Class Row
- java.lang.Object
-
- org.hsqldb.Row
-
- All Implemented Interfaces:
- CachedObject
- Direct Known Subclasses:
- RowAVL
public class Row extends java.lang.Object implements CachedObject
Base class for a database row object.
-
-
Field Summary
Fields Modifier and Type Field and Description RowActionrowAction-
Fields inherited from interface org.hsqldb.persist.CachedObject
emptyArray
-
-
Constructor Summary
Constructors Constructor and Description Row(TableBase table, java.lang.Object[] data)Default constructor used only in subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddelete(PersistentStore store)voiddestroy()booleanequals(java.lang.Object obj)Lifetime scope of this method is limited depends on the operations performed.intgetAccessCount()RowActiongetAction()java.lang.Object[]getData()Returns the array of fields in the database row.intgetDefaultCapacity()longgetId()longgetPos()intgetRealSize(RowOutputInterface out)intgetStorageSize()TableBasegetTable()booleanhasChanged()inthashCode()Hash code is always valid.booleanisBlock()booleanisInMemory()booleanisKeepInMemory()booleanisMemory()booleanisNew()booleankeepInMemory(boolean keep)voidread(RowInputInterface in)voidrestore()voidsetChanged(boolean changed)voidsetInMemory(boolean in)voidsetPos(long pos)voidsetStorageSize(int size)voidupdateAccessCount(int count)voidwrite(RowOutputInterface out)voidwrite(RowOutputInterface out, LongLookup lookup)
-
-
-
Field Detail
-
rowAction
public volatile RowAction rowAction
-
-
Constructor Detail
-
Row
public Row(TableBase table, java.lang.Object[] data)
Default constructor used only in subclasses.
-
-
Method Detail
-
getAction
public RowAction getAction()
-
getData
public java.lang.Object[] getData()
Returns the array of fields in the database row.
-
setChanged
public void setChanged(boolean changed)
-
setStorageSize
public void setStorageSize(int size)
- Specified by:
setStorageSizein interfaceCachedObject
-
getStorageSize
public int getStorageSize()
- Specified by:
getStorageSizein interfaceCachedObject
-
isBlock
public final boolean isBlock()
- Specified by:
isBlockin interfaceCachedObject
-
isMemory
public boolean isMemory()
- Specified by:
isMemoryin interfaceCachedObject
-
updateAccessCount
public void updateAccessCount(int count)
- Specified by:
updateAccessCountin interfaceCachedObject
-
getAccessCount
public int getAccessCount()
- Specified by:
getAccessCountin interfaceCachedObject
-
getPos
public long getPos()
- Specified by:
getPosin interfaceCachedObject
-
getId
public long getId()
-
setPos
public void setPos(long pos)
- Specified by:
setPosin interfaceCachedObject
-
isNew
public boolean isNew()
- Specified by:
isNewin interfaceCachedObject
-
hasChanged
public boolean hasChanged()
- Specified by:
hasChangedin interfaceCachedObject
-
isKeepInMemory
public boolean isKeepInMemory()
- Specified by:
isKeepInMemoryin interfaceCachedObject
-
keepInMemory
public boolean keepInMemory(boolean keep)
- Specified by:
keepInMemoryin interfaceCachedObject
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemoryin interfaceCachedObject
-
setInMemory
public void setInMemory(boolean in)
- Specified by:
setInMemoryin interfaceCachedObject
-
delete
public void delete(PersistentStore store)
-
restore
public void restore()
- Specified by:
restorein interfaceCachedObject
-
destroy
public void destroy()
- Specified by:
destroyin interfaceCachedObject
-
getRealSize
public int getRealSize(RowOutputInterface out)
- Specified by:
getRealSizein interfaceCachedObject
-
getTable
public TableBase getTable()
-
getDefaultCapacity
public int getDefaultCapacity()
- Specified by:
getDefaultCapacityin interfaceCachedObject
-
read
public void read(RowInputInterface in)
- Specified by:
readin interfaceCachedObject
-
write
public void write(RowOutputInterface out)
- Specified by:
writein interfaceCachedObject
-
write
public void write(RowOutputInterface out, LongLookup lookup)
- Specified by:
writein interfaceCachedObject
-
equals
public boolean equals(java.lang.Object obj)
Lifetime scope of this method is limited depends on the operations performed. Rows deleted completely can equal rows produced later. This can return invalid results if used with deleted rows.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- row to compare- Returns:
- boolean
-
hashCode
public int hashCode()
Hash code is always valid.- Overrides:
hashCodein classjava.lang.Object- Returns:
- file position of row
-
-
DataMelt 3.0 © DataMelt by jWork.ORG