public byte[] getBytes(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.VARBINARY, Types.BINARY, "Bytes"); return ((byte[]) callResult[parameterIndex - 1]); }
public SQLXML getSQLXML(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.SQLXML, "SQLXML"); return (SQLXML) callResult[parameterIndex - 1]; }
public float getFloat(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.REAL, "Float"); if (callResult[parameterIndex - 1] == null) { return 0; } return (Float) callResult[parameterIndex - 1]; }
public java.math.BigDecimal getBigDecimal(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.NUMERIC, "BigDecimal"); return ((BigDecimal) callResult[parameterIndex - 1]); }
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.NUMERIC, "BigDecimal"); return ((BigDecimal) callResult[parameterIndex - 1]); }
public String getString(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.VARCHAR, "String"); return (String) callResult[parameterIndex - 1]; }
public byte getByte(int parameterIndex) throws SQLException { checkClosed(); // fake tiny int with smallint checkIndex(parameterIndex, Types.SMALLINT, "Byte"); if (callResult[parameterIndex - 1] == null) { return 0; } return ((Integer) callResult[parameterIndex - 1]).byteValue(); }
public long getLong(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.BIGINT, "Long"); if (callResult[parameterIndex - 1] == null) { return 0; } return (Long) callResult[parameterIndex - 1]; }
public double getDouble(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.DOUBLE, "Double"); if (callResult[parameterIndex - 1] == null) { return 0; } return (Double) callResult[parameterIndex - 1]; }
public java.sql.Date getDate(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.DATE, "Date"); return (java.sql.Date) callResult[parameterIndex - 1]; }
public java.sql.Array getArray(int i) throws SQLException { checkClosed(); checkIndex(i, Types.ARRAY, "Array"); return (Array) callResult[i - 1]; }
public boolean getBoolean(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.BIT, "Boolean"); if (callResult[parameterIndex - 1] == null) { return false; } return (Boolean) callResult[parameterIndex - 1]; }
public short getShort(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.SMALLINT, "Short"); if (callResult[parameterIndex - 1] == null) { return 0; } return ((Integer) callResult[parameterIndex - 1]).shortValue(); }
public int getInt(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.INTEGER, "Int"); if (callResult[parameterIndex - 1] == null) { return 0; } return (Integer) callResult[parameterIndex - 1]; }
public java.sql.Time getTime(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.TIME, "Time"); return (java.sql.Time) callResult[parameterIndex - 1]; }
public java.sql.Timestamp getTimestamp(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex, Types.TIMESTAMP, "Timestamp"); return (java.sql.Timestamp) callResult[parameterIndex - 1]; }
public Object getObject(int parameterIndex) throws SQLException { checkClosed(); checkIndex(parameterIndex); return callResult[parameterIndex - 1]; }
public java.sql.Date getDate(int i, java.util.Calendar cal) throws SQLException { checkClosed(); checkIndex(i, Types.DATE, "Date"); if (callResult[i - 1] == null) { return null; } String value = callResult[i - 1].toString(); return connection.getTimestampUtils().toDate(cal, value); }
public Time getTime(int i, java.util.Calendar cal) throws SQLException { checkClosed(); checkIndex(i, Types.TIME, "Time"); if (callResult[i - 1] == null) { return null; } String value = callResult[i - 1].toString(); return connection.getTimestampUtils().toTime(cal, value); }
public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException { checkClosed(); checkIndex(i, Types.TIMESTAMP, "Timestamp"); if (callResult[i - 1] == null) { return null; } String value = callResult[i - 1].toString(); return connection.getTimestampUtils().toTimestamp(cal, value); }