T - - TypeHandler conversion type@MappedJdbcTypes(value=NVARCHAR)
public abstract class AbstractTypeHandler<T>
extends org.apache.ibatis.type.BaseTypeHandler<T>
URITypeHandler}, {@link UUIDTypeHandler}| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeHandler(Function<String,T> format,
T nullValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
getNullableResult(CallableStatement cs,
int columnIndex) |
T |
getNullableResult(ResultSet rs,
int columnIndex) |
T |
getNullableResult(ResultSet rs,
String columnName) |
void |
setNonNullParameter(PreparedStatement ps,
int columnIndex,
T type,
org.apache.ibatis.type.JdbcType jdbcType) |
public T getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionpublic T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionpublic T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionpublic void setNonNullParameter(PreparedStatement ps, int columnIndex, T type, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionCopyright © 2019. All rights reserved.