Class NosqlTemplateBase
java.lang.Object
com.oracle.nosql.spring.data.core.NosqlTemplateBase
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
NosqlTemplate
,ReactiveNosqlTemplate
public abstract class NosqlTemplateBase
extends Object
implements org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
static final String
protected static final org.slf4j.Logger
protected final MappingNosqlConverter
protected final NoSQLHandle
protected final NosqlDbFactory
protected oracle.nosql.driver.util.LruCache
<String, PreparedStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NosqlTemplateBase
(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache of prepared statements.protected boolean
doCheckExistingTable
(NosqlEntityInformation<?, ?> entityInformation) protected boolean
doCreateTable
(NosqlEntityInformation<?, ?> entityInformation) protected DeleteResult
doDelete
(NosqlEntityInformation<?, ?> entityInformation, MapValue primaryKey) doExecuteMapValueQuery
(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) protected GetResult
doGet
(NosqlEntityInformation<?, ?> entityInformation, MapValue primaryKey) protected TableResult
doGetTable
(NosqlEntityInformation<?, ?> entityInformation) protected PutResult
doPut
(NosqlEntityInformation<?, ?> entityInformation, MapValue row, boolean ifPresent) doRunQueryNosqlParams
(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValueprotected TableResult
doTableRequest
(NosqlEntityInformation<?, ?> entityInformation, TableRequest tableReq) protected void
doUpdate
(NosqlEntityInformation<?, ?> entityInformation, MapValue row) protected String
getCreateTableDDL
(NosqlEntityInformation<?, ?> entityInformation) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
JSON_COLUMN
- See Also:
-
LOG
protected static final org.slf4j.Logger LOG -
nosqlDbFactory
-
nosqlClient
-
mappingNosqlConverter
-
psCache
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
NosqlTemplateBase
protected NosqlTemplateBase(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
doTableRequest
protected TableResult doTableRequest(NosqlEntityInformation<?, ?> entityInformation, TableRequest tableReq) -
getCreateTableDDL
-
doCreateTable
-
doCheckExistingTable
-
doDelete
-
doPut
protected PutResult doPut(NosqlEntityInformation<?, ?> entityInformation, MapValue row, boolean ifPresent) -
doGet
-
doUpdate
-
doRunQueryNosqlParams
protected Iterable<MapValue> doRunQueryNosqlParams(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValue -
doExecuteMapValueQuery
protected <T> Iterable<MapValue> doExecuteMapValueQuery(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) -
doGetTable
-
clearPreparedStatementsCache
public void clearPreparedStatementsCache()Clears the cache of prepared statements.
-