@Deprecated public class RemoteDataTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<top.tangyh.basic.model.RemoteData>
借鉴Hibernate的外键字段的思想,自定义一个类型处理器, 将数据库中 bigint、int、varchar类型的字段映射成JavaBean中 RemoteData 类型的字段
| 构造器和说明 |
|---|
RemoteDataTypeHandler()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
top.tangyh.basic.model.RemoteData |
getNullableResult(CallableStatement cs,
int columnIndex)
已过时。
|
top.tangyh.basic.model.RemoteData |
getNullableResult(ResultSet rs,
int columnIndex)
已过时。
|
top.tangyh.basic.model.RemoteData |
getNullableResult(ResultSet rs,
String columnName)
已过时。
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
top.tangyh.basic.model.RemoteData parameter,
org.apache.ibatis.type.JdbcType jdbcType)
已过时。
insert 、update 时执行该方法
|
public void setNonNullParameter(PreparedStatement ps, int i, top.tangyh.basic.model.RemoteData parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter 在类中 org.apache.ibatis.type.BaseTypeHandler<top.tangyh.basic.model.RemoteData>SQLExceptionpublic top.tangyh.basic.model.RemoteData getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<top.tangyh.basic.model.RemoteData>SQLExceptionpublic top.tangyh.basic.model.RemoteData getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<top.tangyh.basic.model.RemoteData>SQLExceptionpublic top.tangyh.basic.model.RemoteData getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<top.tangyh.basic.model.RemoteData>SQLExceptionCopyright © 2021. All rights reserved.