|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.ConstraintInfo
public class ConstraintInfo
This is a simple class used to store the run time information about a constraint.
Field Summary | |
---|---|
private java.lang.String[] |
columnNames
|
private int |
raDeleteRule
|
private int |
raUpdateRule
|
private java.lang.String |
tableName
This class implements Formatable. |
private UUID |
tableSchemaId
|
private SchemaDescriptor |
tableSd
|
Constructor Summary | |
---|---|
ConstraintInfo()
Niladic constructor for Formattable |
|
ConstraintInfo(java.lang.String tableName,
SchemaDescriptor tableSd,
java.lang.String[] columnNames,
int raDeleteRule,
int raUpdateRule)
Consructor |
Method Summary | |
---|---|
java.lang.String[] |
getReferencedColumnNames()
This ConsInfo describes columns in a referenced table. |
TableDescriptor |
getReferencedTableDescriptor(DataDictionary dd)
This ConsInfo describes columns in a referenced table. |
java.lang.String |
getReferencedTableName()
Get the name of the table that these column live in. |
SchemaDescriptor |
getReferencedTableSchemaDescriptor(DataDictionary dd)
This ConsInfo describes columns in a referenced table. |
int |
getReferentialActionDeleteRule()
Get the referential Action for a Delete. |
int |
getReferentialActionUpdateRule()
Get the referential Action for an Update. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object out |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String tableName
private SchemaDescriptor tableSd
private UUID tableSchemaId
private java.lang.String[] columnNames
private int raDeleteRule
private int raUpdateRule
Constructor Detail |
---|
public ConstraintInfo()
public ConstraintInfo(java.lang.String tableName, SchemaDescriptor tableSd, java.lang.String[] columnNames, int raDeleteRule, int raUpdateRule)
Method Detail |
---|
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
toString
in class java.lang.Object
public SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd) throws StandardException
ConsInfo
getReferencedTableSchemaDescriptor
in interface ConsInfo
dd
- data dictionary to search for schema
StandardException
- thrown on oopspublic TableDescriptor getReferencedTableDescriptor(DataDictionary dd) throws StandardException
ConsInfo
getReferencedTableDescriptor
in interface ConsInfo
dd
- data dictionary to search for table
StandardException
- thrown on oopspublic java.lang.String[] getReferencedColumnNames()
getReferencedColumnNames
in interface ConsInfo
public java.lang.String getReferencedTableName()
getReferencedTableName
in interface ConsInfo
public int getReferentialActionUpdateRule()
getReferentialActionUpdateRule
in interface ConsInfo
public int getReferentialActionDeleteRule()
getReferentialActionDeleteRule
in interface ConsInfo
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |