org.apache.derby.catalog.types
Class ReferencedColumnsDescriptorImpl

java.lang.Object
  extended byorg.apache.derby.catalog.types.ReferencedColumnsDescriptorImpl
All Implemented Interfaces:
java.io.Externalizable, Formatable, ReferencedColumns, java.io.Serializable, TypedFormat

public class ReferencedColumnsDescriptorImpl
extends java.lang.Object
implements ReferencedColumns, Formatable

See Also:
Serialized Form

Field Summary
private  int[] referencedColumns
          This class implements Formatable.
 
Constructor Summary
ReferencedColumnsDescriptorImpl()
          Zero-argument constructor for Formatable interface
ReferencedColumnsDescriptorImpl(int[] referencedColumns)
          Constructor for an ReferencedColumnsDescriptorImpl
 
Method Summary
 int[] getReferencedColumnPositions()
          Returns an array of 1-based column positions in the table that the check constraint is on.
 int getTypeFormatId()
          Get a universally unique identifier for the type of this object.
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

referencedColumns

private int[] referencedColumns
This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.

Constructor Detail

ReferencedColumnsDescriptorImpl

public ReferencedColumnsDescriptorImpl(int[] referencedColumns)
Constructor for an ReferencedColumnsDescriptorImpl

Parameters:
referencedColumns - The array of referenced columns.

ReferencedColumnsDescriptorImpl

public ReferencedColumnsDescriptorImpl()
Zero-argument constructor for Formatable interface

Method Detail

getReferencedColumnPositions

public int[] getReferencedColumnPositions()
Description copied from interface: ReferencedColumns
Returns an array of 1-based column positions in the table that the check constraint is on.

Specified by:
getReferencedColumnPositions in interface ReferencedColumns
Returns:
An array of ints representing the 1-based column positions of the columns that are referenced in this check constraint.
See Also:
ReferencedColumns.getReferencedColumnPositions()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException - Thrown on read error
See Also:
Externalizable.readExternal(java.io.ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException - Thrown on write error
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)

getTypeFormatId

public int getTypeFormatId()
Description copied from interface: TypedFormat
Get a universally unique identifier for the type of this object.

Specified by:
getTypeFormatId in interface TypedFormat
Returns:
The identifier. (A UUID stuffed in an array of 16 bytes).

toString

public java.lang.String toString()
See Also:
Object.toString()


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