Package org.nuclos.api.service
Interface QueryService
public interface QueryService
-
Method Summary
Modifier and TypeMethodDescription<PK,
T extends BusinessObject<PK>>
Query<T>createQuery
(Class<T> type) <PK,
T extends BusinessObject<PK>>
List<T>executeQuery
(Query<T> query, Attribute<?>... attributes) <PK,
T extends BusinessObject<PK>>
TexecuteQuerySingleResult
(Query<T> query, Attribute<?>... attributes) <PK,
T extends BusinessObject<PK>>
T<PK,
T extends Stateful & BusinessObject<PK>>
List<T>getByProcess
(Process<T> process, Process<T>... additionalProcesses) <PK,
T extends Stateful & BusinessObject<PK>>
List<T>getByState
(Class<T> type, State state, State... additionalStates)
-
Method Details
-
createQuery
-
executeQuery
-
executeQuerySingleResult
<PK,T extends BusinessObject<PK>> T executeQuerySingleResult(Query<T> query, Attribute<?>... attributes) throws BusinessException - Throws:
BusinessException
-
getById
-
getByProcess
<PK,T extends Stateful & BusinessObject<PK>> List<T> getByProcess(Process<T> process, Process<T>... additionalProcesses) throws BusinessException - Throws:
BusinessException
-
getByState
<PK,T extends Stateful & BusinessObject<PK>> List<T> getByState(Class<T> type, State state, State... additionalStates) throws BusinessException - Throws:
BusinessException
-