Quadcap Embeddable Database

com.quadcap.sql.DropTable Class Reference

Inheritance diagram for com.quadcap.sql.DropTable:

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

Detailed Description

Log step to remove a table from a database.

Author:
Stan Bailes

Definition at line 71 of file DropTable.java.

Public Member Functions

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

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

void prepare (Session session) throws IOException, SQLException
 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 ()
void setExtern (Extern extern)
Extern getExtern ()

Package Attributes

Relation table
Vector bases

Static Package Attributes

Extern extern


Constructor & Destructor Documentation

com.quadcap.sql.DropTable.DropTable  ) 
 

Definition at line 75 of file DropTable.java.

com.quadcap.sql.DropTable.DropTable Session  session,
Relation  table
 

Definition at line 77 of file DropTable.java.


Member Function Documentation

Extern com.quadcap.sql.DropTable.getExtern  ) 
 

Definition at line 133 of file DropTable.java.

void com.quadcap.sql.DropTable.prepare Session  session  )  throws IOException, SQLException
 

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.

Definition at line 98 of file DropTable.java.

References com.quadcap.sql.DropTable.bases, com.quadcap.sql.Database.getBases(), com.quadcap.sql.Tuple.getName(), com.quadcap.sql.DropTable.prepare(), and com.quadcap.sql.DropTable.table.

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

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

Definition at line 107 of file DropTable.java.

References com.quadcap.sql.DropTable.readExternal(), and com.quadcap.sql.DropTable.table.

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

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

Do/redo this step.

Implements com.quadcap.sql.LogStep.

Definition at line 93 of file DropTable.java.

References com.quadcap.sql.Tuple.getName(), com.quadcap.sql.DropTable.redo(), com.quadcap.sql.Database.removeRelation(), and com.quadcap.sql.DropTable.table.

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

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

Definition at line 132 of file DropTable.java.

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

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

String com.quadcap.sql.DropTable.toString  ) 
 

Definition at line 122 of file DropTable.java.

References com.quadcap.sql.DropTable.table.

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

Do/redo this step.

Implements com.quadcap.sql.LogStep.

Definition at line 82 of file DropTable.java.

References com.quadcap.sql.Database.addRelation(), com.quadcap.sql.Database.addViewDependency(), com.quadcap.sql.DropTable.bases, com.quadcap.sql.Tuple.getName(), com.quadcap.sql.DropTable.table, and com.quadcap.sql.DropTable.undo().

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

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

Definition at line 115 of file DropTable.java.

References com.quadcap.sql.DropTable.bases, com.quadcap.sql.DropTable.table, and com.quadcap.sql.DropTable.writeExternal().

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


Member Data Documentation

Vector com.quadcap.sql.DropTable.bases [package]
 

Definition at line 73 of file DropTable.java.

Referenced by com.quadcap.sql.DropTable.prepare(), com.quadcap.sql.DropTable.undo(), and com.quadcap.sql.DropTable.writeExternal().

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

Definition at line 131 of file DropTable.java.

Relation com.quadcap.sql.DropTable.table [package]
 

Definition at line 72 of file DropTable.java.

Referenced by com.quadcap.sql.DropTable.prepare(), com.quadcap.sql.DropTable.readExternal(), com.quadcap.sql.DropTable.redo(), com.quadcap.sql.DropTable.toString(), com.quadcap.sql.DropTable.undo(), and com.quadcap.sql.DropTable.writeExternal().