public abstract class AbstractFieldColumnMapper extends java.lang.Object implements FieldColumnMapper
构造器和说明 |
---|
AbstractFieldColumnMapper(java.lang.String fieldName,
int type,
ColumnSize size) |
AbstractFieldColumnMapper(java.lang.String fieldName,
int type,
ColumnSize size,
boolean allowNull) |
AbstractFieldColumnMapper(java.lang.String fieldName,
int type,
java.lang.String columnName,
ColumnSize size,
boolean allowNull) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
allowNull()
允许为空
|
Column |
createTableColumn()
创建列
|
java.lang.Object |
field2Value(java.lang.Object field,
DataAccessObjectSession session)
入库值转化
|
java.lang.String |
getColumnName() |
ColumnSize |
getColumnSize() |
java.lang.String |
getFieldName() |
ForeignKeyInfo |
getForeignKeyInfo() |
int |
getType() |
void |
setAllowNull(boolean allowNull) |
void |
setColumnName(java.lang.String columnName) |
void |
setColumnSize(ColumnSize size) |
void |
setFieldName(java.lang.String fieldName) |
void |
setType(int type) |
java.lang.Object |
value2Field(java.lang.Object value,
DataAccessObjectSession session)
出库值转化
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIndirectRelatedClass, isForeignKey, isPrimaryKey, isRelationSet
public AbstractFieldColumnMapper(java.lang.String fieldName, int type, ColumnSize size)
public AbstractFieldColumnMapper(java.lang.String fieldName, int type, ColumnSize size, boolean allowNull)
public AbstractFieldColumnMapper(java.lang.String fieldName, int type, java.lang.String columnName, ColumnSize size, boolean allowNull)
public void setFieldName(java.lang.String fieldName)
setFieldName
在接口中 FieldColumnMapper
public java.lang.String getFieldName()
getFieldName
在接口中 FieldColumnMapper
public void setType(int type)
setType
在接口中 FieldColumnMapper
public int getType()
getType
在接口中 FieldColumnMapper
public void setColumnName(java.lang.String columnName)
setColumnName
在接口中 FieldColumnMapper
public java.lang.String getColumnName()
getColumnName
在接口中 FieldColumnMapper
public ColumnSize getColumnSize()
getColumnSize
在接口中 FieldColumnMapper
public void setColumnSize(ColumnSize size)
setColumnSize
在接口中 FieldColumnMapper
public boolean allowNull()
allowNull
在接口中 FieldColumnMapper
public void setAllowNull(boolean allowNull)
setAllowNull
在接口中 FieldColumnMapper
public ForeignKeyInfo getForeignKeyInfo()
getForeignKeyInfo
在接口中 FieldColumnMapper
public Column createTableColumn()
createTableColumn
在接口中 FieldColumnMapper
public java.lang.Object field2Value(java.lang.Object field, DataAccessObjectSession session) throws java.lang.Exception
field2Value
在接口中 FieldColumnMapper
field
- 当前对象session
- DAO会话环境java.lang.Exception
- 抛出异常public java.lang.Object value2Field(java.lang.Object value, DataAccessObjectSession session) throws java.lang.Exception
value2Field
在接口中 FieldColumnMapper
value
- 库中数据session
- DAO会话环境java.lang.Exception
- 抛出异常