|
|||||||||
| 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,
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 table
public Identity(Table table,
String fkName)
table - The tablefkName - The name of the foreign key whose referenced object this identity represents| Method 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)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||