public interface NosqlOperations
Modifier and Type | Method and Description |
---|---|
long |
count(NosqlEntityInformation<?,?> entityInformation)
Returns a count of all the entries in the given table.
|
<T> Iterable<oracle.nosql.driver.values.MapValue> |
count(NosqlEntityInformation<T,?> entityInformation,
NosqlQuery query) |
boolean |
createTableIfNotExists(NosqlEntityInformation<?,?> information)
Creates a table for the given entity type if it doesn't exist.
|
<T,ID> Iterable<T> |
delete(NosqlEntityInformation<T,ID> entityInformation,
NosqlQuery query) |
void |
deleteAll(NosqlEntityInformation<?,?> entityInformation)
Deletes all entries from the given table.
|
<T,ID> void |
deleteAll(NosqlEntityInformation<T,ID> entityInformation,
Iterable<? extends ID> ids)
Deletes all the entries with the ids from the given table.
|
<T,ID> void |
deleteById(NosqlEntityInformation<T,ID> entityInformation,
ID id)
Deletes the entity with the id from the given table.
|
boolean |
dropTableIfExists(String tableName)
Drops the given table, information about all saved entities is
removed.
|
<S,T> Iterable<T> |
find(NosqlEntityInformation<S,?> entityInformation,
Class<T> targetType,
NosqlQuery query)
Executes a NosqlQuery (this can be a CriteriaQuery for queries
derived from repository method names or a StringQuery for native
queries).
|
<T> Iterable<T> |
findAll(Class<T> entityClass)
Returns a result of all the entities in the table.
|
<T> Iterable<T> |
findAll(NosqlEntityInformation<T,?> entityInformation)
Returns a result of all the entities in the given table.
|
<T> org.springframework.data.domain.Page<T> |
findAll(NosqlEntityInformation<T,?> entityInformation,
org.springframework.data.domain.Pageable pageable)
Returns all entities in the given table sorted accordingly grouped in
pages.
|
<T> Iterable<T> |
findAll(NosqlEntityInformation<T,?> entityInformation,
org.springframework.data.domain.Sort sort)
Returns all entities in the given table sorted accordingly.
|
<T,ID> Iterable<T> |
findAllById(NosqlEntityInformation<T,ID> entityInformation,
Iterable<ID> ids)
Returns all the entities in the table for the given ids.
|
<T,ID> T |
findById(ID id,
Class<T> entityClass)
Returns the entity for the given table.
|
<T,ID> T |
findById(NosqlEntityInformation<T,ID> entityInformation,
ID id)
Returns the entity for the given id in the given table.
|
MappingNosqlConverter |
getConverter()
Returns the assigned mapping converter.
|
String |
getTableName(Class<?> entityClass)
Returns the tableName for the given entity class.
|
<T,ID> T |
insert(NosqlEntityInformation<T,ID> entityInformation,
T objectToSave)
Inserts the entity into the given table, if id generated is used the id
field must be null or 0.
|
<T> T |
insert(T objectToSave)
Inserts the entity into the table, if id generated is used the id
field must be null or 0.
|
<T,ID> void |
update(NosqlEntityInformation<T,ID> entityInformation,
T object)
Updates the entity into the given table.
|
<T> void |
update(T object)
Updates the entity into the table.
|
boolean createTableIfNotExists(NosqlEntityInformation<?,?> information)
boolean dropTableIfExists(String tableName)
NosqlDbFactory.getTableReqTimeout()
and
NosqlDbFactory.getTableReqPollInterval()
to check the result.MappingNosqlConverter getConverter()
String getTableName(Class<?> entityClass)
<T> T insert(T objectToSave)
<T,ID> T insert(NosqlEntityInformation<T,ID> entityInformation, T objectToSave)
<T> void update(T object)
<T,ID> void update(NosqlEntityInformation<T,ID> entityInformation, T object)
<T> Iterable<T> findAll(Class<T> entityClass)
<T> Iterable<T> findAll(NosqlEntityInformation<T,?> entityInformation)
<T,ID> Iterable<T> findAllById(NosqlEntityInformation<T,ID> entityInformation, Iterable<ID> ids)
<T,ID> T findById(NosqlEntityInformation<T,ID> entityInformation, ID id)
<T,ID> T findById(ID id, Class<T> entityClass)
<T,ID> void deleteById(NosqlEntityInformation<T,ID> entityInformation, ID id)
void deleteAll(NosqlEntityInformation<?,?> entityInformation)
<T,ID> void deleteAll(NosqlEntityInformation<T,ID> entityInformation, Iterable<? extends ID> ids)
long count(NosqlEntityInformation<?,?> entityInformation)
<T> Iterable<T> findAll(NosqlEntityInformation<T,?> entityInformation, org.springframework.data.domain.Sort sort)
<T> org.springframework.data.domain.Page<T> findAll(NosqlEntityInformation<T,?> entityInformation, org.springframework.data.domain.Pageable pageable)
<S,T> Iterable<T> find(NosqlEntityInformation<S,?> entityInformation, Class<T> targetType, NosqlQuery query)
<T> Iterable<oracle.nosql.driver.values.MapValue> count(NosqlEntityInformation<T,?> entityInformation, NosqlQuery query)
<T,ID> Iterable<T> delete(NosqlEntityInformation<T,ID> entityInformation, NosqlQuery query)
Copyright © 2022 Oracle Corporation. All rights reserved.