Package org.nervousync.database.api
Interface DatabaseClient
public interface DatabaseClient
-
Method Summary
Modifier and TypeMethodDescriptionvoiddropRecords(Object... recordObjects) void<T> List<T>longqueryTotal(QueryInfo queryInfo) <T> Tretrieve(Serializable primaryKey, Class<T> entityClass, boolean forUpdate) <T> TvoidvoidsaveRecords(Object... recordObjects) voidupdateRecords(Object... recordObjects)
-
Method Details
-
rollbackTransactional
-
endTransactional
void endTransactional() -
saveRecords
- Throws:
InsertException
-
updateRecords
- Throws:
UpdateException
-
dropRecords
- Throws:
DeleteException
-
retrieve
<T> T retrieve(Serializable primaryKey, Class<T> entityClass, boolean forUpdate) throws RetrieveException - Throws:
RetrieveException
-
retrieve
<T> T retrieve(Map<String, Object> queryParameters, Class<T> entityClass, boolean forUpdate) throws RetrieveException- Throws:
RetrieveException
-
queryTotal
- Throws:
QueryException
-
query
- Throws:
QueryException
-
query
- Throws:
QueryException
-