E - the element typepublic class ObjectToJsonMapper<E> extends AbstractJavaSqlTypeMapper<E>
| 构造器和说明 |
|---|
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(java.lang.Class<E> type,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean storeAsString)
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.
|
ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> genericType,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean storeAsString)
Instantiates a new object to json mapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
E |
get(java.sql.ResultSet rs,
int columnIndex)
Gets the.
|
void |
set(java.sql.PreparedStatement prep,
int columnIndex,
E value)
Sets the value.
|
protected boolean |
support(java.sql.SQLType sqlType)
Support.
|
addAllow, addDeny, getGenericType, getJavaType, setGenericType, support, 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(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean storeAsString)
type - the typeobjectMapper - the object mapperstoreAsString - the store as stringpublic 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 ObjectToJsonMapper(cn.featherfly.common.lang.GenericType<E> genericType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean storeAsString)
genericType - the generic typeobjectMapper - the object mapperstoreAsString - the store as stringprotected boolean support(java.sql.SQLType sqlType)
support 在类中 AbstractJavaSqlTypeMapper<E>sqlType - the sql 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