public boolean isOptional() // Really wants to know if it is nullable { return mmd.getColumnMetaData() != null && mmd.getColumnMetaData()[0].isAllowsNull(); }
public long getLong(ResultSet rs, int param) { int value; try { value = rs.getInt(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int", "" + param, column, e.getMessage()), e); } return value; }
public int getInt(ResultSet rs, int param) { int value; try { value = rs.getInt(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int", "" + param, column, e.getMessage()), e); } return value; }
public long getLong(ResultSet rs, int param) { long value; try { value = rs.getLong(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","long","" + param, column, e.getMessage()), e); } return value; }
public int getInt(ResultSet rs, int param) { int value; try { value = rs.getInt(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int", "" + param, column, e.getMessage()), e); } return value; }
public long getLong(ResultSet rs, int param) { long value; try { value = rs.getLong(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","long","" + param, column, e.getMessage()), e); } return value; }
public byte getByte(ResultSet rs, int param) { byte value; try { value = rs.getByte(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002", "byte", "" + param, column, e.getMessage()), e); } return value; }
public short getShort(ResultSet rs, int param) { short value; try { value = rs.getShort(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","short", "" + param, column, e.getMessage()), e); } return value; }
public long getLong(ResultSet rs, int param) { long value; try { value = rs.getLong(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","long", "" + param, column, e.getMessage()), e); } return value; }
public float getFloat(ResultSet rs, int param) { float value; try { value = (float) rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055001","float","" + param, column, e.getMessage()), e); } return value; }
public int getInt(ResultSet rs, int param) { int value; try { value = rs.getInt(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int","" + param, column, e.getMessage()), e); } return value; }
public float getFloat(ResultSet rs, int param) { float value; try { value = (float) rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055001","float","" + param, column, e.getMessage()), e); } return value; }
public float getFloat(ResultSet rs, int param) { float value; try { value = (float) rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055001","float","" + param, column, e.getMessage()), e); } return value; }
public float getFloat(ResultSet rs, int param) { float value; try { value = rs.getFloat(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055001","float","" + param, column, e.getMessage()), e); } return value; }
public double getDouble(ResultSet rs, int param) { double value; try { value = rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","double","" + param, column, e.getMessage()), e); } return value; }
public int getInt(ResultSet rs, int param) { int value; try { value = rs.getInt(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int","" + param, column, e.getMessage()), e); } return value; }
public long getLong(ResultSet rs, int param) { long value; try { value = rs.getLong(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","long","" + param, column, e.getMessage()), e); } return value; }
public int getInt(ResultSet rs, int param) { int value; try { value = (int)rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","int","" + param, column, e.getMessage()), e); } return value; }
public double getDouble(ResultSet rs, int param) { double value; try { value = rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","double","" + param, column, e.getMessage()), e); } return value; }
public double getDouble(ResultSet rs, int param) { double value; try { value = rs.getDouble(param); if ((column == null || column.getColumnMetaData() == null || !column.getColumnMetaData().isAllowsNull()) && rs.wasNull()) { throw new NullValueException(Localiser.msg("055003",column)); } } catch (SQLException e) { throw new NucleusDataStoreException(Localiser.msg("055002","double","" + param, column, e.getMessage()), e); } return value; }