public class SqlTypeMappingManager
extends java.lang.Object
SqlTypeMapping
.| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
The logger.
|
| 构造器和说明 |
|---|
SqlTypeMappingManager()
Instantiates a new sql type mapping manager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<E> E |
get(java.sql.ResultSet rs,
int columnIndex,
cn.featherfly.common.lang.GenericType<E> javaType)
Gets the.
|
<E> E |
get(java.sql.ResultSet rs,
java.lang.String columnName,
cn.featherfly.common.lang.GenericType<E> javaType)
Gets the.
|
java.sql.SQLType |
getEnumOrdinalType()
Gets the enum ordinal type.
|
<E> java.lang.Class<E> |
getJavaType(java.lang.Class<E> entityType,
java.sql.SQLType sqlType)
Gets the java type.
|
<E> java.lang.Class<E> |
getJavaType(java.sql.SQLType sqlType)
Gets the java type.
|
<E> java.sql.SQLType |
getSqlType(java.lang.Class<E> javaType)
Gets the sql type.
|
<E> java.sql.SQLType |
getSqlType(java.lang.Class<E> entityType,
java.lang.Class<E> javaType)
Gets the sql type.
|
boolean |
isEnumWithOrdinal()
Checks if is enum with ordinal.
|
SqlTypeMappingManager |
regist(cn.featherfly.common.lang.GenericType<?> entityType,
JavaSqlTypeMapper<? extends java.lang.Object> mapper)
Regist.
|
SqlTypeMappingManager |
regist(JavaSqlTypeMapper<? extends java.lang.Object> mapper)
Regist.
|
SqlTypeMappingManager |
regist(JavaToSqlTypeRegister<? extends java.lang.Object> register)
Regist.
|
SqlTypeMappingManager |
regist(SqlTypeToJavaRegister<? extends java.lang.Object> register)
Regist.
|
<E> void |
set(java.sql.PreparedStatement prep,
int columnIndex,
E columnValue)
Sets the.
|
<E> void |
set(java.sql.PreparedStatement prep,
int columnIndex,
E columnValue,
cn.featherfly.common.lang.GenericType<E> javaType)
Sets the.
|
void |
setEnumOrdinalType(java.sql.SQLType enumOrdinalType)
Sets the enum ordinal type.
|
void |
setEnumWithOrdinal(boolean enumWithOrdinal)
Sets the enum with ordinal.
|
public SqlTypeMappingManager()
public boolean isEnumWithOrdinal()
DefaultSqlTypeMapping.isEnumWithOrdinal()public void setEnumWithOrdinal(boolean enumWithOrdinal)
enumWithOrdinal - the new enum with ordinalDefaultSqlTypeMapping.setEnumWithOrdinal(boolean)public void setEnumOrdinalType(java.sql.SQLType enumOrdinalType)
enumOrdinalType - the new enum ordinal typeDefaultSqlTypeMapping.setEnumOrdinalType(java.sql.SQLType)public java.sql.SQLType getEnumOrdinalType()
DefaultSqlTypeMapping.getEnumOrdinalType()public SqlTypeMappingManager regist(JavaToSqlTypeRegister<? extends java.lang.Object> register)
register - the registerpublic SqlTypeMappingManager regist(JavaSqlTypeMapper<? extends java.lang.Object> mapper)
mapper - the JavaToSqlTypeMapperpublic SqlTypeMappingManager regist(cn.featherfly.common.lang.GenericType<?> entityType, JavaSqlTypeMapper<? extends java.lang.Object> mapper)
entityType - the entity typemapper - the mapperpublic SqlTypeMappingManager regist(SqlTypeToJavaRegister<? extends java.lang.Object> register)
register - the registerpublic <E> java.sql.SQLType getSqlType(java.lang.Class<E> javaType)
E - the element typejavaType - the java typepublic <E> java.sql.SQLType getSqlType(java.lang.Class<E> entityType,
java.lang.Class<E> javaType)
E - the element typeentityType - the entity typejavaType - the java typepublic <E> java.lang.Class<E> getJavaType(java.sql.SQLType sqlType)
E - the element typesqlType - the sql typepublic <E> java.lang.Class<E> getJavaType(java.lang.Class<E> entityType,
java.sql.SQLType sqlType)
E - the element typeentityType - the entity typesqlType - the sql typepublic <E> void set(java.sql.PreparedStatement prep,
int columnIndex,
E columnValue)
E - the element typeprep - the prepcolumnIndex - the column indexcolumnValue - the column valuepublic <E> void set(java.sql.PreparedStatement prep,
int columnIndex,
E columnValue,
cn.featherfly.common.lang.GenericType<E> javaType)
E - the element typeprep - the prepcolumnIndex - the column indexcolumnValue - the column valuejavaType - the java typepublic <E> E get(java.sql.ResultSet rs,
int columnIndex,
cn.featherfly.common.lang.GenericType<E> javaType)
E - the element typers - the rscolumnIndex - the column indexjavaType - the java typepublic <E> E get(java.sql.ResultSet rs,
java.lang.String columnName,
cn.featherfly.common.lang.GenericType<E> javaType)
E - the element typers - the rscolumnName - the column namejavaType - the java type