Class QueryHolder
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.QueryHolder
- All Implemented Interfaces:
- InteractionListener
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classLike QueryNode, but with an additional property to let us know the name of the Named Query parameter this node represents.static classWhen creating theQueryHolder, we parse the text the user input into string chunks and tag chunks.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected QueryHolder.NamedQueryNode[]protected PropertyChangeListenerprotected QueryHolder.QueryNode[]protected String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidProcesses all dynamic Named Query parameters, gets updated values, and merges the results with the static Named Query parameters, if any.getNodes()getQuery()voidsetDynamicNamedQueryParams(QueryHolder.NamedQueryNode[] dynamicNamedQueryParams) voidsetListener(PropertyChangeListener listener) voidsetNodes(QueryHolder.QueryNode[] nodes) voidsetStaticNamedQueryParams(Map<String, Object> staticNamedQueryParams) voidshutdown()Tells tag listeners to unsubscribevoidstartup(CommonContext context) Tells tag listeners to subscribe
- 
Field Details- 
query
- 
nodes
- 
dynamicNamedQueryParams
- 
staticNamedQueryParams
- 
oldNamedQueryParams
- 
listener
 
- 
- 
Constructor Details- 
QueryHolderpublic QueryHolder()
 
- 
- 
Method Details- 
getBindingRepresentation
- 
getNamedQueryParamsProcesses all dynamic Named Query parameters, gets updated values, and merges the results with the static Named Query parameters, if any. Call this before executing your Named Query to ensure you have the most up-to-date parameter values- Returns:
- Map containing Named Query parameter name/value pairs
 
- 
getInteractions
- 
startupTells tag listeners to subscribe
- 
shutdownpublic void shutdown()Tells tag listeners to unsubscribe
- 
getListener
- 
setListener
- 
childInteractionUpdatedpublic void childInteractionUpdated()- Specified by:
- childInteractionUpdatedin interface- InteractionListener
 
- 
getNodes
- 
getQuery
- 
setNodes
- 
setDynamicNamedQueryParams
- 
setStaticNamedQueryParams
 
-