Interface View<Q,O>
- Type Parameters:
Q- QueryO- Object
- All Known Subinterfaces:
AliasView<Q>,EntryView<Q>,UpdatingView<Q,O, ID>
public interface View<Q,O>
This interface sets general structure of getting objects from some source using query
-
Method Summary
Modifier and TypeMethodDescriptionall()Retrieves all elements (like aliases forAliasView) of target objectNote that client who calls this should close the result.Note that client who calls this should close the result.uniqueResult(String query) Returns exactly one result, if ResultSet has zero or more throws an ExceptionuniqueResult(Q query) Returns exactly one result, if ResultSet has zero or more throws an Exception
-
Method Details
-
retrieve
Note that client who calls this should close the result. -
retrieve
Note that client who calls this should close the result. -
uniqueResult
Returns exactly one result, if ResultSet has zero or more throws an Exception- Parameters:
query- understandable to implementation query.- Returns:
- query result
-
uniqueResult
Returns exactly one result, if ResultSet has zero or more throws an Exception- Parameters:
query- understandable to implementation query as a string- Returns:
- query result
-
all
ResultCollection<O> all()Retrieves all elements (like aliases forAliasView) of target object- Returns:
- objects as a collection
-