Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.core.data
Class Query

java.lang.Object
  extended by 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

Nested Class Summary
static class Query.OP
           
static class Query.Term
           
 
Constructor Summary
Query(java.lang.Class<?> queryType)
           
 
Method Summary
 void addTerm(Query.Term term)
           
 void clear()
           
 java.lang.Class<?> getQueryType()
           
 java.util.List<Query.Term> getTerms()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(java.lang.Class<?> queryType)
Method Detail

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()

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis