public abstract class AbstractManager<ENTITY> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<ENTITY> |
entityClass |
protected AbstractEntityProperty<ENTITY> |
meta_internal |
protected RuntimeEngine |
rte |
| Constructor and Description |
|---|
AbstractManager(Class<ENTITY> entityClass,
AbstractEntityProperty<ENTITY> meta_internal,
RuntimeEngine rte) |
| Modifier and Type | Method and Description |
|---|---|
protected DeleteWithOptions<ENTITY> |
deleteInternal(ENTITY instance,
Optional<CassandraOptions> cassandraOptions) |
Cluster |
getNativeCluster()
Return the native Cluster object used by this Manager
|
Session |
getNativeSession()
Return the native Session object used by this Manager
|
protected InsertWithOptions<ENTITY> |
insertInternal(ENTITY instance,
boolean insertStatic,
Optional<CassandraOptions> cassandraOptions) |
protected InsertJSONWithOptions |
insertJSONInternal(String json,
Optional<CassandraOptions> cassandraOptions) |
ENTITY |
mapFromRow(Row row)
Map a given row back to an entity instance.
|
protected NativeQuery |
nativeQueryInternal(BoundStatement boundStatement) |
protected NativeQuery |
nativeQueryInternal(PreparedStatement preparedStatement,
Object... encodedBoundValues) |
protected NativeQuery |
nativeQueryInternal(RegularStatement regularStatement,
Object... encodedBoundValues) |
protected TypedQuery<ENTITY> |
typedQueryForSelectInternal(BoundStatement boundStatement) |
protected TypedQuery<ENTITY> |
typedQueryForSelectInternal(PreparedStatement preparedStatement,
Object... encodedBoundValues) |
protected TypedQuery<ENTITY> |
typedQueryForSelectInternal(RegularStatement regularStatement,
Object... encodedBoundValues) |
protected UpdateWithOptions<ENTITY> |
updateInternal(ENTITY instance,
boolean updateStatic,
Optional<CassandraOptions> cassandraOptions) |
protected final RuntimeEngine rte
protected final AbstractEntityProperty<ENTITY> meta_internal
public AbstractManager(Class<ENTITY> entityClass, AbstractEntityProperty<ENTITY> meta_internal, RuntimeEngine rte)
public ENTITY mapFromRow(Row row)
row - given Cassandra rowpublic Session getNativeSession()
Session instance used by this Managerpublic Cluster getNativeCluster()
Cluster instance used by this Managerprotected InsertWithOptions<ENTITY> insertInternal(ENTITY instance, boolean insertStatic, Optional<CassandraOptions> cassandraOptions)
protected UpdateWithOptions<ENTITY> updateInternal(ENTITY instance, boolean updateStatic, Optional<CassandraOptions> cassandraOptions)
protected InsertJSONWithOptions insertJSONInternal(String json, Optional<CassandraOptions> cassandraOptions)
protected DeleteWithOptions<ENTITY> deleteInternal(ENTITY instance, Optional<CassandraOptions> cassandraOptions)
protected TypedQuery<ENTITY> typedQueryForSelectInternal(BoundStatement boundStatement)
protected TypedQuery<ENTITY> typedQueryForSelectInternal(PreparedStatement preparedStatement, Object... encodedBoundValues)
protected TypedQuery<ENTITY> typedQueryForSelectInternal(RegularStatement regularStatement, Object... encodedBoundValues)
protected NativeQuery nativeQueryInternal(BoundStatement boundStatement)
protected NativeQuery nativeQueryInternal(PreparedStatement preparedStatement, Object... encodedBoundValues)
protected NativeQuery nativeQueryInternal(RegularStatement regularStatement, Object... encodedBoundValues)
Copyright © 2012-2021. All Rights Reserved.