ch.elexis.core.data
Class Query
java.lang.Object
ch.elexis.core.data.Query
public class Query
- extends java.lang.Object
A Query is a generic way to retrieve IPersistentObjects. Unlike the Query in Elexis through 2.x,
this is not just a wrapper around an SQL expression. Instead, a Query now is a List of
Query.Terms, each connected to the previous term with a Connector (AND, OR, AND NOT, OR NOT), and
each consisting of a field, a comparison operator and a match expression.
A Query is executed by sending it to a PersistentObjectManager as argument to executeQuery();
- Author:
- gerry
Constructor Summary |
Query(java.lang.Class<?> queryType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Query
public Query(java.lang.Class<?> queryType)
getQueryType
public java.lang.Class<?> getQueryType()
addTerm
public void addTerm(Query.Term term)
getTerms
public java.util.List<Query.Term> getTerms()
clear
public void clear()
Copyright 2005-2011 by Gerry Weirich, Elexis