public class RootClassInfoImpl.POJOContext extends ClassInfoImpl.POJOContext
POJOContext class extends the
ClassInfoImpl.POJOContext.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.
|
Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>> |
getColumnValue(String tname,
CharSequence name)
Retrieves the specified column value from the POJO and the specified
table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getColumnValues(String tname)
Retrieves all columns and their values from the POJO and the specified
table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getColumnValues(String tname,
CharSequence... names)
Retrieves the specified columns and their values from the POJO and the
specified table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getColumnValues(String tname,
Iterable<CharSequence> names)
Retrieves the specified columns and their values from the POJO and the
specified table.
|
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<?>>> |
getKeyspaceAndPartitionKeyColumnValues(String tname)
Retrieves all keyspace and partition key columns and their values from the
POJO and the specified table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getKeyspaceAndPrimaryKeyColumnValues(String tname)
Retrieves all keyspace and primary key columns and their values from the
POJO and the specified table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getKeyspaceKeyValues()
Retrieves all keyspace keys and their values from the POJO.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getMandatoryAndPrimaryKeyColumnValues(String tname)
Retrieves all mandatory and primary key columns and their values from
the POJO and the specified table.
|
T |
getObject(com.datastax.driver.core.Row row) |
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getPartitionKeyColumnValues(String tname)
Retrieves all partition key columns and their values from the POJO and the
specified table.
|
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> |
getPrimaryKeyColumnValues(String tname)
Retrieves all primary key columns and their values from the POJO and the
specified table.
|
addKeyspaceKey, getNonPrimaryKeyColumnValues, getObject, getPrimaryKeyColumnValues, populateKeyspaceKeysgetClassInfo, 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<?>>> getColumnValues(String tname)
getColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all column/value pairs for the POJOClassInfoImpl.POJOContext.getColumnValues(java.lang.String)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getPartitionKeyColumnValues(String tname)
getPartitionKeyColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all partition key column/value pairs
for the POJOClassInfoImpl.POJOContext.getPartitionKeyColumnValues(java.lang.String)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getKeyspaceAndPartitionKeyColumnValues(String tname)
getKeyspaceAndPartitionKeyColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all keyspace key and partition key
column/value pairs for the POJOClassInfoImpl.POJOContext.getKeyspaceAndPartitionKeyColumnValues(java.lang.String)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getPrimaryKeyColumnValues(String tname)
getPrimaryKeyColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all primary key column/value pairs
for the POJOClassInfoImpl.POJOContext.getPrimaryKeyColumnValues(java.lang.String)public 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 Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getKeyspaceAndPrimaryKeyColumnValues(String tname)
getKeyspaceAndPrimaryKeyColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all keyspace key and primary key
column/value pairs for the POJOClassInfoImpl.POJOContext.getKeyspaceAndPrimaryKeyColumnValues(java.lang.String)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getMandatoryAndPrimaryKeyColumnValues(String tname)
getMandatoryAndPrimaryKeyColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve columnsnull map of all mandatory and primary key
column/value pairs for the POJOClassInfoImpl.POJOContext.getMandatoryAndPrimaryKeyColumnValues(java.lang.String)public Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>> getColumnValue(String tname, CharSequence name)
getColumnValue in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve the columnname - the name of the column to retrieveClassInfoImpl.POJOContext.getColumnValue(java.lang.String, java.lang.CharSequence)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getColumnValues(String tname, Iterable<CharSequence> names)
getColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve the columnnames - the names of the columns to retrievenull map of all requested column/value pairs
for the POJOClassInfoImpl.POJOContext.getColumnValues(java.lang.String, java.lang.Iterable)public Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> getColumnValues(String tname, CharSequence... names)
getColumnValues in class ClassInfoImpl.POJOContexttname - the name of the table from which to retrieve the columnnames - the names of the columns to retrievenull map of all requested column/value pairs
for the POJOClassInfoImpl.POJOContext.getColumnValues(java.lang.String, java.lang.CharSequence[])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.