R
- a supertype of all stored values@SPI
public interface ColumnMapping<R>
A ColumnTypeMapping
allows to map column values of certain type to their value
in the storage.
Since there is a limited set of possible column types, in most non-testing scenarios it will
be more convenient to extend AbstractColumnMapping
than to implement this interface
directly.
Modifier and Type | Method and Description |
---|---|
<T> ColumnTypeMapping<T,? extends R> |
of(java.lang.Class<T> type)
Obtains the mapping rules for the given type.
|
ColumnTypeMapping<?,? extends R> |
ofNull()
Obtains the mapping rules of
null . |
<T> ColumnTypeMapping<T,? extends R> of(java.lang.Class<T> type)
T
- the column typejava.lang.IllegalArgumentException
- if the mapping for the specified type cannot be foundColumnTypeMapping<?,? extends R> ofNull()
null
.