Documentation of 'org.apache.derby.impl.sql.execute.ConstraintInfo' Java class
ConstraintInfo
org.apache.derby.impl.sql.execute

Class 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 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.IOException
        Write this object out
        Specified by:
        writeExternal in interface java.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.ClassNotFoundException
        Read this object from a stream of stored objects.
        Specified by:
        readExternal in interface java.io.Externalizable
        Parameters:
        in - read this.
        Throws:
        java.io.IOException - thrown on error
        java.lang.ClassNotFoundException - thrown on error
      • getTypeFormatId

        public int getTypeFormatId()
        Get the formatID which corresponds to this class.
        Specified by:
        getTypeFormatId in interface TypedFormat
        Returns:
        the formatID of this class
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getReferencedColumnNames

        public java.lang.String[] getReferencedColumnNames()
        This ConsInfo describes columns in a referenced table. What are their names?
        Specified by:
        getReferencedColumnNames in interface ConsInfo
        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:
        getReferencedTableName in interface ConsInfo
        Returns:
        referenced table name
      • getReferentialActionUpdateRule

        public int getReferentialActionUpdateRule()
        Get the referential Action for an Update.
        Specified by:
        getReferentialActionUpdateRule in interface ConsInfo
        Returns:
        referential Action for update
      • getReferentialActionDeleteRule

        public int getReferentialActionDeleteRule()
        Get the referential Action for a Delete.
        Specified by:
        getReferentialActionDeleteRule in interface ConsInfo
        Returns:
        referential Action Delete rule

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.