org.apache.derby.impl.store.logical.operations
Class LogicalImage

java.lang.Object
  extended byorg.apache.derby.impl.store.logical.operations.LogicalImage
All Implemented Interfaces:
LogicalImage, java.io.Serializable

public class LogicalImage
extends java.lang.Object
implements LogicalImage

An implementation of a logical image. Can be either a before- or after image

Author:
Egil S¿rensen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.derby.iapi.store.logical.log.LogicalImage
REDO, UNDO
 
Constructor Summary
LogicalImage(org.apache.derby.iapi.sql.dictionary.ColumnDescriptor[] columns, org.apache.derby.iapi.types.DataValueDescriptor[] values, int keyColumn, org.apache.derby.iapi.types.DataValueDescriptor key, int type)
          Constructor that creates a logicalimage from the internal types columndescriptor and datavaluedescriptor so that they can be serialized and sent through a outputstream
 
Method Summary
 java.util.Hashtable getContents()
           
 java.lang.String getKey()
           
 java.lang.String getKeyColumnName()
           
 int getType()
           
 int size()
           
 java.lang.String toString()
          Returns a String representation of the image, used for debugging purposes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicalImage

public LogicalImage(org.apache.derby.iapi.sql.dictionary.ColumnDescriptor[] columns,
                    org.apache.derby.iapi.types.DataValueDescriptor[] values,
                    int keyColumn,
                    org.apache.derby.iapi.types.DataValueDescriptor key,
                    int type)
Constructor that creates a logicalimage from the internal types columndescriptor and datavaluedescriptor so that they can be serialized and sent through a outputstream

Parameters:
columns - The columns of the affected table
values - The values of the affected row
key - The key of the affected table
type - The type of this image, can either be before- or after image
See Also:
LogicalLogger
Method Detail

getContents

public java.util.Hashtable getContents()
Specified by:
getContents in interface LogicalImage

getKey

public java.lang.String getKey()
Specified by:
getKey in interface LogicalImage

getType

public int getType()
Specified by:
getType in interface LogicalImage

size

public int size()
Specified by:
size in interface LogicalImage

getKeyColumnName

public java.lang.String getKeyColumnName()
Specified by:
getKeyColumnName in interface LogicalImage

toString

public java.lang.String toString()
Returns a String representation of the image, used for debugging purposes