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 oracle.nosql.driver.NoSQLHandleprotected final NosqlDbFactoryprotected oracle.nosql.driver.util.LruCache<String,oracle.nosql.driver.ops.PreparedStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNosqlTemplateBase(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoCheckExistingTable(NosqlEntityInformation<?, ?> entityInformation) protected booleandoCreateTable(NosqlEntityInformation<?, ?> entityInformation) protected oracle.nosql.driver.ops.DeleteResultdoDelete(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue primaryKey) protected <T> Iterable<oracle.nosql.driver.values.MapValue>doExecuteMapValueQuery(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) protected oracle.nosql.driver.ops.GetResultdoGet(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue primaryKey) protected oracle.nosql.driver.ops.TableResultdoGetTable(NosqlEntityInformation<?, ?> entityInformation) protected oracle.nosql.driver.ops.PutResultdoPut(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue row, boolean ifPresent) protected Iterable<oracle.nosql.driver.values.MapValue>doRunQueryNosqlParams(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, oracle.nosql.driver.values.FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValueprotected oracle.nosql.driver.ops.TableResultdoTableRequest(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.ops.TableRequest tableReq) protected voiddoUpdate(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.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
protected final oracle.nosql.driver.NoSQLHandle nosqlClient -
mappingNosqlConverter
-
psCache
protected oracle.nosql.driver.util.LruCache<String,oracle.nosql.driver.ops.PreparedStatement> 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 oracle.nosql.driver.ops.TableResult doTableRequest(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.ops.TableRequest tableReq) -
getCreateTableDDL
-
doCreateTable
-
doCheckExistingTable
-
doDelete
protected oracle.nosql.driver.ops.DeleteResult doDelete(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue primaryKey) -
doPut
protected oracle.nosql.driver.ops.PutResult doPut(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue row, boolean ifPresent) -
doGet
protected oracle.nosql.driver.ops.GetResult doGet(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue primaryKey) -
doUpdate
protected void doUpdate(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue row) -
doRunQueryNosqlParams
protected Iterable<oracle.nosql.driver.values.MapValue> doRunQueryNosqlParams(NosqlEntityInformation<?, ?> entityInformation, String query, Map<String, oracle.nosql.driver.values.FieldValue> nosqlParams) nosqlParams is a Map of param_name to FieldValue -
doExecuteMapValueQuery
protected <T> Iterable<oracle.nosql.driver.values.MapValue> doExecuteMapValueQuery(NosqlQuery query, NosqlEntityInformation<T, ?> entityInformation) -
doGetTable
protected oracle.nosql.driver.ops.TableResult doGetTable(NosqlEntityInformation<?, ?> entityInformation)
-