public class InterpretedOQLQuery
extends java.lang.Object
FIXME! TT 2023-03-09: Note that a lot of MyTISM OQL constructs are not yet supported. FIXME! TT 2023-03-09: It might be nice if the parameter values need not be given upon construction but could be dynamically set and changed later.
| Constructor and Description |
|---|
InterpretedOQLQuery(OQLQuery oqlQuery,
java.lang.Object[] parameters) |
InterpretedOQLQuery(SchemaI schema,
java.lang.String query,
java.lang.Object[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
EntityI |
getEntity() |
int |
getLimit() |
CBOSorter.BOComparator |
getOrderByComparator() |
OQLQueryPredicate |
getPredicate() |
java.lang.String |
getQuery() |
boolean |
hasLimitAndIsSorted()
Checks if a limit is present with sorting.
|
boolean |
isSorted() |
java.util.List |
queryBO(java.util.Collection<BOI> bos)
"Queries" BOs (or scalars) from the given collection by filtering them according to this interpreter's OQL
query's "WHERE" clause, sorting them according to possible "ORDER BY" clauses and limiting the number of
results by a possible "LIMIT" clause.
|
java.util.List |
queryBO(java.util.Collection<BOI> bos,
boolean ignoreLimitAndOrderClauses)
"Queries" BOs from the given collection by filtering them according to this interpreter's OQL query's "WHERE"
clause, sorting them according to possible "ORDER BY" clauses and limiting the number of results by a possible
"LIMIT" clause.
|
void |
setEntity(EntityI entity) |
void |
setLimit(int limit) |
void |
setOrderByComparator(CBOSorter.BOComparator orderByComparator) |
void |
setPredicate(OQLQueryPredicate predicate) |
void |
setQuery(java.lang.String query) |
java.util.List<BOI> |
sortBOs(java.util.Collection<BOI> bos) |
java.util.List<BOI> |
sortBOs(java.util.Iterator<BOI> it) |
java.lang.String |
toString() |
public InterpretedOQLQuery(SchemaI schema, java.lang.String query, java.lang.Object[] parameters) throws OQLException, UnsupportedQueryException
public InterpretedOQLQuery(OQLQuery oqlQuery, java.lang.Object[] parameters) throws OQLException, UnsupportedQueryException
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List queryBO(java.util.Collection<BOI> bos)
bos - the collection of BOs (or scalars) to "query" frompublic java.util.List queryBO(java.util.Collection<BOI> bos, boolean ignoreLimitAndOrderClauses)
bos - the collection of BOs to "query" fromignoreLimitAndOrderClauses - if true the "limit" and "order" clauses will be ignored; needed only for special
handling in Transaction, normally the default (false) should be keptpublic boolean isSorted()
public boolean hasLimitAndIsSorted()
public EntityI getEntity()
public void setEntity(EntityI entity)
public OQLQueryPredicate getPredicate()
public void setPredicate(OQLQueryPredicate predicate)
public CBOSorter.BOComparator getOrderByComparator()
public void setOrderByComparator(CBOSorter.BOComparator orderByComparator)
public int getLimit()
public void setLimit(int limit)
public java.lang.String getQuery()
public void setQuery(java.lang.String query)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.