Interface RelationQuery
- All Superinterfaces:
Query
- All Known Implementing Classes:
AbstractRelationQueryAdapter
,ToManyRelationQueryAdapter
,ToOneRelationQueryAdapter
A specialised query variant used by the
Entity.resolve(String)
method.-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.query.Query
Query.Mode
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Execute the query inQuery.Mode.LAZY
mode using the default limit.execute
(int limit) Deprecated.execute
(int limit, Query.Mode mode) Deprecated.execute
(Pagination pagination) Execute the query using the specified pagination parameters inQuery.Mode.LAZY
mode.execute
(Pagination pagination, Query.Mode mode) Execute the query using the specified pagination parameters in the specifiedQuery.Mode
.execute
(Query.Mode mode) Execute the query in the specifiedQuery.Mode
using the default limit.Methods inherited from interface ch.tocco.nice2.persist.core.api.query.Query
appendOrder, count, firstResult, firstResultOrNull, getKeys, getKeys, getManager, getOnlyResult, getOnlyResult, getOnlyResultOrNull, getOnlyResultOrNull, getOrdering, hasOrdering, prependOrder, setParameter, toQueryDefinition, uniqueResult, uniqueResultOrNull, withOrder
-
Method Details
-
getSource
Entity getSource() -
getRelationModel
RelationModel getRelationModel() -
execute
Relation execute()Description copied from interface:Query
Execute the query inQuery.Mode.LAZY
mode using the default limit.- Specified by:
execute
in interfaceQuery
- Returns:
- The result of the query. To further process it use the
EntityLists
class.
-
execute
Description copied from interface:Query
Execute the query in the specifiedQuery.Mode
using the default limit. -
execute
Deprecated.Description copied from interface:Query
Execute the query using the specified limit inQuery.Mode.LAZY
mode. -
execute
Deprecated.Description copied from interface:Query
Execute the query using the specified limit in the specifiedQuery.Mode
. -
execute
Description copied from interface:Query
Execute the query using the specified pagination parameters inQuery.Mode.LAZY
mode. -
execute
Description copied from interface:Query
Execute the query using the specified pagination parameters in the specifiedQuery.Mode
.
-