本文整理了Java中java.sql.NClob.getSubString()
方法的一些代码示例,展示了NClob.getSubString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NClob.getSubString()
方法的具体详情如下:
包路径:java.sql.NClob
类名称:NClob
方法名:getSubString
暂无
代码示例来源:origin: co.paralleluniverse/comsat-jdbc
@Override
public String call() throws SQLException {
return nclob.getSubString(pos, length);
}
});
代码示例来源:origin: future-architect/uroborosql
private Object getValue(final ResultSet rs, final ResultSetMetaData rsmd, final int columnIndex)
throws SQLException {
JDBCType type = JDBCType.valueOf(rsmd.getColumnType(columnIndex));
switch (type) {
case CLOB:
Clob clob = rs.getClob(columnIndex);
return clob.getSubString(1, (int) clob.length());
case NCLOB:
NClob nclob = rs.getNClob(columnIndex);
return nclob.getSubString(1, (int) nclob.length());
case BLOB:
Blob blob = rs.getBlob(columnIndex);
return blob.getBytes(1, (int) blob.length());
case ARRAY:
Array arr = rs.getArray(columnIndex);
return arr.getArray();
default:
return rs.getObject(columnIndex);
}
}
代码示例来源:origin: br.com.anteros/Anteros-Core
String s = lob.getSubString(new Long(1).longValue(), (int) lob.length());
if (type == char[].class) {
return s.toCharArray();
内容来源于网络,如有侵权,请联系作者删除!