E - the element typepublic class ObjectToJsonMapper<E extends java.io.Serializable> extends AbstractJavaSqlTypeMapper<E>
ObjectToJsonMapper
.| 构造器和说明 |
|---|
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.
|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
E |
get(java.sql.ResultSet rs,
int columnIndex)
Gets the.
|
java.lang.Class<E> |
getJavaType(java.sql.SQLType sqlType)
Gets the java type.
|
java.sql.SQLType |
getSqlType(cn.featherfly.common.lang.GenericType<E> javaType)
Gets the sql type.
|
void |
set(java.sql.PreparedStatement prep,
int columnIndex,
E value)
Sets the value.
|
boolean |
support(java.sql.SQLType sqlType) |
getGenericType, getJavaType, setGenericType, supportpublic ObjectToJsonMapper(java.lang.Class<E> type)
type - the typepublic ObjectToJsonMapper(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
type - the typeobjectMapper - the object mapperpublic ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> type)
type - the typepublic ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
type - the typeobjectMapper - the object mapperpublic boolean support(java.sql.SQLType sqlType)
public java.lang.Class<E> getJavaType(java.sql.SQLType sqlType)
sqlType - the sql typepublic java.sql.SQLType getSqlType(cn.featherfly.common.lang.GenericType<E> javaType)
javaType - the java typepublic void set(java.sql.PreparedStatement prep,
int columnIndex,
E value)
prep - the prepcolumnIndex - the parameter indexvalue - the valuepublic E get(java.sql.ResultSet rs, int columnIndex)
rs - the rscolumnIndex - the column index