public class AssociationsInfo
extends java.lang.Object
| 构造器和说明 |
|---|
AssociationsInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object o)
Override equals method to make sure that if two associated classes in the
association info model are same ignoring sides, they are same association
info model.
|
java.lang.String |
getAssociatedClassName()
Get the class name of the class which associated with self class.
|
java.lang.reflect.Field |
getAssociateOtherModelFromSelf()
Get the field of self class which declares has association with other
class.
|
java.lang.reflect.Field |
getAssociateSelfFromOtherModel()
Get the field of the associated class which declares has association with
self class.
|
int |
getAssociationType()
Get the association type.
|
java.lang.String |
getClassHoldsForeignKey()
Get the class which holds foreign key.
|
java.lang.String |
getSelfClassName()
Get the class name of self class.
|
void |
setAssociatedClassName(java.lang.String associatedClassName)
Set the class name of the class which associated with self class.
|
void |
setAssociateOtherModelFromSelf(java.lang.reflect.Field associateOtherModelFromSelf)
Set the field of self class which declares has association with other
class.
|
void |
setAssociateSelfFromOtherModel(java.lang.reflect.Field associateSelfFromOtherModel)
Set the field of the associated class which declares has association with
self class.
|
void |
setAssociationType(int associationType)
Set the association type.
|
void |
setClassHoldsForeignKey(java.lang.String classHoldsForeignKey)
Set the class which holds foreign key.
|
void |
setSelfClassName(java.lang.String selfClassName)
Set the class name of self class.
|
public java.lang.String getSelfClassName()
public void setSelfClassName(java.lang.String selfClassName)
selfClassName - The self class name to set.public java.lang.String getAssociatedClassName()
public void setAssociatedClassName(java.lang.String associatedClassName)
associatedClassName - The associated class name to set.public java.lang.String getClassHoldsForeignKey()
public void setClassHoldsForeignKey(java.lang.String classHoldsForeignKey)
classHoldsForeignKey - The class which holds foreign key to set.public java.lang.reflect.Field getAssociateOtherModelFromSelf()
public void setAssociateOtherModelFromSelf(java.lang.reflect.Field associateOtherModelFromSelf)
associateOtherModelFromSelf - The field which declares has association with other class to
set.public java.lang.reflect.Field getAssociateSelfFromOtherModel()
public void setAssociateSelfFromOtherModel(java.lang.reflect.Field associateSelfFromOtherModel)
associateSelfFromOtherModel - The field of the associated class which declares has
association with self class to set.public int getAssociationType()
public void setAssociationType(int associationType)
associationType - Within ONE_TO_ONE, MANY_TO_ONE and MANY_TO_MANY constants.public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Object