Class Query
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.data.Query
- All Implemented Interfaces:
- RMJSONArchiver.GetKeys,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
An object to fetch a dataset from a data source entity with a set condition and parameters.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddCondition(Condition aCondition) Adds a condition to query.addCondition(String aPropertyName, Condition.Operator anOperator, Object aValue) Adds a condition to query for given property name, operator and value.voidAdds a sort or sorts to list.voidAdds a sort at given index.clone()Standard clone implementation.booleanStandard equals implementation.Returns the condition.Returns the data source entity name.intReturns the fetch limit.intReturns the fetch limit default (Integer.MAX_VALUE).RMJSONArchiver.GetKeys method.intReturns the number of sorts.getSorts()Returns the list of sorts.voidpropertyChange(PropertyChangeEvent anEvent) Implement PropertyChangeListener method to forward on.removeSort(int anIndex) Removes a sort at given index.intremoveSort(Sort aSort) Removes given sort.voidsetCondition(Condition aCondition) Sets the condition.voidsetEntityName(String anEntityName) Sets the data source entity name.voidsetFetchLimit(int aValue) Sets the fetch limit.voidSets the list of sorts.toString()Returns a string representation of query.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- 
Condition_Prop- See Also:
 
- 
Sort_Prop- See Also:
 
 
- 
- 
Constructor Details- 
Querypublic Query()Creates a new query.
- 
QueryCreates a new query with given entity name.
- 
QueryCreates a new query with given entity.
 
- 
- 
Method Details- 
getEntityNameReturns the data source entity name.
- 
setEntityNameSets the data source entity name.
- 
getConditionReturns the condition.
- 
setConditionSets the condition.
- 
addConditionAdds a condition to query.
- 
addConditionAdds a condition to query for given property name, operator and value.
- 
getFetchLimitpublic int getFetchLimit()Returns the fetch limit.
- 
setFetchLimitpublic void setFetchLimit(int aValue) Sets the fetch limit.
- 
getFetchLimitDefaultpublic int getFetchLimitDefault()Returns the fetch limit default (Integer.MAX_VALUE).
- 
getSortCountpublic int getSortCount()Returns the number of sorts.
- 
getSortsReturns the list of sorts.
- 
setSortsSets the list of sorts.
- 
addSortAdds a sort or sorts to list.
- 
addSortAdds a sort at given index.
- 
removeSortRemoves a sort at given index.
- 
removeSortRemoves given sort.
- 
equalsStandard equals implementation.
- 
propertyChangeImplement PropertyChangeListener method to forward on.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
getJSONKeysRMJSONArchiver.GetKeys method.- Specified by:
- getJSONKeysin interface- RMJSONArchiver.GetKeys
 
- 
toStringReturns a string representation of query.
 
-