public enum PersistenceStrategy extends Enum<PersistenceStrategy>
Enum Constant and Description |
---|
BLOB
Stores object value as BLOB, by mapping its value to Cassandra table column with blob type.
|
POJO
Stores each field of an object as a column having corresponding type in Cassandra table.
|
PRIMITIVE
Stores object value as is, by mapping its value to Cassandra table column with corresponding type.
|
Modifier and Type | Method and Description |
---|---|
static PersistenceStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceStrategy PRIMITIVE
Could be used for primitive java type (like Integer, String, Long and etc) which could be directly mapped to appropriate Cassandra types.
public static final PersistenceStrategy BLOB
Available serializer implementations:
public static final PersistenceStrategy POJO
Could be used for objects which follow JavaBeans convention and having empty public constructor. Object fields should be:
public static PersistenceStrategy[] values()
for (PersistenceStrategy c : PersistenceStrategy.values()) System.out.println(c);
public static PersistenceStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024