R - Operation result typeBI - Bulk insert operation typeBU - Bulk update operation typeBD - Bulk delete operation typeQ - Query builder typepublic interface BeanDatastoreOperations<R,BI extends BeanBulkInsertOperation,BU extends BeanBulkUpdateOperation,BD extends BeanBulkDeleteOperation,Q extends BeanQueryBuilder>
DatastoreOperations, which provides the same methods using a bean class to represent the
peristent entity data and the data model attributes.| Modifier and Type | Method and Description |
|---|---|
<T> BD |
bulkDelete(Class<T> beanClass,
DatastoreOperations.WriteOption... options)
Create a
BulkDeleteOperation actuator, which can be used to configure and execute a bulk
DELETE operation. |
<T> BI |
bulkInsert(Class<T> beanClass,
DatastoreOperations.WriteOption... options)
Create a
BulkInsertOperation actuator, which can be used to configure and execute a bulk
INSERT operation. |
<T> BU |
bulkUpdate(Class<T> beanClass,
DatastoreOperations.WriteOption... options)
Create a
BulkUpdateOperation actuator, which can be used to configure and execute a bulk
UPDATE operation. |
<T> R |
delete(T bean,
DatastoreOperations.WriteOption... options)
Remove a bean instance from the data store.
|
<T> R |
insert(T bean,
DatastoreOperations.WriteOption... options)
Insert a bean instance in the data store.
|
<T> Q |
query(Class<T> beanClass)
Create a
QueryBuilder actuator, which can be used to configure and execute a query on the data managed by
this Datastore. |
<T> T |
refresh(T bean)
Refresh a bean instance, updating all its properties to current value in data store.
|
<T> R |
save(T bean,
DatastoreOperations.WriteOption... options)
Save a bean instance in the data store.
|
<T> R |
update(T bean,
DatastoreOperations.WriteOption... options)
Update a bean instance in the data store.
|
<T> T refresh(T bean)
The operation data target (i.e. the persistence entity identifier) is obtained by default using the bean class
simple name. The DataPath annotation can be used on bean class to declare a specific data target name.
The bean property names are used as data model attribute names. The DataPath annotation can be used on
bean property fields or getter methods to specify a different data model attribute name.
T - Bean typebean - The bean instance to refresh (not null)DataAccessException - If an error occurred during operation execution<T> R insert(T bean, DatastoreOperations.WriteOption... options)
The operation data target (i.e. the persistence entity identifier) is obtained by default using the bean class
simple name. The DataPath annotation can be used on bean class to declare a specific data target name.
The bean property names are used as data model attribute names. The DataPath annotation can be used on
bean property fields or getter methods to specify a different data model attribute name.
T - Bean typebean - The bean instance to insert (not null)options - Optional write options. The write options are specific for each concrete implementation.DataAccessException - If an error occurred during operation execution<T> R update(T bean, DatastoreOperations.WriteOption... options)
The operation data target (i.e. the persistence entity identifier) is obtained by default using the bean class
simple name. The DataPath annotation can be used on bean class to declare a specific data target name.
The bean property names are used as data model attribute names. The DataPath annotation can be used on
bean property fields or getter methods to specify a different data model attribute name.
T - Bean typebean - The bean instance to insert (not null)options - Optional write options. The write options are specific for each concrete implementation.DataAccessException - If an error occurred during operation execution<T> R save(T bean, DatastoreOperations.WriteOption... options)
The operation data target (i.e. the persistence entity identifier) is obtained by default using the bean class
simple name. The DataPath annotation can be used on bean class to declare a specific data target name.
The bean property names are used as data model attribute names. The DataPath annotation can be used on
bean property fields or getter methods to specify a different data model attribute name.
T - Bean typebean - The bean instance to save (not null)options - Optional write options. The write options are specific for each concrete implementation.DataAccessException - If an error occurred during operation execution<T> R delete(T bean, DatastoreOperations.WriteOption... options)
The operation data target (i.e. the persistence entity identifier) is obtained by default using the bean class
simple name. The DataPath annotation can be used on bean class to declare a specific data target name.
The bean property names are used as data model attribute names. The DataPath annotation can be used on
bean property fields or getter methods to specify a different data model attribute name.
T - Bean typebean - The bean instance to delete (not null)options - Optional write options. The write options are specific for each concrete implementation.DataAccessException - If an error occurred during operation execution<T> BI bulkInsert(Class<T> beanClass, DatastoreOperations.WriteOption... options)
BulkInsertOperation actuator, which can be used to configure and execute a bulk
INSERT operation.T - Bean typebeanClass - The bean class to insertoptions - Optional write options. The write options are specific for each concrete implementation.INSERT operation<T> BU bulkUpdate(Class<T> beanClass, DatastoreOperations.WriteOption... options)
BulkUpdateOperation actuator, which can be used to configure and execute a bulk
UPDATE operation.T - Bean typebeanClass - The bean class to updateoptions - Optional write options. The write options are specific for each concrete implementation.UPDATE operation<T> BD bulkDelete(Class<T> beanClass, DatastoreOperations.WriteOption... options)
BulkDeleteOperation actuator, which can be used to configure and execute a bulk
DELETE operation.T - Bean typebeanClass - The bean class to deleteoptions - Optional write options. The write options are specific for each concrete implementation.DELETE operation<T> Q query(Class<T> beanClass)
QueryBuilder actuator, which can be used to configure and execute a query on the data managed by
this Datastore.T - Bean typebeanClass - The bean class to query (not null)Copyright © 2019 The Holon Platform. All rights reserved.