Class DBConstraintInfo

  • All Implemented Interfaces:
    AbstractInfo, java.io.Serializable

    public class DBConstraintInfo
    extends java.lang.Object
    implements AbstractInfo, java.io.Serializable
    Information about a constraint for a database table.
    Author:
    Tim Dudgeon
    See Also:
    Serialized Form
    • Constructor Detail

      • DBConstraintInfo

        public DBConstraintInfo()
      • DBConstraintInfo

        public DBConstraintInfo​(java.lang.String constraintName,
                                java.lang.String[] columns)
      • DBConstraintInfo

        public DBConstraintInfo​(java.lang.String constraintName,
                                DBConstraintInfo.Type type,
                                java.lang.String[] columns,
                                java.lang.String indexName)
    • Method Detail

      • getColumns

        public java.lang.String[] getColumns()
      • setColumns

        public void setColumns​(java.lang.String[] columns)
      • getConstraintName

        public java.lang.String getConstraintName()
      • getIndexName

        public java.lang.String getIndexName()
        The index that backs this constraint. Will only be defined for primary key and unique constraints. For other types of constrain it will be null
        Returns:
        The name of the index, or null.
      • getType

        public DBConstraintInfo.Type getType()
        The type of the constraint, as defiend by one of the Type enums.
        Returns:
        The type
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object