Package no.digipost.jdbc
Class Mappers
java.lang.Object
no.digipost.jdbc.Mappers
Various predefined mappers used to extract result(s) from a
ResultSet.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BasicColumnMapper<Object>Gets the value of a given SQLARRAYcolumn as an uncasted Java array object.static final BasicColumnMapper<InputStream>static final BasicColumnMapper<BigDecimal>static final BasicColumnMapper<InputStream>static final BasicColumnMapper<Boolean>Gets the value of a given column as a Javaboolean.static final BasicColumnMapper<Byte>Gets the value of a given column as a Javabyte.static final BasicColumnMapper<byte[]>static final BasicColumnMapper<Reader>static final BasicColumnMapper<Date>static final BasicColumnMapper<Double>Gets the value of a given column as a Javadouble.static final BasicColumnMapper<Float>Gets the value of a given column as a Javafloat.static final BasicColumnMapper<Instant>static final BasicColumnMapper<Integer>Gets the value of a given column as a Javaint.static final BasicColumnMapper<int[]>Gets the value of a given SQLARRAYcolumn as anint[]array.static final BasicColumnMapper<Long>Gets the value of a given column as a Javalong.static final BasicColumnMapper<long[]>Gets the value of a given SQLARRAYcolumn as anlong[]array.static final NullableColumnMapper<InputStream>static final NullableColumnMapper<BigDecimal>static final NullableColumnMapper<InputStream>static final NullableColumnMapper<Boolean>static final NullableColumnMapper<Byte>static final NullableColumnMapper<byte[]>static final NullableColumnMapper<Reader>static final NullableColumnMapper<Date>static final NullableColumnMapper<Double>static final NullableColumnMapper<Float>static final NullableColumnMapper<Instant>static final NullableColumnMapper<Integer>static final NullableColumnMapper<Long>static final NullableColumnMapper<Short>static final NullableColumnMapper<String>static final NullableColumnMapper<Timestamp>static final NullableColumnMapper<URL>static final BasicColumnMapper<Short>Gets the value of a given column as a Javashort.static final BasicColumnMapper<Array>static final BasicColumnMapper<String>static final BasicColumnMapper<String[]>Gets the value of a given SQLARRAYcolumn as anString[]array.static final BasicColumnMapper<Timestamp>static final BasicColumnMapper<URL> -
Method Summary
-
Field Details
-
getBoolean
Gets the value of a given column as a Javaboolean. Unlike theResultSet.getBoolean(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedBoolean. However, for nullable columns, thegetNullableBooleanmapper should be preferred over this.- See Also:
-
getNullableBoolean
- See Also:
-
getByte
Gets the value of a given column as a Javabyte. Unlike theResultSet.getByte(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedByte. However, for nullable columns, thegetNullableBytemapper should be preferred over this.- See Also:
-
getNullableByte
- See Also:
-
getShort
Gets the value of a given column as a Javashort. Unlike theResultSet.getShort(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedShort. However, for nullable columns, thegetNullableShortmapper should be preferred over this.- See Also:
-
getNullableShort
- See Also:
-
getInt
Gets the value of a given column as a Javaint. Unlike theResultSet.getInt(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedInteger. However, for nullable columns, thegetNullableIntmapper should be preferred over this.- See Also:
-
getNullableInt
- See Also:
-
getLong
Gets the value of a given column as a Javalong. Unlike theResultSet.getLong(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedLong. However, for nullable columns, thegetNullableLongmapper should be preferred over this.- See Also:
-
getNullableLong
- See Also:
-
getFloat
Gets the value of a given column as a Javafloat. Unlike theResultSet.getFloat(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedFloat. However, for nullable columns, thegetNullableFloatmapper should be preferred over this.- See Also:
-
getNullableFloat
- See Also:
-
getDouble
Gets the value of a given column as a Javadouble. Unlike theResultSet.getDouble(String), this mapper yieldsnullfor SQLNULL, as the returned value is a boxedDouble. However, for nullable columns, thegetNullableDoublemapper should be preferred over this.- See Also:
-
getNullableDouble
- See Also:
-
getBigDecimal
- See Also:
-
getNullableBigDecimal
- See Also:
-
getBytes
- See Also:
-
getNullableBytes
- See Also:
-
getString
- See Also:
-
getNullableString
- See Also:
-
getURL
- See Also:
-
getNullableURL
- See Also:
-
getDate
- See Also:
-
getNullableDate
- See Also:
-
getTimestamp
- See Also:
-
getNullableTimestamp
- See Also:
-
getInstant
-
getNullableInstant
-
getAsciiStream
- See Also:
-
getNullableAsciiStream
- See Also:
-
getBinaryStream
- See Also:
-
getNullableBinaryStream
- See Also:
-
getCharacterStream
- See Also:
-
getNullableCharacterStream
- See Also:
-
getSqlArray
- See Also:
-
getArray
Gets the value of a given SQLARRAYcolumn as an uncasted Java array object. The result should be casted to the applicable specific array type.- See Also:
-
getStringArray
Gets the value of a given SQLARRAYcolumn as anString[]array. -
getIntArray
Gets the value of a given SQLARRAYcolumn as anint[]array. -
getLongArray
Gets the value of a given SQLARRAYcolumn as anlong[]array.
-