|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.Identity
Stores the identity of an database object as defined by its primary keys. Is used
by DataToDatabaseSink
class for inserting objects
in the correct order.
Constructor Summary | |
Identity(Table table)
Creates a new identity object for the given table. |
|
Identity(Table table,
String fkName)
Creates a new identity object for the given table. |
Method Summary | |
boolean |
equals(Object obj)
|
Object |
getColumnValue(String name)
Returns the value of the indicated identity columns. |
String |
getForeignKeyName()
Returns the name of the foreign key whose referenced object this identity represents. |
Table |
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Identity(Table table)
table
- The name of the tablepublic Identity(Table table, String fkName)
table
- The tablefkName
- The name of the foreign key whose referenced object this identity representsMethod Detail |
public Table getTable()
public String getForeignKeyName()
null
if the identity is not for a foreign key, or if the foreign key
was unnamed.
public void setColumnValue(String name, Object value)
name
- The column namevalue
- The value for the columnpublic Object getColumnValue(String name)
name
- The column name
public boolean equals(Object obj)
public int hashCode()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |