public class UserTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<Long>
| Constructor and Description |
|---|
UserTypeHandler() |
UserTypeHandler(Class<Long> type)
在构造方法中预存当前枚举类所有枚举项
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getNullableResult(CallableStatement cs,
int columnIndex) |
Long |
getNullableResult(ResultSet rs,
int columnIndex) |
Long |
getNullableResult(ResultSet rs,
String columnName) |
String |
getUserLoginName(Long userId)
使用用户ID获取用户登录名
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
Long parameter,
org.apache.ibatis.type.JdbcType jdbcType)
默认当值不为空时进 赋值
|
void |
setParameter(PreparedStatement ps,
int i,
Long parameter,
org.apache.ibatis.type.JdbcType jdbcType)
默认为空时进 赋值
|
public void setParameter(PreparedStatement ps, int i, Long parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setParameter in interface org.apache.ibatis.type.TypeHandler<Long>setParameter in class org.apache.ibatis.type.BaseTypeHandler<Long>SQLExceptionpublic void setNonNullParameter(PreparedStatement ps, int i, Long parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<Long>SQLExceptionpublic Long getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<Long>SQLExceptionpublic Long getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<Long>SQLExceptionpublic Long getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<Long>SQLExceptionCopyright © 2016 Le. All rights reserved.