java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.Identity

public class Identity extends Object
Stores the identity of an database object as defined by its primary keys. Is used by org.apache.ddlutils.io.DataToDatabaseSink class for inserting objects in the correct order.
Version:
$Revision: 289996 $
  • Constructor Details

    • Identity

      public Identity(Table table)
      Creates a new identity object for the given table.
      Parameters:
      table - The name of the table
    • Identity

      public Identity(Table table, String fkName)
      Creates a new identity object for the given table.
      Parameters:
      table - The table
      fkName - The name of the foreign key whose referenced object this identity represents
  • Method Details

    • getTable

      public Table getTable()
      Returns the table that this identity is for.
      Returns:
      The table
    • getForeignKeyName

      public String getForeignKeyName()
      Returns the name of the foreign key whose referenced object this identity represents. This name is null if the identity is not for a foreign key, or if the foreign key was unnamed.
      Returns:
      The foreign key name
    • setColumnValue

      public void setColumnValue(String name, Object value)
      Specifies the value of the indicated identity columns.
      Parameters:
      name - The column name
      value - The value for the column
    • getColumnValue

      public Object getColumnValue(String name)
      Returns the value of the indicated identity columns.
      Parameters:
      name - The column name
      Returns:
      The column's value
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object