Quadcap Embeddable Database

com.quadcap.sql.AddIndexEntry Class Reference

Inheritance diagram for com.quadcap.sql.AddIndexEntry:

com.quadcap.sql.ModIndexEntry Externalizable com.quadcap.sql.LogStep Externalizable LogEntry List of all members.

Detailed Description

Log step to add a entry to an index.

Author:
Stan Bailes

Definition at line 62 of file AddIndexEntry.java.

Public Member Functions

 AddIndexEntry ()
 Default constructor.

 AddIndexEntry (Session session, Constraint constraint, byte[] key, long rowId)
 Explicit constructor from key and rowId.

void redo (Session session) throws IOException, SQLException
 LogStep.redo(): Store the new entry in the index.

void undo (Session session) throws IOException
 LogStep.undo(): Remove the entry from the index.

void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
 Externalizable: Read me from a stream.

void writeExternal (ObjectOutput out) throws IOException
 Externalizable: Write me to a stream.

void setExtern (Extern extern)
Extern getExtern ()
String toString ()
 For debugging, return a string representation.


Package Attributes

long rowId

Static Package Attributes

Extern extern
 My class's Extern object.


Constructor & Destructor Documentation

com.quadcap.sql.AddIndexEntry.AddIndexEntry  ) 
 

Default constructor.

Definition at line 68 of file AddIndexEntry.java.

com.quadcap.sql.AddIndexEntry.AddIndexEntry Session  session,
Constraint  constraint,
byte[]  key,
long  rowId
 

Explicit constructor from key and rowId.

Definition at line 73 of file AddIndexEntry.java.


Member Function Documentation

Extern com.quadcap.sql.AddIndexEntry.getExtern  ) 
 

Definition at line 125 of file AddIndexEntry.java.

void com.quadcap.sql.AddIndexEntry.readExternal ObjectInput  in  )  throws IOException, ClassNotFoundException
 

Externalizable: Read me from a stream.

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 105 of file AddIndexEntry.java.

References com.quadcap.sql.AddIndexEntry.readExternal(), and com.quadcap.sql.AddIndexEntry.rowId.

Referenced by com.quadcap.sql.AddIndexEntry.readExternal().

void com.quadcap.sql.AddIndexEntry.redo Session  session  )  throws IOException, SQLException [virtual]
 

LogStep.redo(): Store the new entry in the index.

Implements com.quadcap.sql.ModIndexEntry.

Definition at line 82 of file AddIndexEntry.java.

References com.quadcap.sql.AddIndexEntry.redo(), com.quadcap.sql.AddIndexEntry.rowId, and com.quadcap.sql.index.Btree.set().

Referenced by com.quadcap.sql.AddIndexEntry.redo().

void com.quadcap.sql.AddIndexEntry.setExtern Extern  extern  ) 
 

Definition at line 124 of file AddIndexEntry.java.

References com.quadcap.sql.AddIndexEntry.setExtern().

Referenced by com.quadcap.sql.AddIndexEntry.setExtern().

String com.quadcap.sql.AddIndexEntry.toString  ) 
 

For debugging, return a string representation.

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 131 of file AddIndexEntry.java.

References com.quadcap.sql.AddIndexEntry.rowId.

void com.quadcap.sql.AddIndexEntry.undo Session  session  )  throws IOException [virtual]
 

LogStep.undo(): Remove the entry from the index.

Implements com.quadcap.sql.ModIndexEntry.

Definition at line 95 of file AddIndexEntry.java.

References com.quadcap.sql.index.Btree.delete(), and com.quadcap.sql.AddIndexEntry.undo().

Referenced by com.quadcap.sql.AddIndexEntry.undo().

void com.quadcap.sql.AddIndexEntry.writeExternal ObjectOutput  out  )  throws IOException
 

Externalizable: Write me to a stream.

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 115 of file AddIndexEntry.java.

References com.quadcap.sql.AddIndexEntry.rowId, and com.quadcap.sql.AddIndexEntry.writeExternal().

Referenced by com.quadcap.sql.AddIndexEntry.writeExternal().


Member Data Documentation

Extern com.quadcap.sql.AddIndexEntry.extern [static, package]
 

My class's Extern object.

Definition at line 123 of file AddIndexEntry.java.

long com.quadcap.sql.AddIndexEntry.rowId [package]
 

Definition at line 63 of file AddIndexEntry.java.

Referenced by com.quadcap.sql.AddIndexEntry.readExternal(), com.quadcap.sql.AddIndexEntry.redo(), com.quadcap.sql.AddIndexEntry.toString(), and com.quadcap.sql.AddIndexEntry.writeExternal().