public class AssociationsModel
extends java.lang.Object
| 构造器和说明 |
|---|
AssociationsModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object o)
Override equals method to make sure that if two associated tables in the
association model are same ignoring sides, they are same association
model.
|
java.lang.String |
getAssociatedTableName()
Get associated table name.
|
int |
getAssociationType()
Get the association type.
|
java.lang.String |
getTableHoldsForeignKey()
Get the table which holds foreign key.
|
java.lang.String |
getTableName()
Get table name.
|
void |
setAssociatedTableName(java.lang.String associatedTableName)
Set associated table name.
|
void |
setAssociationType(int associationType)
Set the association type.
|
void |
setTableHoldsForeignKey(java.lang.String tableHoldsForeignKey)
Set the table which holds foreign key.
|
void |
setTableName(java.lang.String tableName)
Set table name.
|
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName - The table name to set.public java.lang.String getAssociatedTableName()
public void setAssociatedTableName(java.lang.String associatedTableName)
associatedTableName - The associated table name.public java.lang.String getTableHoldsForeignKey()
public void setTableHoldsForeignKey(java.lang.String tableHoldsForeignKey)
tableHoldsForeignKey - The table which holds foreign key to set.public int getAssociationType()
public void setAssociationType(int associationType)
associationType - Within Const.Model#MANY_TO_ONE,
Const.Model#MANY_TO_MANY,
Const.Model#ONE_TO_ONE.public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Object