@Override public boolean wasNull() throws SQLException { return delegate.wasNull(); }
public boolean wasNull() throws SQLException { return cstmt.wasNull(); }
@Override public boolean wasNull() throws SQLException { try { return stmt.wasNull(); } catch (Throwable t) { throw checkException(t); } }
@Override public E getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { if (null == cs.getString(columnIndex) && cs.wasNull()) { return null; } return EnumUtils.valueOf(type, cs.getObject(columnIndex)); } }
@Override public boolean callableStatement_wasNull(CallableStatementProxy statement) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_wasNull(this, statement); } return statement.getRawObject().wasNull(); }
@Override public T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { int i = cs.getInt(columnIndex); if (cs.wasNull()) { return null; } else { return locateEnumIntegerValue(i); } }
@Override public J extract(CallableStatement statement, String[] paramNames, WrapperOptions options) throws SQLException { if ( paramNames.length > 1 ) { throw new IllegalArgumentException( "Basic value extraction cannot handle multiple output parameters" ); } final String paramName = paramNames[0]; final J value = doExtract( statement, paramName, options ); final boolean traceEnabled = log.isTraceEnabled(); if ( value == null || statement.wasNull() ) { if ( traceEnabled ) { log.tracef( "extracted named procedure output parameter ([%s] : [%s]) - [null]", paramName, JdbcTypeNameMapper.getTypeName( getSqlDescriptor().getSqlType() ) ); } return null; } else { if ( traceEnabled ) { log.tracef( "extracted named procedure output parameter ([%s] : [%s]) - [%s]", paramName, JdbcTypeNameMapper.getTypeName( getSqlDescriptor().getSqlType() ), getJavaDescriptor().extractLoggableRepresentation( value ) ); } return value; } }
@Override public J extract(CallableStatement statement, int index, WrapperOptions options) throws SQLException { final J value = doExtract( statement, index, options ); final boolean traceEnabled = log.isTraceEnabled(); if ( value == null || statement.wasNull() ) { if ( traceEnabled ) { log.tracef( "extracted procedure output parameter ([%s] : [%s]) - [null]", index, JdbcTypeNameMapper.getTypeName( getSqlDescriptor().getSqlType() ) ); } return null; } else { if ( traceEnabled ) { log.tracef( "extracted procedure output parameter ([%s] : [%s]) - [%s]", index, JdbcTypeNameMapper.getTypeName( getSqlDescriptor().getSqlType() ), getJavaDescriptor().extractLoggableRepresentation( value ) ); } return value; } }
@Override public Long getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { long result = cs.getLong(columnIndex); return result == 0 && cs.wasNull() ? null : result; } }
@Override public Byte getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { byte result = cs.getByte(columnIndex); return result == 0 && cs.wasNull() ? null : result; } }
@Override public boolean wasNull() throws SQLException { try { return stmt.wasNull(); } catch (Throwable t) { throw checkException(t); } }
@Override public Boolean getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { boolean result = cs.getBoolean(columnIndex); return !result && cs.wasNull() ? null : result; } }
@Override public Double getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { double result = cs.getDouble(columnIndex); return result == 0 && cs.wasNull() ? null : result; }
@Override public Short getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { short result = cs.getShort(columnIndex); return result == 0 && cs.wasNull() ? null : result; } }
@Override public Float getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { float result = cs.getFloat(columnIndex); return result == 0 && cs.wasNull() ? null : result; } }
@Override public Integer getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { int result = cs.getInt(columnIndex); return result == 0 && cs.wasNull() ? null : result; } }
@Override public E getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { int code = cs.getInt(columnIndex); return cs.wasNull() ? null : codeOf(code); }
@Override public Year getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { int year = cs.getInt(columnIndex); return year == 0 && cs.wasNull() ? null : Year.of(year); }
@Override public Month getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { int month = cs.getInt(columnIndex); return month == 0 && cs.wasNull() ? null : Month.of(month); }
@Override public boolean callableStatement_wasNull(CallableStatementProxy statement) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_wasNull(this, statement); } return statement.getRawObject().wasNull(); }