org.apache.derby.impl.sql.execute
Class ConstraintInfo
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.ConstraintInfo
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ConsInfo
public class ConstraintInfo extends java.lang.Object implements ConsInfo
This is a simple class used to store the run time information about a constraint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ConstraintInfo()Niladic constructor for FormattableConstraintInfo(java.lang.String tableName, SchemaDescriptor tableSd, java.lang.String[] columnNames, int raDeleteRule, int raUpdateRule)Consructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getReferencedColumnNames()This ConsInfo describes columns in a referenced table.TableDescriptorgetReferencedTableDescriptor(DataDictionary dd)This ConsInfo describes columns in a referenced table.java.lang.StringgetReferencedTableName()Get the name of the table that these column live in.SchemaDescriptorgetReferencedTableSchemaDescriptor(DataDictionary dd)This ConsInfo describes columns in a referenced table.intgetReferentialActionDeleteRule()Get the referential Action for a Delete.intgetReferentialActionUpdateRule()Get the referential Action for an Update.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)Write this object out
-
-
-
Constructor Detail
-
ConstraintInfo
public ConstraintInfo()
Niladic constructor for Formattable
-
ConstraintInfo
public ConstraintInfo(java.lang.String tableName, SchemaDescriptor tableSd, java.lang.String[] columnNames, int raDeleteRule, int raUpdateRule)Consructor
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object out- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here- Throws:
java.io.IOException- thrown on error
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getReferencedTableSchemaDescriptor
public SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd) throws StandardException
Description copied from interface:ConsInfoThis ConsInfo describes columns in a referenced table. What is the schema that the referenced table lives in?- Specified by:
getReferencedTableSchemaDescriptorin interfaceConsInfo- Parameters:
dd- data dictionary to search for schema- Returns:
- schema that referenced table lives in
- Throws:
StandardException- thrown on oops
-
getReferencedTableDescriptor
public TableDescriptor getReferencedTableDescriptor(DataDictionary dd) throws StandardException
Description copied from interface:ConsInfoThis ConsInfo describes columns in a referenced table. What is that table?- Specified by:
getReferencedTableDescriptorin interfaceConsInfo- Parameters:
dd- data dictionary to search for table- Returns:
- referenced table
- Throws:
StandardException- thrown on oops
-
getReferencedColumnNames
public java.lang.String[] getReferencedColumnNames()
This ConsInfo describes columns in a referenced table. What are their names?- Specified by:
getReferencedColumnNamesin interfaceConsInfo- Returns:
- array of referenced column names
-
getReferencedTableName
public java.lang.String getReferencedTableName()
Get the name of the table that these column live in.- Specified by:
getReferencedTableNamein interfaceConsInfo- Returns:
- referenced table name
-
getReferentialActionUpdateRule
public int getReferentialActionUpdateRule()
Get the referential Action for an Update.- Specified by:
getReferentialActionUpdateRulein interfaceConsInfo- Returns:
- referential Action for update
-
getReferentialActionDeleteRule
public int getReferentialActionDeleteRule()
Get the referential Action for a Delete.- Specified by:
getReferentialActionDeleteRulein interfaceConsInfo- Returns:
- referential Action Delete rule
-
-
DataMelt 3.0 © DataMelt by jWork.ORG