DefaultColumnMapping

public final class DefaultColumnMapping extends AbstractColumnMapping<R>

A default column mapping which stores all values "as-is".

May be sufficient for in-memory storage implementations and storages that do manual conversion of column values.

Properties

Link copied to clipboard
public final static DefaultColumnMapping INSTANCE

Functions

Link copied to clipboard
Returns the mapping rules of Boolean columns.
Link copied to clipboard
protected ColumnTypeMapping<ByteString, ByteString> ofByteString()
Returns the mapping rules of ByteString columns.
Link copied to clipboard
Returns the mapping rules of Double columns.
Link copied to clipboard
protected ColumnTypeMapping<Enum<? extends Object>, Enum<? extends Object>> ofEnum()
Returns the mapping rules of Enum columns.
Link copied to clipboard
Returns the mapping rules of Float columns.
Link copied to clipboard
Returns the mapping rules of Integer columns.
Link copied to clipboard
Returns the mapping rules of Long columns.
Link copied to clipboard
protected ColumnTypeMapping<Message, Message> ofMessage()
Returns the mapping rules of Message columns.
Link copied to clipboard
public ColumnTypeMapping<? extends Object, ? extends Object> ofNull()
Obtains the mapping rules of null.
Link copied to clipboard
Returns the mapping rules of String columns.

Inherited functions

Link copied to clipboard
public ColumnTypeMapping<T, ? extends R> of<T>(Class<T> type)
Obtains the mapping rules for the given type.
Link copied to clipboard
protected void setupCustomMapping(Builder<Class<?>, ColumnTypeMapping<?, ? extends R>> builder)
Allows to specify custom mapping rules.
Link copied to clipboard
protected IllegalArgumentException unsupportedType(Class<? extends Object> aClass)
Throws an exception about an unsupported column type.