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.objectkeyspaceKeys| Constructor and Description |
|---|
POJOContext(T object)
Instantiates a new
POJOContext object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyspaceKey(String name,
Object value)
Adds a keyspace key 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.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getKeyspaceKeyValues()
Retrieves all keyspace keys and their values from the POJO.
|
T |
getObject(com.datastax.driver.core.Row row) |
getColumnValue, getColumnValue, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getColumnValues, getKeyspaceAndPartitionKeyColumnValues, getKeyspaceAndPrimaryKeyColumnValues, getMandatoryAndPrimaryKeyColumnValues, getMandatoryColumnValues, getPartitionKeyColumnValues, getPrimaryKeyColumnValues, populateKeyspaceKeysaddKeyspaceKey, getNonPrimaryKeyColumnValues, 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,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getKeyspaceKeyValues()
getKeyspaceKeyValues in class ClassInfoImpl.POJOContextnull map of all keyspace key name/value pairs
for the POJOClassInfoImpl.POJOContext.getKeyspaceKeyValues()public String getKeyspace()
getKeyspace in class ClassInfoImpl.Contextnull keyspace name associated with this
contextClassInfoImpl.Context.getKeyspace()public void addKeyspaceKey(String name, Object value)
addKeyspaceKey in class ClassInfoImpl.Contextname - the keyspace key namevalue - the keyspace key valueClassInfoImpl.Context.addKeyspaceKey(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-2017 The Helenus Driver Project Authors.