@Override public byte[] getBytes() throws SQLException { try { return delegate.getBytes(); } catch(RuntimeException e) { String message = e.getMessage(); if (message != null && message.startsWith("cannot convert to")) { throw new SQLException(e.getMessage(), e); } throw e; } }
@Override public byte[] getBytes() throws SQLException { try { return delegate.getBytes(); } catch(RuntimeException e) { String message = e.getMessage(); if (message != null && message.startsWith("cannot convert to")) { throw new SQLException(e.getMessage(), e); } throw e; } }
case Types.VARBINARY: case Types.LONGVARBINARY: return componentAccessor.getBytes(); case Types.DECIMAL: return componentAccessor.getBigDecimal();
case Types.LONGVARBINARY: case Types.VARBINARY: return accessor.getBytes(); case Types.BIT: case Types.BOOLEAN:
case Types.LONGVARBINARY: case Types.VARBINARY: return accessor.getBytes(); case Types.BIT: case Types.BOOLEAN:
case Types.LONGVARBINARY: case Types.VARBINARY: return accessor.getBytes(); case Types.BIT: case Types.BOOLEAN:
case Types.VARBINARY: case Types.LONGVARBINARY: return componentAccessor.getBytes(); case Types.DECIMAL: return componentAccessor.getBigDecimal();
public byte[] getBytes(String columnLabel) throws SQLException { return getAccessor(columnLabel).getBytes(); }
public byte[] getBytes(int columnIndex) throws SQLException { return getAccessor(columnIndex).getBytes(); }
public byte[] getBytes(String columnLabel) throws SQLException { return getAccessor(columnLabel).getBytes(); }
public byte[] getBytes(int columnIndex) throws SQLException { return getAccessor(columnIndex).getBytes(); }
public byte[] getBytes(String columnLabel) throws SQLException { return getAccessor(columnLabel).getBytes(); }
public byte[] getBytes(int columnIndex) throws SQLException { return getAccessor(columnIndex).getBytes(); }