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.ApplicationContextstatic final Stringprotected static final org.slf4j.Loggerprotected final MappingNosqlConverterprotected final NoSQLHandleprotected final NosqlDbFactoryprotected oracle.nosql.driver.util.LruCache<String, PreparedStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNosqlTemplateBase(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache of prepared statements.protected booleandoCheckExistingTable(NosqlEntityInformation<?, ?> entityInformation) protected booleandoCreateTable(NosqlEntityInformation<?, ?> entityInformation) protected DeleteResultdoDelete(NosqlEntityInformation<?, ?> entityInformation, MapValue primaryKey) doExecuteMapValueQuery(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) protected GetResultdoGet(NosqlEntityInformation<?, ?> entityInformation, MapValue primaryKey) protected TableResultdoGetTable(NosqlEntityInformation<?, ?> entityInformation) protected PutResultdoPut(NosqlEntityInformation<?, ?> entityInformation, MapValue row, boolean ifPresent) doRunQueryNosqlParams(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValueprotected TableResultdoTableRequest(NosqlEntityInformation<?, ?> entityInformation, TableRequest tableReq) protected voiddoUpdate(NosqlEntityInformation<?, ?> entityInformation, MapValue row) protected StringgetCreateTableDDL(NosqlEntityInformation<?, ?> entityInformation) voidsetApplicationContext(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:
setApplicationContextin 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.
-