org.openmrs.arden
Class ArdenClause

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


Nested Class Summary
static class ArdenClause.Predicate
           
 
Constructor Summary
ArdenClause()
           
 
Method Summary
 ArdenClause after(java.lang.String str)
           
 ArdenClause at(java.lang.String str)
           
 ArdenClause avg()
           
 ArdenClause before(java.lang.String str)
           
 ArdenClause clause(ArdenClause cl)
           
 ArdenClause concept(Concept c)
           
 ArdenClause Days(int val)
           
 ArdenClause equal(java.lang.String str)
           
 ArdenClause first()
           
 ArdenClause first(double val)
           
 Concept getConcept()
           
 ArdenClause.Predicate getPredicate()
           
 ArdenClause greaterThan(double val)
           
 ArdenClause greaterThanEqual(double val)
           
 ArdenClause last()
           
 ArdenClause last(double val)
           
 ArdenClause lessThan(double val)
           
 ArdenClause lessThanEqual(double val)
           
 ArdenClause max()
           
 ArdenClause min()
           
 ArdenClause past()
           
 ArdenClause rule(ArdenRule r)
           
 ArdenClause within()
           
 ArdenClause within(java.lang.String str1, java.lang.String str2)
           
 ArdenClause Years(int val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArdenClause

public ArdenClause()
Method Detail

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)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change