@Override public Clob getClob(int parameterIndex) throws SQLException { return delegate.getClob(parameterIndex); }
@Override public Clob getClob(String parameterName) throws SQLException { return delegate.getClob(parameterName); }
public Clob getClob(int parameterIndex) throws SQLException { return cstmt.getClob(parameterIndex); }
public Clob getClob(String parameterName) throws SQLException { return cstmt.getClob(parameterName); }
@Override public Clob getClob(String parameterName) throws SQLException { try { return stmt.getClob(parameterName); } catch (Throwable t) { throw checkException(t); } }
@Override public Clob getClob(int parameterIndex) throws SQLException { try { return stmt.getClob(parameterIndex); } catch (Throwable t) { throw checkException(t); } }
@Override protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException { return javaTypeDescriptor.wrap( statement.getClob( name ), options ); } };
@Override protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException { return javaTypeDescriptor.wrap( statement.getClob( index ), options ); }
@Override protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException { return javaTypeDescriptor.wrap( statement.getClob( name ), options ); } };
@Override protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException { return javaTypeDescriptor.wrap( statement.getClob( index ), options ); }
@Override public Clob callableStatement_getClob(CallableStatementProxy statement, String parameterName) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getClob(this, statement, parameterName); } Clob clob = statement.getRawObject() .getClob(parameterName); return wrap(statement, clob); }
@Override public Clob callableStatement_getClob(CallableStatementProxy statement, int parameterIndex) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getClob(this, statement, parameterIndex); } Clob clob = statement.getRawObject() .getClob(parameterIndex); return wrap(statement, clob); }
@Override public String getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { String value = ""; Clob clob = cs.getClob(columnIndex); if (clob != null) { int size = (int) clob.length(); value = clob.getSubString(1, size); } return value; } }
@Override public String getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { String value = ""; Clob clob = cs.getClob(columnIndex); if (clob != null) { int size = (int) clob.length(); value = clob.getSubString(1, size); } return value; } }
/** * Get a {@link Reader} that corresponds to a specified column index from {@link CallableStatement}. * @see CallableStatement#getClob(int) */ @Override public Reader getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { return toReader(cs.getClob(columnIndex)); }
@Override public String getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { Clob clob = cs.getClob(columnIndex); return toString(clob); }
@Override public String getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { Clob clob = cs.getClob(columnIndex); return toString(clob); }
/** * Get a {@link Reader} that corresponds to a specified column index from {@link CallableStatement}. * @see CallableStatement#getClob(int) */ @Override public Reader getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { return toReader(cs.getClob(columnIndex)); }
@Override public Object getTypeValue(CallableStatement cs, int paramIndex, int sqlType, String typeName) throws SQLException { Clob clob = cs.getClob(paramIndex); return clob != null ? clob.getSubString(1, (int) clob.length()) : null; } }
@Override public Clob callableStatement_getClob(CallableStatementProxy statement, String parameterName) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getClob(this, statement, parameterName); } Clob clob = statement.getRawObject() .getClob(parameterName); return wrap(statement, clob); }