public class PropertyMappingHelper extends Object
Constructor and Description |
---|
PropertyMappingHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
getCassandraColumnValue(com.datastax.driver.core.Row row,
String col,
Class clazz,
Serializer serializer)
Returns value of specific column in the row returned by CQL statement.
|
static com.datastax.driver.core.DataType.Name |
getCassandraType(Class clazz)
Maps Cassandra type to specified Java type.
|
static PojoFieldAccessor |
getPojoFieldAccessor(Class clazz,
String prop)
Returns property accessor by class property name.
|
public static com.datastax.driver.core.DataType.Name getCassandraType(Class clazz)
clazz
- java class.public static PojoFieldAccessor getPojoFieldAccessor(Class clazz, String prop)
clazz
- class from which to get property accessor.prop
- name of the property.public static Object getCassandraColumnValue(com.datastax.driver.core.Row row, String col, Class clazz, Serializer serializer)
row
- row returned by CQL statement.col
- column name.clazz
- java class to which column value should be casted.serializer
- serializer to use if column stores BLOB otherwise could be null.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024