public class BooleanType extends Object implements TypeHandler<Boolean>
对 Oracle,Types.BOOLEAN 对于 setNull 是不工作的 因此 OracleExpert 会用一个新的 Adaptor 处理自己这种特殊情况
| Constructor and Description |
|---|
BooleanType() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
get(CallableStatement cs,
int index) |
Boolean |
get(CallableStatement cs,
String parameterName) |
Boolean |
get(ResultSet rs,
int index)
从结果集里获取一个字段的值
|
Boolean |
get(ResultSet rs,
String colName)
从结果集里获取一个字段的值
|
Class<Boolean> |
getDefaultJavaType()
类型
|
int |
getSqlType()
java.sql.Types的值
|
Object |
set(CallableStatement cs,
Object obj,
String parameterName) |
Object |
set(PreparedStatement stat,
Object obj,
int i)
Oracle,Types.BOOLEAN 对于 setNull 是不工作的
|
void |
update(ResultSet rs,
int columnIndex,
Object value) |
void |
update(ResultSet rs,
String columnLabel,
Object value)
为了支持悲观锁中的数据类型转换
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSqlExpression, setColumnMapping, setDefaultJavaType, setSqlTypepublic Boolean get(ResultSet rs, String colName) throws SQLException
TypeHandlerget in interface TypeHandler<Boolean>rs - 结果集colName - 列名SQLExceptionpublic Boolean get(ResultSet rs, int index) throws SQLException
TypeHandlerget in interface TypeHandler<Boolean>rs - 结果集index - 索引SQLExceptionpublic Boolean get(CallableStatement cs, int index) throws SQLException
get in interface TypeHandler<Boolean>SQLExceptionpublic Boolean get(CallableStatement cs, String parameterName) throws SQLException
get in interface TypeHandler<Boolean>SQLExceptionpublic Object set(PreparedStatement stat, Object obj, int i) throws SQLException
set in interface TypeHandler<Boolean>stat - obj - i - SQLExceptionpublic Object set(CallableStatement cs, Object obj, String parameterName) throws SQLException
set in interface TypeHandler<Boolean>cs - obj - parameterName - SQLExceptionpublic void update(ResultSet rs, String columnLabel, Object value) throws SQLException
TypeHandlerupdate in interface TypeHandler<Boolean>SQLExceptionpublic void update(ResultSet rs, int columnIndex, Object value) throws SQLException
update in interface TypeHandler<Boolean>SQLExceptionpublic int getSqlType()
TypeHandlergetSqlType in interface TypeHandler<Boolean>public Class<Boolean> getDefaultJavaType()
TypeHandlergetDefaultJavaType in interface TypeHandler<Boolean>Copyright © 2020. All rights reserved.