|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.Identity
public class 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,
java.lang.String fkName)
Creates a new identity object for the given table. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getColumnValue(java.lang.String name)
Returns the value of the indicated identity columns. |
java.lang.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(java.lang.String name,
java.lang.Object value)
Specifies the value of the indicated identity columns. |
java.lang.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, java.lang.String fkName)
table
- The tablefkName
- The name of the foreign key whose referenced object this identity representsMethod Detail |
---|
public Table getTable()
public java.lang.String getForeignKeyName()
null
if the identity is not for a foreign key, or if the foreign key
was unnamed.
public void setColumnValue(java.lang.String name, java.lang.Object value)
name
- The column namevalue
- The value for the columnpublic java.lang.Object getColumnValue(java.lang.String name)
name
- The column name
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |