Quadcap Embeddable Database

com.quadcap.sql.ModIndexEntry Class Reference

Inheritance diagram for com.quadcap.sql.ModIndexEntry:

com.quadcap.sql.LogStep Externalizable LogEntry com.quadcap.sql.AddIndexEntry com.quadcap.sql.DeleteIndexEntry List of all members.

Detailed Description

Abstract log step for all operations that modify indexes.

Author:
Stan Bailes

Definition at line 60 of file ModIndexEntry.java.

Public Member Functions

 ModIndexEntry ()
 Default constructor.

 ModIndexEntry (Session session, Constraint constraint, byte[] key)
abstract void redo (Session session) throws IOException, SQLException
 Do/redo this step.

abstract void undo (Session session) throws IOException, SQLException
 Do/redo this step.

void prepare (Session session) throws IOException
 Perform any actions that are necessary to prepare this log record for being written to the log.

void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException
String toString ()

Package Functions

Btree getIndex (Session session) throws IOException

Package Attributes

transient Btree index
transient Constraint constraint
String tableName
String constraintName
byte[] key


Constructor & Destructor Documentation

com.quadcap.sql.ModIndexEntry.ModIndexEntry  ) 
 

Default constructor.

Definition at line 72 of file ModIndexEntry.java.

com.quadcap.sql.ModIndexEntry.ModIndexEntry Session  session,
Constraint  constraint,
byte[]  key
 

Definition at line 74 of file ModIndexEntry.java.


Member Function Documentation

Btree com.quadcap.sql.ModIndexEntry.getIndex Session  session  )  throws IOException [package]
 

Definition at line 80 of file ModIndexEntry.java.

References com.quadcap.sql.ModIndexEntry.constraint, com.quadcap.sql.ModIndexEntry.constraintName, com.quadcap.sql.Table.getConstraint(), com.quadcap.sql.Constraint.getIndex(), com.quadcap.sql.ModIndexEntry.getIndex(), com.quadcap.sql.Database.getRelation(), com.quadcap.sql.ModIndexEntry.index, and com.quadcap.sql.ModIndexEntry.tableName.

Referenced by com.quadcap.sql.ModIndexEntry.getIndex().

void com.quadcap.sql.ModIndexEntry.prepare Session  session  )  throws IOException
 

Perform any actions that are necessary to prepare this log record for being written to the log.

This is called before the log record is written, and before the first invocation of 'redo'. It is not called subsequently, or during recovery.

Reimplemented from com.quadcap.sql.LogStep.

Reimplemented in com.quadcap.sql.DeleteIndexEntry.

Definition at line 107 of file ModIndexEntry.java.

References com.quadcap.sql.ModIndexEntry.prepare().

Referenced by com.quadcap.sql.ModIndexEntry.prepare().

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

Reimplemented in com.quadcap.sql.AddIndexEntry, and com.quadcap.sql.DeleteIndexEntry.

Definition at line 109 of file ModIndexEntry.java.

References com.quadcap.sql.ModIndexEntry.constraintName, com.quadcap.sql.ModIndexEntry.key, com.quadcap.sql.ModIndexEntry.readExternal(), and com.quadcap.sql.ModIndexEntry.tableName.

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

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

Do/redo this step.

Implements com.quadcap.sql.LogStep.

Implemented in com.quadcap.sql.AddIndexEntry, and com.quadcap.sql.DeleteIndexEntry.

String com.quadcap.sql.ModIndexEntry.toString  ) 
 

Reimplemented in com.quadcap.sql.AddIndexEntry, and com.quadcap.sql.DeleteIndexEntry.

Definition at line 133 of file ModIndexEntry.java.

References com.quadcap.sql.ModIndexEntry.key.

abstract void com.quadcap.sql.ModIndexEntry.undo Session  session  )  throws IOException, SQLException [pure virtual]
 

Do/redo this step.

Implements com.quadcap.sql.LogStep.

Implemented in com.quadcap.sql.AddIndexEntry, and com.quadcap.sql.DeleteIndexEntry.

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

Reimplemented in com.quadcap.sql.AddIndexEntry, and com.quadcap.sql.DeleteIndexEntry.

Definition at line 120 of file ModIndexEntry.java.

References com.quadcap.sql.ModIndexEntry.constraint, com.quadcap.sql.ModIndexEntry.constraintName, com.quadcap.sql.Constraint.getName(), com.quadcap.sql.TupleImpl.getName(), com.quadcap.sql.Constraint.getTable(), com.quadcap.sql.ModIndexEntry.key, com.quadcap.sql.ModIndexEntry.tableName, and com.quadcap.sql.ModIndexEntry.writeExternal().

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


Member Data Documentation

transient Constraint com.quadcap.sql.ModIndexEntry.constraint [package]
 

Definition at line 62 of file ModIndexEntry.java.

Referenced by com.quadcap.sql.ModIndexEntry.getIndex(), and com.quadcap.sql.ModIndexEntry.writeExternal().

String com.quadcap.sql.ModIndexEntry.constraintName [package]
 

Definition at line 65 of file ModIndexEntry.java.

Referenced by com.quadcap.sql.ModIndexEntry.getIndex(), com.quadcap.sql.ModIndexEntry.readExternal(), and com.quadcap.sql.ModIndexEntry.writeExternal().

transient Btree com.quadcap.sql.ModIndexEntry.index [package]
 

Definition at line 61 of file ModIndexEntry.java.

Referenced by com.quadcap.sql.ModIndexEntry.getIndex().

byte [] com.quadcap.sql.ModIndexEntry.key [package]
 

Definition at line 67 of file ModIndexEntry.java.

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

String com.quadcap.sql.ModIndexEntry.tableName [package]
 

Definition at line 64 of file ModIndexEntry.java.

Referenced by com.quadcap.sql.ModIndexEntry.getIndex(), com.quadcap.sql.ModIndexEntry.readExternal(), and com.quadcap.sql.ModIndexEntry.writeExternal().