public class ConstraintInfo extends java.lang.Object implements ConsInfo
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ConstraintInfo()
Niladic constructor for Formattable
|
ConstraintInfo(java.lang.String tableName,
SchemaDescriptor tableSd,
java.lang.String[] columnNames,
int raDeleteRule,
int raUpdateRule)
Consructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
private java.lang.String tableName
private SchemaDescriptor tableSd
private UUID tableSchemaId
private java.lang.String[] columnNames
private int raDeleteRule
private int raUpdateRule
public ConstraintInfo()
public ConstraintInfo(java.lang.String tableName,
SchemaDescriptor tableSd,
java.lang.String[] columnNames,
int raDeleteRule,
int raUpdateRule)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.Objectpublic SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd) throws StandardException
ConsInfogetReferencedTableSchemaDescriptor in interface ConsInfodd - data dictionary to search for schemaStandardException - thrown on oopspublic TableDescriptor getReferencedTableDescriptor(DataDictionary dd) throws StandardException
ConsInfogetReferencedTableDescriptor in interface ConsInfodd - data dictionary to search for tableStandardException - thrown on oopspublic java.lang.String[] getReferencedColumnNames()
getReferencedColumnNames in interface ConsInfopublic java.lang.String getReferencedTableName()
getReferencedTableName in interface ConsInfopublic int getReferentialActionUpdateRule()
getReferentialActionUpdateRule in interface ConsInfopublic int getReferentialActionDeleteRule()
getReferentialActionDeleteRule in interface ConsInfoApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.