java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.Reference
All Implemented Interfaces:
Serializable, Cloneable

public class Reference extends Object implements Cloneable, Serializable
Represents a reference between a column in the local table and a column in another table.
Version:
$Revision: 463305 $
See Also:
  • Constructor Details

    • Reference

      public Reference()
      Creates a new, empty reference.
    • Reference

      public Reference(Column localColumn, Column foreignColumn)
      Creates a new reference between the two given columns.
      Parameters:
      localColumn - The local column
      foreignColumn - The remote column
  • Method Details

    • getSequenceValue

      public int getSequenceValue()
      Returns the sequence value within the owning key.
      Returns:
      The sequence value
    • setSequenceValue

      public void setSequenceValue(int sequenceValue)
      Sets the sequence value within the owning key. Please note that you should not change the value once the reference has been added to a key.
      Parameters:
      sequenceValue - The sequence value
    • getLocalColumn

      public Column getLocalColumn()
      Returns the local column.
      Returns:
      The local column
    • setLocalColumn

      public void setLocalColumn(Column localColumn)
      Sets the local column.
      Parameters:
      localColumn - The local column
    • getForeignColumn

      public Column getForeignColumn()
      Returns the foreign column.
      Returns:
      The foreign column
    • setForeignColumn

      public void setForeignColumn(Column foreignColumn)
      Sets the foreign column.
      Parameters:
      foreignColumn - The foreign column
    • getLocalColumnName

      public String getLocalColumnName()
      Returns the name of the local column.
      Returns:
      The column name
    • setLocalColumnName

      public void setLocalColumnName(String localColumnName)
      Sets the name of the local column. Note that you should not use this method when manipulating the model manually. Rather use the setLocalColumn(Column) method.
      Parameters:
      localColumnName - The column name
    • getForeignColumnName

      public String getForeignColumnName()
      Returns the name of the foreign column.
      Returns:
      The column name
    • setForeignColumnName

      public void setForeignColumnName(String foreignColumnName)
      Sets the name of the remote column. Note that you should not use this method when manipulating the model manually. Rather use the setForeignColumn(Column) method.
      Parameters:
      foreignColumnName - The column name
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsIgnoreCase

      public boolean equalsIgnoreCase(Reference otherRef)
      Compares this reference to the given one while ignoring the case of identifiers.
      Parameters:
      otherRef - The other reference
      Returns:
      true if this reference is equal (ignoring case) to the given one
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object