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, wait
getSqlExpression, setColumnMapping, setDefaultJavaType, setSqlType
public Boolean get(ResultSet rs, String colName) throws SQLException
TypeHandler
get
in interface TypeHandler<Boolean>
rs
- 结果集colName
- 列名SQLException
public Boolean get(ResultSet rs, int index) throws SQLException
TypeHandler
get
in interface TypeHandler<Boolean>
rs
- 结果集index
- 索引SQLException
public Boolean get(CallableStatement cs, int index) throws SQLException
get
in interface TypeHandler<Boolean>
SQLException
public Boolean get(CallableStatement cs, String parameterName) throws SQLException
get
in interface TypeHandler<Boolean>
SQLException
public Object set(PreparedStatement stat, Object obj, int i) throws SQLException
set
in interface TypeHandler<Boolean>
stat
- obj
- i
- SQLException
public Object set(CallableStatement cs, Object obj, String parameterName) throws SQLException
set
in interface TypeHandler<Boolean>
cs
- obj
- parameterName
- SQLException
public void update(ResultSet rs, String columnLabel, Object value) throws SQLException
TypeHandler
update
in interface TypeHandler<Boolean>
SQLException
public void update(ResultSet rs, int columnIndex, Object value) throws SQLException
update
in interface TypeHandler<Boolean>
SQLException
public int getSqlType()
TypeHandler
getSqlType
in interface TypeHandler<Boolean>
public Class<Boolean> getDefaultJavaType()
TypeHandler
getDefaultJavaType
in interface TypeHandler<Boolean>
Copyright © 2020. All rights reserved.