Class Identity
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.Identity
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getColumnValue
(String name) Returns the value of the indicated identity columns.Returns the name of the foreign key whose referenced object this identity represents.getTable()
Returns the table that this identity is for.int
hashCode()
void
setColumnValue
(String name, Object value) Specifies the value of the indicated identity columns.toString()
-
Constructor Details
-
Identity
Creates a new identity object for the given table.- Parameters:
table
- The name of the table
-
Identity
Creates a new identity object for the given table.- Parameters:
table
- The tablefkName
- The name of the foreign key whose referenced object this identity represents
-
-
Method Details
-
getTable
Returns the table that this identity is for.- Returns:
- The table
-
getForeignKeyName
Returns the name of the foreign key whose referenced object this identity represents. This name isnull
if the identity is not for a foreign key, or if the foreign key was unnamed.- Returns:
- The foreign key name
-
setColumnValue
Specifies the value of the indicated identity columns.- Parameters:
name
- The column namevalue
- The value for the column
-
getColumnValue
Returns the value of the indicated identity columns.- Parameters:
name
- The column name- Returns:
- The column's value
-
equals
-
hashCode
public int hashCode() -
toString
-