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 oracle.nosql.driver.NoSQLHandle
protected final NosqlDbFactory
protected oracle.nosql.driver.util.LruCache<String,
oracle.nosql.driver.ops.PreparedStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NosqlTemplateBase
(NosqlDbFactory nosqlDbFactory, MappingNosqlConverter mappingNosqlConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doCheckExistingTable
(NosqlEntityInformation<?, ?> entityInformation) protected boolean
doCreateTable
(NosqlEntityInformation<?, ?> entityInformation) protected oracle.nosql.driver.ops.DeleteResult
doDelete
(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.GetResult
doGet
(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.MapValue primaryKey) protected oracle.nosql.driver.ops.TableResult
doGetTable
(NosqlEntityInformation<?, ?> entityInformation) protected oracle.nosql.driver.ops.PutResult
doPut
(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.TableResult
doTableRequest
(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.ops.TableRequest tableReq) protected void
doUpdate
(NosqlEntityInformation<?, ?> entityInformation, oracle.nosql.driver.values.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
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:
setApplicationContext
in 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)
-