Quadcap Embeddable Database

com.quadcap.sql.InsertBlob Class Reference

Inheritance diagram for com.quadcap.sql.InsertBlob:

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

Detailed Description

Log step to insert a BLOB value into the database.

Author:
Stan Bailes

Definition at line 74 of file InsertBlob.java.

Public Member Functions

 InsertBlob ()
 Default constructor for serialization.

 InsertBlob (Session session, ValueBlob blob) throws IOException
 Construct InsertBlob for a given blob.

void redo (Session session) throws IOException, SQLException
 LogStep.redo():.

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 ()
void setExtern (Extern extern)
Extern getExtern ()
void discard (Datafile db) throws IOException

Package Attributes

long tempBlock
long permBlock

Static Package Attributes

Extern extern


Constructor & Destructor Documentation

com.quadcap.sql.InsertBlob.InsertBlob  ) 
 

Default constructor for serialization.

Definition at line 81 of file InsertBlob.java.

com.quadcap.sql.InsertBlob.InsertBlob Session  session,
ValueBlob  blob
throws IOException
 

Construct InsertBlob for a given blob.

Definition at line 86 of file InsertBlob.java.


Member Function Documentation

void com.quadcap.sql.InsertBlob.discard Datafile  db  )  throws IOException
 

Definition at line 161 of file InsertBlob.java.

References com.quadcap.sql.InsertBlob.discard(), and com.quadcap.sql.InsertBlob.tempBlock.

Referenced by com.quadcap.sql.InsertBlob.discard().

Extern com.quadcap.sql.InsertBlob.getExtern  ) 
 

Definition at line 159 of file InsertBlob.java.

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

Definition at line 128 of file InsertBlob.java.

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

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

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

Definition at line 131 of file InsertBlob.java.

References com.quadcap.sql.InsertBlob.permBlock, com.quadcap.sql.InsertBlob.readExternal(), and com.quadcap.sql.InsertBlob.tempBlock.

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

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

LogStep.redo():.

Implements com.quadcap.sql.LogStep.

Definition at line 101 of file InsertBlob.java.

References com.quadcap.sql.file.BlockFile.getInputStream(), com.quadcap.sql.file.BlockFile.getOutputStream(), com.quadcap.sql.file.BlockFile.newPage(), com.quadcap.sql.InsertBlob.permBlock, com.quadcap.sql.file.Log.putRowMap(), com.quadcap.sql.InsertBlob.redo(), and com.quadcap.sql.InsertBlob.tempBlock.

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

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

Definition at line 158 of file InsertBlob.java.

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

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

String com.quadcap.sql.InsertBlob.toString  ) 
 

Definition at line 146 of file InsertBlob.java.

References com.quadcap.sql.InsertBlob.permBlock, and com.quadcap.sql.InsertBlob.tempBlock.

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

Do/redo this step.

Implements com.quadcap.sql.LogStep.

Definition at line 120 of file InsertBlob.java.

References com.quadcap.sql.Database.delMorgue(), com.quadcap.sql.file.BlockFile.freeStream(), com.quadcap.sql.InsertBlob.permBlock, and com.quadcap.sql.InsertBlob.undo().

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

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

Definition at line 139 of file InsertBlob.java.

References com.quadcap.sql.InsertBlob.permBlock, com.quadcap.sql.InsertBlob.tempBlock, and com.quadcap.sql.InsertBlob.writeExternal().

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


Member Data Documentation

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

Definition at line 157 of file InsertBlob.java.

long com.quadcap.sql.InsertBlob.permBlock [package]
 

Definition at line 76 of file InsertBlob.java.

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

long com.quadcap.sql.InsertBlob.tempBlock [package]
 

Definition at line 75 of file InsertBlob.java.

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