|
||||||||||
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(String tableName)
Creates a new identity object for the indicated table. |
|
Identity(String tableName,
String fkName)
Creates a new identity object for the indicated table. |
Method Summary | |
boolean |
equals(Object obj)
|
String |
getForeignKeyName()
Returns the name of the foreign key whose referenced object this identity represents. |
int |
hashCode()
|
void |
setIdentityColumn(String name,
Object value)
Specifies the value for one of the identity columns. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Identity(String tableName)
tableName
- The name of the tablepublic Identity(String tableName, String fkName)
tableName
- The name of the tablefkName
- The name of the foreign key whose referenced object this identity representsMethod Detail |
public String getForeignKeyName()
null
if the identity is not for a foreign key, or if the foreign key
was unnamed.
public void setIdentityColumn(String name, Object value)
name
- The column namevalue
- The value for the columnpublic 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 |