Quadcap Embeddable Database

com.quadcap.sql.DeleteIndexEntry Class Reference

Inheritance diagram for com.quadcap.sql.DeleteIndexEntry:

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

Detailed Description

Log step to delete an index entry.

Author:
Stan Bailes

Definition at line 63 of file DeleteIndexEntry.java.

Public Member Functions

 DeleteIndexEntry ()
 Default constructor.

 DeleteIndexEntry (Session session, Constraint constraint, byte[] key)
 Explicit constructor.

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

void undo (Session session) throws IOException
 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
 Read me from a stream.

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

String toString ()
 Return string representation for debugging.

void setExtern (Extern extern)
Extern getExtern ()

Package Attributes

byte[] data

Static Package Attributes

Extern extern
 My class's extern object.


Constructor & Destructor Documentation

com.quadcap.sql.DeleteIndexEntry.DeleteIndexEntry  ) 
 

Default constructor.

Definition at line 70 of file DeleteIndexEntry.java.

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

Explicit constructor.

Definition at line 75 of file DeleteIndexEntry.java.


Member Function Documentation

Extern com.quadcap.sql.DeleteIndexEntry.getExtern  ) 
 

Definition at line 148 of file DeleteIndexEntry.java.

void com.quadcap.sql.DeleteIndexEntry.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.ModIndexEntry.

Definition at line 94 of file DeleteIndexEntry.java.

References com.quadcap.sql.index.Btree.get(), and com.quadcap.sql.DeleteIndexEntry.prepare().

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

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

Read me from a stream.

Exceptions:
IOException may be thrown

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 104 of file DeleteIndexEntry.java.

References com.quadcap.sql.DeleteIndexEntry.data, and com.quadcap.sql.DeleteIndexEntry.readExternal().

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

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

Do/redo this step.

Implements com.quadcap.sql.ModIndexEntry.

Definition at line 80 of file DeleteIndexEntry.java.

References com.quadcap.sql.index.Btree.delete(), and com.quadcap.sql.DeleteIndexEntry.redo().

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

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

Definition at line 147 of file DeleteIndexEntry.java.

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

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

String com.quadcap.sql.DeleteIndexEntry.toString  ) 
 

Return string representation for debugging.

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 135 of file DeleteIndexEntry.java.

References com.quadcap.sql.DeleteIndexEntry.data.

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

Do/redo this step.

Implements com.quadcap.sql.ModIndexEntry.

Definition at line 85 of file DeleteIndexEntry.java.

References com.quadcap.sql.DeleteIndexEntry.data, com.quadcap.sql.index.Btree.set(), and com.quadcap.sql.DeleteIndexEntry.undo().

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

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

Write me to a stream.

Exceptions:
IOException may be thrown

Reimplemented from com.quadcap.sql.ModIndexEntry.

Definition at line 121 of file DeleteIndexEntry.java.

References com.quadcap.sql.DeleteIndexEntry.data, and com.quadcap.sql.DeleteIndexEntry.writeExternal().

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


Member Data Documentation

byte [] com.quadcap.sql.DeleteIndexEntry.data [package]
 

Definition at line 65 of file DeleteIndexEntry.java.

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

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

My class's extern object.

Definition at line 146 of file DeleteIndexEntry.java.