Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb
Class CachedRow  view CachedRow download CachedRow.java

java.lang.Object
  extended byorg.hsqldb.Row
      extended byorg.hsqldb.CachedRow

class CachedRow
extends Row

Disk and In-memory representation of a database row object with storage independent methods for serialization and de-serialization.

Version:
1.7.1

Field Summary
private  boolean bChanged
           
(package private) static int iCurrentAccess
           
(package private)  int iLastAccess
           
(package private)  int iPos
           
(package private) static int NO_POS
           
protected  Node nPrimaryNode
           
protected  java.lang.Object[] oData
           
(package private)  CachedRow rLast
           
(package private)  CachedRow rNext
           
(package private)  int storageSize
           
protected  Table tTable
           
 
Constructor Summary
(package private) CachedRow(Table t, DatabaseRowInputInterface in)
          constructor when read from cache
(package private) CachedRow(Table t, java.lang.Object[] o)
          Constructor declaration
 
Method Summary
(package private)  void changed()
           
(package private)  void delete()
          Method declaration
(package private)  void free()
          Method declaration
(package private)  java.lang.Object[] getData()
          Method declaration
(package private)  Node getNextNode(Node n)
          Method declaration
(package private)  Node getNode(int index)
          Get the node for a given index.
(package private)  Table getTable()
          Method declaration
(package private)  boolean hasChanged()
           
(package private)  void insert(CachedRow before)
          Method declaration
(package private)  boolean isRoot()
          Used only in Cache.java to avoid removing the row from the cache
(package private) static Row newRow(Table t, java.lang.Object[] o)
           
(package private)  void setPos(int pos)
           
(package private)  void setPrimaryNode(Node primary)
           
(package private)  void write(DatabaseRowOutputInterface out)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_POS

static final int NO_POS
See Also:
Constant Field Values

iCurrentAccess

static int iCurrentAccess

tTable

protected Table tTable

iLastAccess

int iLastAccess

rLast

CachedRow rLast

rNext

CachedRow rNext

iPos

int iPos

storageSize

int storageSize

bChanged

private boolean bChanged

oData

protected java.lang.Object[] oData

nPrimaryNode

protected Node nPrimaryNode
Constructor Detail

CachedRow

CachedRow(Table t,
          java.lang.Object[] o)
    throws java.sql.SQLException
Constructor declaration


CachedRow

CachedRow(Table t,
          DatabaseRowInputInterface in)
    throws java.io.IOException,
           java.sql.SQLException
constructor when read from cache

Method Detail

setPos

void setPos(int pos)

changed

void changed()

hasChanged

boolean hasChanged()

getNode

Node getNode(int index)
Get the node for a given index.

Overrides:
getNode in class Row

getNextNode

Node getNextNode(Node n)
Method declaration

Overrides:
getNextNode in class Row

getData

java.lang.Object[] getData()
Method declaration

Overrides:
getData in class Row

getTable

Table getTable()
Method declaration


insert

void insert(CachedRow before)
Method declaration


isRoot

boolean isRoot()
         throws java.sql.SQLException
Used only in Cache.java to avoid removing the row from the cache


write

void write(DatabaseRowOutputInterface out)
     throws java.io.IOException,
            java.sql.SQLException
Method declaration


delete

void delete()
      throws java.sql.SQLException
Method declaration

Overrides:
delete in class Row

free

void free()
    throws java.sql.SQLException
Method declaration


newRow

static Row newRow(Table t,
                  java.lang.Object[] o)
           throws java.sql.SQLException

setPrimaryNode

void setPrimaryNode(Node primary)