public class ForeignKeyInfo
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_FK_PREFIX |
构造器和说明 |
---|
ForeignKeyInfo(java.lang.String columnName,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean delCascade) |
ForeignKeyInfo(java.lang.String columnName,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean referencesPrimaryKey,
boolean delCascade) |
ForeignKeyInfo(java.lang.String foreignKeyName,
java.lang.String columnName,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean referencesPrimaryKey,
boolean delCascade) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getColumnName() |
java.lang.String |
getForeignKeyName() |
java.lang.Class |
getRelatedClass() |
java.lang.String |
getRelatedColumnName() |
boolean |
isDelCascade() |
boolean |
isReferencesPrimaryKey() |
void |
setColumnName(java.lang.String columnName) |
void |
setDelCascade(boolean delCascade) |
void |
setForeignKeyName(java.lang.String foreignKeyName) |
void |
setReferencesPrimaryKey(boolean referencesPrimaryKey) |
void |
setRelatedClass(java.lang.Class relatedClass) |
void |
setRelatedColumnName(java.lang.String relatedColumnName) |
public static final java.lang.String DEFAULT_FK_PREFIX
public ForeignKeyInfo(java.lang.String columnName, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean delCascade)
public ForeignKeyInfo(java.lang.String columnName, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean referencesPrimaryKey, boolean delCascade)
public ForeignKeyInfo(java.lang.String foreignKeyName, java.lang.String columnName, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean referencesPrimaryKey, boolean delCascade)
public java.lang.String getForeignKeyName()
public void setForeignKeyName(java.lang.String foreignKeyName)
public java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
public java.lang.Class getRelatedClass()
public void setRelatedClass(java.lang.Class relatedClass)
public java.lang.String getRelatedColumnName()
public void setRelatedColumnName(java.lang.String relatedColumnName)
public boolean isDelCascade()
public void setDelCascade(boolean delCascade)
public boolean isReferencesPrimaryKey()
public void setReferencesPrimaryKey(boolean referencesPrimaryKey)