public class StringClobType extends Object implements TypeHandler<String>
| Constructor and Description |
|---|
StringClobType() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(CallableStatement rs,
int index) |
String |
get(CallableStatement cs,
String parameterName) |
String |
get(ResultSet rs,
int index)
从结果集里获取一个字段的值
|
String |
get(ResultSet rs,
String colName)
从结果集里获取一个字段的值
|
Class<String> |
getDefaultJavaType()
类型
|
int |
getSqlType()
java.sql.Types的值
|
String |
getStringValue(Clob clob) |
Object |
set(CallableStatement cs,
Object obj,
String parameterName) |
Object |
set(PreparedStatement ps,
Object obj,
int i)
为缓冲语句设置值
|
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 String get(ResultSet rs, String colName) throws SQLException
TypeHandlerget in interface TypeHandler<String>rs - 结果集colName - 列名SQLExceptionpublic String get(ResultSet rs, int index) throws SQLException
TypeHandlerget in interface TypeHandler<String>rs - 结果集index - 索引SQLExceptionpublic String get(CallableStatement rs, int index) throws SQLException
get in interface TypeHandler<String>SQLExceptionpublic String get(CallableStatement cs, String parameterName) throws SQLException
get in interface TypeHandler<String>SQLExceptionpublic void update(ResultSet rs, String columnLabel, Object value) throws SQLException
TypeHandlerupdate in interface TypeHandler<String>SQLExceptionpublic void update(ResultSet rs, int columnIndex, Object value) throws SQLException
update in interface TypeHandler<String>SQLExceptionpublic Object set(PreparedStatement ps, Object obj, int i) throws SQLException
TypeHandler一个值可以被设置到多个占位符中
set in interface TypeHandler<String>ps - 缓冲语句obj - 值i - 占位符位置,从 1 开始SQLExceptionpublic Object set(CallableStatement cs, Object obj, String parameterName) throws SQLException
set in interface TypeHandler<String>SQLExceptionpublic int getSqlType()
TypeHandlergetSqlType in interface TypeHandler<String>public Class<String> getDefaultJavaType()
TypeHandlergetDefaultJavaType in interface TypeHandler<String>public String getStringValue(Clob clob) throws SQLException
SQLExceptionCopyright © 2020. All rights reserved.