本文整理了Java中java.sql.Array.free()
方法的一些代码示例,展示了Array.free()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Array.free()
方法的具体详情如下:
包路径:java.sql.Array
类名称:Array
方法名:free
[英]Frees any resources held by this array. After free is called, calling method other than free will throw SQLException (calling freerepeatedly will do nothing).
[中]释放此阵列持有的所有资源。调用free后,调用free以外的方法将抛出SQLException(重复调用free将不起任何作用)。
代码示例来源:origin: jdbi/jdbi
@Override
public Object map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
java.sql.Array array = r.getArray(columnNumber);
if (array == null) {
return null;
}
try {
return buildArray(array, ctx);
} finally {
array.free();
}
}
代码示例来源:origin: jdbi/jdbi
@Override
public R map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
Array array = r.getArray(columnNumber);
if (array == null) {
return null;
}
try {
return buildFromResultSet(array, ctx);
} finally {
array.free();
}
}
代码示例来源:origin: org.mybatis/mybatis
protected Object extractArray(Array array) throws SQLException {
if (array == null) {
return null;
}
Object result = array.getArray();
array.free();
return result;
}
代码示例来源:origin: co.paralleluniverse/comsat-jdbc
@Override
public Void call() throws SQLException {
array.free();
return null;
}
});
代码示例来源:origin: ha-jdbc/ha-jdbc
@Override
public void close(D database, Array array) throws SQLException
{
array.free();
}
代码示例来源:origin: org.jdbi/jdbi3
@Override
public C map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
java.sql.Array array = r.getArray(columnNumber);
if (array == null) {
return null;
}
try {
return buildFromResultSet(array, ctx);
}
finally {
array.free();
}
}
代码示例来源:origin: org.jdbi/jdbi3
@Override
public Object map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
java.sql.Array array = r.getArray(columnNumber);
if (array == null) {
return null;
}
try {
return buildArray(array, ctx);
}
finally {
array.free();
}
}
代码示例来源:origin: JetBrains/dekaf
@Nullable
@Override
A getValue(@NotNull final ResultSet rset, final int index) throws SQLException {
Array array = rset.getArray(index);
if (array == null) return null;
try {
if (rset.wasNull()) return null;
return convertArray(array);
}
finally {
array.free();
}
}
代码示例来源:origin: org.jooq/jooq
/**
* Safely free an Array object.
* <p>
* This method will silently ignore if <code>array</code> is
* <code>null</code>, or if {@link Array#free()} throws an exception.
*/
public static final void safeFree(Array array) {
if (array != null) {
try {
array.free();
}
catch (Exception ignore) {
log.warn("Error while freeing resource", ignore);
}
// [#3069] The free() method was added only in JDBC 4.0 / Java 1.6
catch (AbstractMethodError ignore) {}
}
}
代码示例来源:origin: stackoverflow.com
Array return_objs = ocs.getArray(1);
Clob[] clobs = (Clob[]) return_objs.getArray();
return_objs.free();
for(int i = 0; i < clobs.length; i++ )
{
//Utilize clob
clobs[i].free();
}
代码示例来源:origin: lutece-platform/lutece-core
array.free( );
代码示例来源:origin: io.vertx/vertx-jdbc-client
a.free();
代码示例来源:origin: apache/sis
final java.sql.Array array = (java.sql.Array) value;
value = array.getArray();
array.free();
代码示例来源:origin: org.apache.sis.core/sis-metadata
final java.sql.Array array = (java.sql.Array) value;
value = array.getArray();
array.free();
内容来源于网络,如有侵权,请联系作者删除!