T - The type of POJO represented by this classpublic class SubClassInfoImpl<T> extends RootClassInfoImpl<T>
SubClassInfoImpl class provides information about a
particular sub-root element POJO class.RootClassInfoImpl.Context, RootClassInfoImpl.POJOContextclazz, constructor, entityAnnotationClass, finalFields, keyspaceKeysByName, keyspaceKeysByType, mgr| Modifier and Type | Method and Description |
|---|---|
int |
getNumTypes() |
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()
Gets the class info for the root entity defined for this subclass.
|
<S extends T> |
getType(Class<S> clazz) |
TypeClassInfoImpl<? extends T> |
getType(String name) |
RootClassInfoImpl.POJOContext |
newContextFromRoot(Object object)
Creates a new context for this subclass info with the given POJO object.
|
java.util.stream.Stream<TypeClassInfoImpl<? extends T>> |
typeImpls()
Gets all type entities defined from this root entity.
|
java.util.stream.Stream<TypeClassInfo<? extends T>> |
types() |
classInfos, newContext, newContext, objectClasses, toStringequals, getAuditTable, getColumns, getDefaultValue, getEntityAnnotationClass, getInitialObjects, getKeyspace, getKeyspaceKey, getKeyspaceKeyByType, getKeyspaceKeys, getKeyspaceKeyTypes, getNumKeyspaceKeys, getNumTables, getObject, getObjectClass, getPrimaryTable, getTable, getTableImpl, getTables, getTablesImpl, hashCode, isColumn, isKeyspaceKey, iterator, 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()
null root entity POJO class info defined for
this type entitypublic RootClassInfoImpl.POJOContext newContextFromRoot(Object object)
object - the POJO objectnull newly created context for this subclass 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 RootClassInfoImpl<T>row - the result row to convert into a POJOkkeys - a map of keyspace key values to report back into the created
POJORootClassInfoImpl.getObject(com.datastax.driver.core.Row, java.util.Map)public <S extends T> TypeClassInfoImpl<S> getType(Class<S> clazz)
getType in interface RootClassInfo<T>getType in class RootClassInfoImpl<T>RootClassInfoImpl.getType(java.lang.Class)public TypeClassInfoImpl<? extends T> getType(String name)
getType in interface RootClassInfo<T>getType in class RootClassInfoImpl<T>RootClassInfoImpl.getType(java.lang.String)public java.util.stream.Stream<TypeClassInfo<? extends T>> types()
types in interface RootClassInfo<T>types in class RootClassInfoImpl<T>RootClassInfoImpl.types()public java.util.stream.Stream<TypeClassInfoImpl<? extends T>> typeImpls()
typeImpls in class RootClassInfoImpl<T>RootClassInfoImpl.typeImpls()public int getNumTypes()
getNumTypes in interface RootClassInfo<T>getNumTypes in class RootClassInfoImpl<T>RootClassInfoImpl.getNumTypes()Copyright (C) 2015-2017 The Helenus Driver Project Authors.