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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic enum
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new select condition.Condition(String aPropertyName, Condition.Operator anOperator, Object aValue) Creates a new select condition.
- 
Method SummaryModifier 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.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, 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- 
Conditionpublic Condition()Creates a new select condition.
- 
ConditionCreates a new select condition.
 
- 
- 
Method Details- 
getPropertyNameReturns the property name.
- 
setPropertyNameSets the property name.
- 
getOperatorReturns the operator.
- 
setOperatorSets the operator.
- 
getValueReturns the value.
- 
setValueSets the value.
- 
isNegatedpublic boolean isNegated()Returns whether condition is negated.
- 
setNegatedpublic void setNegated(boolean aValue) Sets whether condition is negated.
- 
getIgnoreCasepublic boolean getIgnoreCase()Returns whether condition ignores case (string types).
- 
setIgnoreCasepublic void setIgnoreCase(boolean aValue) Sets whether condition ignores case (string types).
- 
getDateConstraintReturns date constraint.
- 
setDateConstraintSets the date constraint.
- 
getDateConstraintDefaultReturns the date constraint default.
- 
getDateConstraintMultiplierpublic long getDateConstraintMultiplier()Returns the date constraint multiplier.
- 
getOperatorsReturns the valid operators for a given property type.
- 
getValueReturns the value of evaluating this condition on given object.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation (to get co-variant return type).- Overrides:
- clonein class- RMListenerList
 
- 
toXMLXML Archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML Unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
getJSONKeysRMJSONArchiver.GetKeys method.- Specified by:
- getJSONKeysin interface- RMJSONArchiver.GetKeys
 
- 
toStringReturns a string for condition.
 
-