org.apache.derby.impl.sql.catalog
Class DDColumnDependableFinder

java.lang.Object
  extended byorg.apache.derby.impl.sql.catalog.DDdependableFinder
      extended byorg.apache.derby.impl.sql.catalog.DDColumnDependableFinder
All Implemented Interfaces:
DependableFinder, java.io.Externalizable, Formatable, java.io.Serializable, TypedFormat

public class DDColumnDependableFinder
extends DDdependableFinder

Class for implementation of DependableFinder in the core DataDictionary for referenced columns in a table.

Author:
Tingjian Ge
See Also:
Serialized Form

Field Summary
private  byte[] columnBitMap
           
 
Fields inherited from class org.apache.derby.impl.sql.catalog.DDdependableFinder
 
Constructor Summary
DDColumnDependableFinder(int formatId)
          Constructor same as in parent.
DDColumnDependableFinder(int formatId, byte[] columnBitMap)
          Constructor given referenced column bit map byte array as in FormatableBitSet
 
Method Summary
 byte[] getColumnBitMap()
          Get the byte array encoding the bitmap of referenced columns in a table.
protected  Dependable getDependable(DataDictionary dd, UUID dependableObjectID)
          Get a dependable object, which is essentially a table descriptor with referencedColumnMap field set.
 void readExternal(java.io.ObjectInput in)
          Read this object from a stream of stored objects.
 void setColumnBitMap(byte[] columnBitMap)
          Set the byte array encoding the bitmap of referenced columns in a table.
 void writeExternal(java.io.ObjectOutput out)
          Write this object to a stream of stored objects.
 
Methods inherited from class org.apache.derby.impl.sql.catalog.DDdependableFinder
getDependable, getDependable, getSQLObjectName, getSQLObjectName, getSQLObjectType, getTypeFormatId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

columnBitMap

private byte[] columnBitMap
Constructor Detail

DDColumnDependableFinder

public DDColumnDependableFinder(int formatId)
Constructor same as in parent.


DDColumnDependableFinder

public DDColumnDependableFinder(int formatId,
                                byte[] columnBitMap)
Constructor given referenced column bit map byte array as in FormatableBitSet

Method Detail

getColumnBitMap

public byte[] getColumnBitMap()
Get the byte array encoding the bitmap of referenced columns in a table.

Returns:
byte array as in a FormatableBitSet encoding column bit map

setColumnBitMap

public void setColumnBitMap(byte[] columnBitMap)
Set the byte array encoding the bitmap of referenced columns in a table.

Returns:
none

getDependable

protected Dependable getDependable(DataDictionary dd,
                                   UUID dependableObjectID)
                            throws StandardException
Get a dependable object, which is essentially a table descriptor with referencedColumnMap field set.

Overrides:
getDependable in class DDdependableFinder
Returns:
a dependable, a table descriptor with referencedColumnMap field set
Throws:
StandardException - thrown on error

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read this object from a stream of stored objects. Just read the byte array, besides what the parent does.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class DDdependableFinder
Parameters:
in - read this.
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write this object to a stream of stored objects. Just write the byte array, besides what the parent does.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class DDdependableFinder
Parameters:
out - write bytes here.
Throws:
java.io.IOException

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.