V - the value typeE - the element typepublic abstract class AbstractValueJavaSqlTypeMapper<V extends cn.featherfly.common.model.Value<E>,E> extends AbstractGenericJavaSqlTypeMapper<V>
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Class<E> |
elementType
The element type.
|
| 构造器和说明 |
|---|
AbstractValueJavaSqlTypeMapper()
Instantiates a new abstract value java sql type mapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
V |
get(java.sql.ResultSet rs,
int columnIndex)
Gets the.
|
java.lang.Class<V> |
getJavaType(java.sql.SQLType sqlType)
Gets the java type.
|
java.sql.SQLType |
getSqlType(cn.featherfly.common.lang.GenericType<V> javaType)
Gets the sql type.
|
void |
set(java.sql.PreparedStatement prep,
int parameterIndex,
V value)
Sets the value.
|
boolean |
support(cn.featherfly.common.lang.GenericType<V> type)
Support.
|
protected abstract V |
toValue(E value)
Gets the value.
|
addAllow, addDeny, getGenericType, getJavaType, setGenericType, support, supportprotected java.lang.Class<E> elementType
public AbstractValueJavaSqlTypeMapper()
public boolean support(cn.featherfly.common.lang.GenericType<V> type)
support 在接口中 JavaSqlTypeMapper<V extends cn.featherfly.common.model.Value<E>>support 在类中 AbstractJavaSqlTypeMapper<V extends cn.featherfly.common.model.Value<E>>type - the typepublic java.lang.Class<V> getJavaType(java.sql.SQLType sqlType)
getJavaType 在接口中 JavaSqlTypeMapper<V extends cn.featherfly.common.model.Value<E>>getJavaType 在类中 AbstractJavaSqlTypeMapper<V extends cn.featherfly.common.model.Value<E>>sqlType - the sql typepublic java.sql.SQLType getSqlType(cn.featherfly.common.lang.GenericType<V> javaType)
javaType - the java typepublic void set(java.sql.PreparedStatement prep,
int parameterIndex,
V value)
prep - the prepparameterIndex - the parameter indexvalue - the valuepublic V get(java.sql.ResultSet rs, int columnIndex)
rs - the rscolumnIndex - the column index