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 SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionprotectedNosqlTemplateBase(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) 
- 
Method SummaryModifier 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:
 
- 
LOGprotected static final org.slf4j.Logger LOG
- 
nosqlDbFactory
- 
nosqlClient
- 
mappingNosqlConverter
- 
psCache
- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
 
- 
- 
Constructor Details- 
NosqlTemplateBaseprotected NosqlTemplateBase(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) 
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
doTableRequestprotected TableResult doTableRequest(NosqlEntityInformation<?, ?> entityInformation, TableRequest tableReq) 
- 
getCreateTableDDL
- 
doCreateTable
- 
doCheckExistingTable
- 
doDelete
- 
doPutprotected PutResult doPut(NosqlEntityInformation<?, ?> entityInformation, MapValue row, boolean ifPresent) 
- 
doGet
- 
doUpdate
- 
doRunQueryNosqlParamsprotected Iterable<MapValue> doRunQueryNosqlParams(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValue
- 
doExecuteMapValueQueryprotected <T> Iterable<MapValue> doExecuteMapValueQuery(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) 
- 
doGetTable
- 
clearPreparedStatementsCachepublic void clearPreparedStatementsCache()Clears the cache of prepared statements.
 
-