java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, ConsInfo
public class ConstraintInfo extends java.lang.Object implements ConsInfo
Modifier and Type | Field | 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 | 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 | 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.Externalizable
out
- 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.Externalizable
in
- read this.java.io.IOException
- thrown on errorjava.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 schemaStandardException
- thrown on oopspublic TableDescriptor getReferencedTableDescriptor(DataDictionary dd) throws StandardException
ConsInfo
getReferencedTableDescriptor
in interface ConsInfo
dd
- data dictionary to search for tableStandardException
- 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
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.