|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.datasource.RMCondition
public class RMCondition
Represents a condition that is part of a SQL where clause.
Nested Class Summary | |
---|---|
static class |
RMCondition.DateConstraint
|
static class |
RMCondition.Operator
|
Constructor Summary | |
---|---|
RMCondition()
Creates a new select condition. |
|
RMCondition(java.lang.Object aLeft,
RMCondition.Operator anOperator,
java.lang.Object aRight)
Creates a new select condition. |
Method Summary | |
---|---|
RMCondition |
clone()
Standard clone implementation (to get co-variant return type). |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
RMCondition |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML Unarchival. |
RMCondition.DateConstraint |
getDateConstraint()
Returns date constraint. |
boolean |
getIgnoreCase()
Returns whether condition ignores case (string types). |
java.lang.Object |
getLeftSide()
Returns the left side. |
RMCondition.Operator |
getOperator()
Returns the operator. |
static java.util.List<RMCondition.Operator> |
getOperators(RMProperty.Type aType)
Returns the valid operators for a given property type. |
java.lang.Object |
getRightSide()
Returns the right side. |
boolean |
isNegated()
Returns whether condition is negated. |
void |
setDateConstraint(RMCondition.DateConstraint aDateConstraint)
Sets the date constraint. |
void |
setIgnoreCase(boolean aValue)
Sets whether condition ignores case (string types). |
void |
setLeftSide(java.lang.Object aValue)
Sets the left side. |
void |
setNegated(boolean aValue)
Sets whether condition is negated. |
void |
setOperator(RMCondition.Operator anOperator)
Sets the operator. |
void |
setRightSide(java.lang.Object aValue)
Sets the right side. |
void |
setRightSideValues(java.util.Map aMap)
Sets right side values from map, if right side matches key from given map. |
java.lang.String |
toString()
Returns a string for condition. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML Archival. |
Methods inherited from class com.reportmill.base.RMObject |
---|
addListener, addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMCondition()
public RMCondition(java.lang.Object aLeft, RMCondition.Operator anOperator, java.lang.Object aRight)
Method Detail |
---|
public java.lang.Object getLeftSide()
public void setLeftSide(java.lang.Object aValue)
public RMCondition.Operator getOperator()
public void setOperator(RMCondition.Operator anOperator)
public java.lang.Object getRightSide()
public void setRightSide(java.lang.Object aValue)
public boolean isNegated()
public void setNegated(boolean aValue)
public boolean getIgnoreCase()
public void setIgnoreCase(boolean aValue)
public RMCondition.DateConstraint getDateConstraint()
public void setDateConstraint(RMCondition.DateConstraint aDateConstraint)
public void setRightSideValues(java.util.Map aMap)
public static java.util.List<RMCondition.Operator> getOperators(RMProperty.Type aType)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public RMCondition clone()
clone
in class com.reportmill.base.RMObject
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public RMCondition fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
public java.lang.String toString()
toString
in class java.lang.Object
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |