public interface DistributableEntityManager extends UpdatableEntityManager
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the data source connection
|
void |
commit(DDBSTransaction transaction)
Commit a transaction
|
DDBSTransaction |
executeTransaction(DDBSTransaction transaction)
Execute a list of actions
|
boolean |
isOpen()
Check if the connection is open
|
<T extends IEntity> |
listAll(T object,
Conditions conditions,
OrderBy orderBy)
List all entities of a specific object
|
<T extends IEntity> |
listAllWithQueryString(T object,
java.lang.String conditionQueryString,
OrderBy orderBy)
List all entities of a specific object
|
<T extends IEntity> |
loadArray(T objectToLoad,
java.lang.String field,
OrderBy orderBy)
Load a property of the object corresponding to an array
|
void |
open()
Open the data source connection
|
<T extends IEntity> |
read(T object)
Read details about an object
|
<T extends IEntity> |
readLastElement(T object)
Read the last element added of a table or a type of data source (Id annotation has to be used)
|
void |
rollback(DDBSTransaction transaction)
Rollback the transaction
|
void |
setAutoCommit(boolean isAutoCommit)
Set the auto-commit for the data source
|
add, createEntity, delete, updateboolean isOpen()
throws DDBSToolkitException
DDBSToolkitException - Error to check the state of the connectionvoid open() throws DDBSToolkitException
DDBSToolkitException - : Error to open the connectionvoid close()
throws DDBSToolkitException
DDBSToolkitException - : Error to close the connectionvoid setAutoCommit(boolean isAutoCommit)
throws DDBSToolkitException
isAutoCommit - Boolean returning if there is auto-commit in the transactionDDBSToolkitException - : Error to set the auto-commit valueDDBSTransaction executeTransaction(DDBSTransaction transaction) throws DDBSToolkitException
transaction - List of commandsDDBSToolkitException - : Error to execute the transactionvoid commit(DDBSTransaction transaction) throws DDBSToolkitException
transaction - TransactionDDBSToolkitException - : Error to commit the transactionvoid rollback(DDBSTransaction transaction) throws DDBSToolkitException
transaction - TransactionDDBSToolkitException - : Error to rollback the connection<T extends IEntity> java.util.List<T> listAll(T object, Conditions conditions, OrderBy orderBy) throws DDBSToolkitException
T - IEntity extended entityobject - Object to searchconditions - Conditions to filter the resultsorderBy - Order By ObjectDDBSToolkitException - Error during the process<T extends IEntity> java.util.List<T> listAllWithQueryString(T object, java.lang.String conditionQueryString, OrderBy orderBy) throws DDBSToolkitException
T - IEntity extended entityobject - Object to searchconditionQueryString - Condition query string to filter the resultsorderBy - Order By ObjectDDBSToolkitException - Error during the process<T extends IEntity> T read(T object) throws DDBSToolkitException
T - IEntity extended entityobject - object to readDDBSToolkitException - Error during reading<T extends IEntity> T readLastElement(T object) throws DDBSToolkitException
T - IEntity extended entityobject - object to readDDBSToolkitException - Error during reading<T extends IEntity> T loadArray(T objectToLoad, java.lang.String field, OrderBy orderBy) throws DDBSToolkitException
T - IEntity extended entityobjectToLoad - Object to loadfield - Array to loadorderBy - Order By ObjectDDBSToolkitException - Problem during operation