public abstract class ForeignKeyFCMapper extends AbstractFieldColumnMapper
限定符和类型 | 字段和说明 |
---|---|
static int |
CASCADE_TYPE_FOREIGN
由自身控制串联关系
|
static int |
CASCADE_TYPE_PRIMARY
由关联的主表控制串联关系
|
构造器和说明 |
---|
ForeignKeyFCMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull,
java.lang.Class relatedClass,
boolean delCascade,
boolean toObj) |
ForeignKeyFCMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull,
java.lang.Class relatedClass,
boolean delCascade,
int cascadeType,
boolean toObj) |
ForeignKeyFCMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean delCascade,
boolean toObj,
boolean referencesPrimaryKey) |
ForeignKeyFCMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean delCascade,
int cascadeType,
boolean toObj) |
ForeignKeyFCMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull,
java.lang.Class relatedClass,
java.lang.String relatedColumnName,
boolean delCascade,
int cascadeType,
boolean toObj,
boolean referencesPrimaryKey) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
field2Value(java.lang.Object field,
DataAccessObjectSession session)
入库值转化
|
int |
getCascadeType() |
ForeignKeyInfo |
getForeignKeyInfo() |
java.lang.Class[] |
getIndirectRelatedClass()
需要创建的关联表的信息
|
java.lang.Class |
getRelatedClass() |
boolean |
isDelCascade() |
boolean |
isForeignKey()
是否是外键
|
boolean |
isPrimaryKey()
是否是主键
|
boolean |
isRelationSet()
是不是一对多,或者多对多时,值是Set的情况
|
java.lang.Object |
value2Field(java.lang.Object value,
DataAccessObjectSession session)
出库值转化
|
allowNull, createTableColumn, getColumnName, getColumnSize, getFieldName, getType, setAllowNull, setColumnName, setColumnSize, setFieldName, setType
public static final int CASCADE_TYPE_PRIMARY
public static final int CASCADE_TYPE_FOREIGN
public ForeignKeyFCMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull, java.lang.Class relatedClass, boolean delCascade, boolean toObj)
public ForeignKeyFCMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean delCascade, boolean toObj, boolean referencesPrimaryKey)
public ForeignKeyFCMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull, java.lang.Class relatedClass, boolean delCascade, int cascadeType, boolean toObj)
public ForeignKeyFCMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean delCascade, int cascadeType, boolean toObj)
public ForeignKeyFCMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull, java.lang.Class relatedClass, java.lang.String relatedColumnName, boolean delCascade, int cascadeType, boolean toObj, boolean referencesPrimaryKey)
public ForeignKeyInfo getForeignKeyInfo()
getForeignKeyInfo
在接口中 FieldColumnMapper
getForeignKeyInfo
在类中 AbstractFieldColumnMapper
public boolean isPrimaryKey()
FieldColumnMapper
public boolean isForeignKey()
FieldColumnMapper
public java.lang.Class[] getIndirectRelatedClass()
FieldColumnMapper
public boolean isDelCascade()
public int getCascadeType()
public java.lang.Class getRelatedClass()
public java.lang.Object field2Value(java.lang.Object field, DataAccessObjectSession session) throws java.lang.Exception
AbstractFieldColumnMapper
field2Value
在接口中 FieldColumnMapper
field2Value
在类中 AbstractFieldColumnMapper
field
- 当前对象session
- DAO会话环境java.lang.Exception
- 抛出异常public java.lang.Object value2Field(java.lang.Object value, DataAccessObjectSession session) throws java.lang.Exception
AbstractFieldColumnMapper
value2Field
在接口中 FieldColumnMapper
value2Field
在类中 AbstractFieldColumnMapper
value
- 库中数据session
- DAO会话环境java.lang.Exception
- 抛出异常public boolean isRelationSet()
FieldColumnMapper