T - The type of POJO represented by this classpublic class TypeClassInfoImpl<T> extends ClassInfoImpl<T> implements TypeClassInfo<T>
TypeClassInfoImpl class provides information about a
particular POJO class.ClassInfoImpl.Context, ClassInfoImpl.POJOContextclazz, constructor, entityAnnotationClass, finalFields, keyspaceKeysByName, keyspaceKeysByType, mgr| Modifier and Type | Method and Description |
|---|---|
T |
getObject(com.datastax.driver.core.Row row,
Map<String,Object> kkeys)
Converts the specified result row into a POJO object defined by this
class information and keyspace key map.
|
T |
getObject(com.datastax.driver.core.Row row,
String type,
Map<String,Object> kkeys)
Converts the specified result row into a POJO object defined by this
class information and keyspace key map.
|
RootClassInfoImpl<? super T> |
getRoot() |
String |
getType() |
boolean |
isDynamic() |
ClassInfoImpl.POJOContext |
newContextFromRoot(Object object)
Creates a new context for this class info with the given POJO object.
|
String |
toString() |
classInfos, equals, getAuditTable, getColumns, getDefaultValue, getEntityAnnotationClass, getInitialObjects, getKeyspace, getKeyspaceKey, getKeyspaceKeyByType, getKeyspaceKeys, getKeyspaceKeyTypes, getNumKeyspaceKeys, getNumTables, getObject, getObjectClass, getPrimaryTable, getTable, getTableImpl, getTables, getTablesImpl, hashCode, isColumn, isKeyspaceKey, iterator, newContext, newContext, objectClasses, supportsTablesAndIndexes, tables, tablesImpl, udts, validateColumn, validateColumnAndValue, validateColumnOrKeyspaceKey, validateColumns, validateColumns, validateKeyspaceKeyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAuditTable, getInitialObjects, getKeyspace, getKeyspaceKey, getKeyspaceKeyByType, getNumKeyspaceKeys, getNumTables, getObjectClass, getPrimaryTable, getTable, getTables, iterator, supportsTablesAndIndexes, tablesforEach, spliteratorpublic RootClassInfoImpl<? super T> getRoot()
getRoot in interface TypeClassInfo<T>TypeClassInfo.getRoot()public String getType()
getType in interface TypeClassInfo<T>TypeClassInfo.getType()public boolean isDynamic()
isDynamic in interface TypeClassInfo<T>TypeClassInfo.isDynamic()public ClassInfoImpl.POJOContext newContextFromRoot(Object object)
object - the POJO objectnull newly created context for this class infoNullPointerException - if object is nullIllegalArgumentException - if object is not of the
appropriate classpublic T getObject(com.datastax.driver.core.Row row, String type, Map<String,Object> kkeys)
row - the result row to convert into a POJOtype - the POJO type extracted from the specified rowkkeys - a map of keyspace key values to report back into the created
POJOnull
if the type doesn't match this type entity nameNullPointerException - if type or kkeys
is nullObjectConversionException - if unable to convert to a POJOpublic T getObject(com.datastax.driver.core.Row row, Map<String,Object> kkeys)
getObject in class ClassInfoImpl<T>row - the result row to convert into a POJOkkeys - a map of keyspace key values to report back into the created
POJOClassInfoImpl.getObject(com.datastax.driver.core.Row, java.util.Map)public String toString()
toString in class ClassInfoImpl<T>Object.toString()Copyright (C) 2015-2017 The Helenus Driver Project Authors.