org.openmrs.logic
Class LogicTransform

java.lang.Object
  extended by org.openmrs.logic.LogicTransform

public class LogicTransform
extends java.lang.Object

LogicTransform is internal representation of the transformation applied to the LogicCriteria

Example:
count() will apply the Count operator and return the total number of Result instead of the Result itself first(2) will apply the First operator and return the first two Result out of the entire Result


Constructor Summary
LogicTransform(Operator transformOperator)
           
LogicTransform(Operator transformOperator, java.lang.Integer numResults)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getNumResults()
          Get number of Result object should be returned by the current criteria.
 java.lang.String getSortColumn()
           
 Operator getTransformOperator()
          Get the TransformOperator in this LogicTransform object
 int hashCode()
           
 void setNumResults(java.lang.Integer numResults)
          Set number of Result object should be returned by the current criteria.
 void setSortColumn(java.lang.String sortColumn)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicTransform

public LogicTransform(Operator transformOperator,
                      java.lang.Integer numResults)

LogicTransform

public LogicTransform(Operator transformOperator)
Method Detail

getTransformOperator

public Operator getTransformOperator()
Get the TransformOperator in this LogicTransform object

Returns:
the current TransformOperator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNumResults

public java.lang.Integer getNumResults()
Get number of Result object should be returned by the current criteria.
Only for First and Last


getSortColumn

public java.lang.String getSortColumn()

setNumResults

public void setNumResults(java.lang.Integer numResults)
Set number of Result object should be returned by the current criteria.
Only for First and Last

Parameters:
numResults - the total Result expected from this criteria

setSortColumn

public void setSortColumn(java.lang.String sortColumn)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

OpenMRS-1.7.x

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