org.openmrs.arden
Class ArdenClause
java.lang.Object
org.openmrs.arden.ArdenClause
public class ArdenClause
- extends java.lang.Object
Arden Clauses are represented by ArdenClause classes. Clauses can be constructed from concepts,
rules, or other clauses. They also expose aggregate and predicate methods such as earliest(),
latest(), max(), and greaterThan(n). Every method returns another ArdenClause. The Arden Clauses
do not actually fetch data or return values; rather, they represent a semantic hierarchy needed
to resolve a particular Arden Value. The criteria are abstracted so an Arden Clause can be passed
down to the database layer and, ideally, be translated to SQL or similar language.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArdenClause
public ArdenClause()
concept
public ArdenClause concept(Concept c)
rule
public ArdenClause rule(ArdenRule r)
clause
public ArdenClause clause(ArdenClause cl)
getConcept
public Concept getConcept()
getPredicate
public ArdenClause.Predicate getPredicate()
last
public ArdenClause last()
last
public ArdenClause last(double val)
first
public ArdenClause first()
first
public ArdenClause first(double val)
max
public ArdenClause max()
min
public ArdenClause min()
avg
public ArdenClause avg()
greaterThan
public ArdenClause greaterThan(double val)
lessThan
public ArdenClause lessThan(double val)
greaterThanEqual
public ArdenClause greaterThanEqual(double val)
lessThanEqual
public ArdenClause lessThanEqual(double val)
within
public ArdenClause within()
within
public ArdenClause within(java.lang.String str1,
java.lang.String str2)
past
public ArdenClause past()
after
public ArdenClause after(java.lang.String str)
before
public ArdenClause before(java.lang.String str)
at
public ArdenClause at(java.lang.String str)
equal
public ArdenClause equal(java.lang.String str)
Days
public ArdenClause Days(int val)
Years
public ArdenClause Years(int val)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change