类 ObjectToJsonMapper<E extends java.io.Serializable>
java.lang.Object
cn.featherfly.common.db.mapping.AbstractJavaSqlTypeMapper<E>
cn.featherfly.common.db.mapping.mappers.ObjectToJsonMapper<E>
- 类型参数:
E- the element type
- 所有已实现的接口:
JavaSqlTypeMapper<E>
public class ObjectToJsonMapper<E extends java.io.Serializable> extends AbstractJavaSqlTypeMapper<E>
ObjectToJsonMapper
.-
构造器概要
构造器 构造器 说明 ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> type)Instantiates a new object to json mapper.ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Instantiates a new object to json mapper.ObjectToJsonMapper(java.lang.Class<E> type)Instantiates a new object to json mapper.ObjectToJsonMapper(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Instantiates a new object to json mapper. -
方法概要
修饰符和类型 方法 说明 Eget(java.sql.ResultSet rs, int columnIndex)Gets the.java.lang.Class<E>getJavaType(java.sql.SQLType sqlType)Gets the java type.java.sql.SQLTypegetSqlType(cn.featherfly.common.lang.GenericType<E> javaType)Gets the sql type.voidset(java.sql.PreparedStatement prep, int columnIndex, E value)Sets the value.booleansupport(java.sql.SQLType sqlType)Support.从类继承的方法 cn.featherfly.common.db.mapping.AbstractJavaSqlTypeMapper
getGenericType, getJavaType, setGenericType, support从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
ObjectToJsonMapper
Instantiates a new object to json mapper.- 参数:
type- the type
-
ObjectToJsonMapper
public ObjectToJsonMapper(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Instantiates a new object to json mapper.- 参数:
type- the typeobjectMapper- the object mapper
-
ObjectToJsonMapper
Instantiates a new object to json mapper.- 参数:
type- the type
-
ObjectToJsonMapper
public ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Instantiates a new object to json mapper.- 参数:
type- the typeobjectMapper- the object mapper
-
-
方法详细资料
-
support
public boolean support(java.sql.SQLType sqlType)Support.- 参数:
sqlType- the sql type- 返回:
- true, if successful
-
getJavaType
Gets the java type.- 参数:
sqlType- the sql type- 返回:
- the java type
-
getSqlType
Gets the sql type.- 参数:
javaType- the java type- 返回:
- the sql type
-
set
Sets the value.- 参数:
prep- the prepcolumnIndex- the parameter indexvalue- the value
-
get
Gets the.- 参数:
rs- the rscolumnIndex- the column index- 返回:
- the e
-