public class UDTRootClassInfoImpl.POJOContext extends UDTClassInfoImpl.POJOContext
POJOContext class provides a specific context for the POJO
as referenced while building an insert or update statement.objectsuffixes| Constructor and Description |
|---|
POJOContext(T object)
Instantiates a new
POJOContext object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSuffix(String suffix,
Object value)
Adds a suffix to the context for use in keyspace name creation.
|
Collection<T> |
getInitialObjects()
Gets the initial objects to insert in a newly created table for this
entity based on this context.
|
String |
getKeyspace()
Gets the keyspace name associated with this context.
|
T |
getObject(com.datastax.driver.core.Row row) |
Map<String,Pair<Object,CQLDataType>> |
getSuffixKeyValues()
Retrieves all suffix keys and their values from the POJO.
|
getColumnValue, getColumnValue, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getMandatoryAndPrimaryKeyColumnValues, getMandatoryColumnValues, getNonPrimaryKeyColumnNonEncodedValues, getPartitionKeyColumnValues, getPrimaryKeyColumnValues, getSuffixAndPartitionKeyColumnValues, getSuffixAndPrimaryKeyColumnValues, populateSuffixesaddSuffix, getColumnNonEncodedValue, getObject, getPrimaryKeyColumnValuesgetClassInfo, getObject, getObjectClasspublic POJOContext(T object)
POJOContext object.object - the POJO objectNullPointerException - if object is nullIllegalArgumentException - if object is not of the
appropriate classpublic Map<String,Pair<Object,CQLDataType>> getSuffixKeyValues()
getSuffixKeyValues in class ClassInfoImpl.POJOContextnull map of all suffix key name/value pairs
for the POJOClassInfoImpl.POJOContext.getSuffixKeyValues()public String getKeyspace()
getKeyspace in class ClassInfoImpl.Contextnull keyspace name associated with this
contextClassInfoImpl.Context.getKeyspace()public void addSuffix(String suffix, Object value)
addSuffix in class ClassInfoImpl.Contextsuffix - the suffix namevalue - the suffix valueClassInfoImpl.Context.addSuffix(java.lang.String, java.lang.Object)public T getObject(com.datastax.driver.core.Row row)
getObject in interface StatementManager.Context<T>getObject in class ClassInfoImpl.ContextClassInfoImpl.Context.getObject(com.datastax.driver.core.Row)public Collection<T> getInitialObjects()
getInitialObjects in class ClassInfoImpl.Contextnull collection of the initial objects to insert
in the tableClassInfoImpl.Context.getInitialObjects()Copyright (C) 2015-2015 The Helenus Driver Project Authors.