Class Condition
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.data.Condition
- All Implemented Interfaces:
Archivable,RMJSONArchiver.GetKeys,RMPropertyChanger,Cloneable
- Direct Known Subclasses:
ConditionList
Represents a condition that is part of a SQL where clause.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new select condition.Condition(String aPropertyName, Condition.Operator anOperator, Object aValue) Creates a new select condition. -
Method Summary
Modifier and TypeMethodDescriptionclone()Standard clone implementation (to get co-variant return type).booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML Unarchival.Returns date constraint.Returns the date constraint default.longReturns the date constraint multiplier.booleanReturns whether condition ignores case (string types).RMJSONArchiver.GetKeys method.Returns the operator.static List<Condition.Operator>getOperators(Property.Type aType) Returns the valid operators for a given property type.Returns the property name.getValue()Returns the value.booleanReturns the value of evaluating this condition on given object.booleanReturns whether condition is negated.voidsetDateConstraint(Condition.DateConstraint aDateConstraint) Sets the date constraint.voidsetIgnoreCase(boolean aValue) Sets whether condition ignores case (string types).voidsetNegated(boolean aValue) Sets whether condition is negated.voidsetOperator(Condition.Operator anOperator) Sets the operator.voidsetPropertyName(String aValue) Sets the property name.voidSets the value.toString()Returns a string for condition.toXML(RXArchiver anArchiver) XML Archival.Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
PropertyName_Prop
- See Also:
-
Operator_Prop
- See Also:
-
Value_Prop
- See Also:
-
Negated_Prop
- See Also:
-
IgnoreCase_Prop
- See Also:
-
DateConstraint_Prop
- See Also:
-
-
Constructor Details
-
Condition
public Condition()Creates a new select condition. -
Condition
Creates a new select condition.
-
-
Method Details
-
getPropertyName
Returns the property name. -
setPropertyName
Sets the property name. -
getOperator
Returns the operator. -
setOperator
Sets the operator. -
getValue
Returns the value. -
setValue
Sets the value. -
isNegated
public boolean isNegated()Returns whether condition is negated. -
setNegated
public void setNegated(boolean aValue) Sets whether condition is negated. -
getIgnoreCase
public boolean getIgnoreCase()Returns whether condition ignores case (string types). -
setIgnoreCase
public void setIgnoreCase(boolean aValue) Sets whether condition ignores case (string types). -
getDateConstraint
Returns date constraint. -
setDateConstraint
Sets the date constraint. -
getDateConstraintDefault
Returns the date constraint default. -
getDateConstraintMultiplier
public long getDateConstraintMultiplier()Returns the date constraint multiplier. -
getOperators
Returns the valid operators for a given property type. -
getValue
Returns the value of evaluating this condition on given object. -
equals
Standard equals implementation. -
clone
Standard clone implementation (to get co-variant return type).- Overrides:
clonein classRMListenerList
-
toXML
XML Archival.- Specified by:
toXMLin interfaceArchivable
-
fromXML
XML Unarchival.- Specified by:
fromXMLin interfaceArchivable
-
getJSONKeys
RMJSONArchiver.GetKeys method.- Specified by:
getJSONKeysin interfaceRMJSONArchiver.GetKeys
-
toString
Returns a string for condition.
-