Class QueryHolder
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.QueryHolder
- All Implemented Interfaces:
InteractionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Like QueryNode, but with an additional property to let us know the name of the Named Query parameter this node represents.static class
When creating theQueryHolder
, we parse the text the user input into string chunks and tag chunks. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected QueryHolder.NamedQueryNode[]
protected PropertyChangeListener
protected QueryHolder.QueryNode[]
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Processes all dynamic Named Query parameters, gets updated values, and merges the results with the static Named Query parameters, if any.getNodes()
getQuery()
void
setDynamicNamedQueryParams
(QueryHolder.NamedQueryNode[] dynamicNamedQueryParams) void
setListener
(PropertyChangeListener listener) void
setNodes
(QueryHolder.QueryNode[] nodes) void
setStaticNamedQueryParams
(Map<String, Object> staticNamedQueryParams) void
shutdown()
Tells tag listeners to unsubscribevoid
startup
(CommonContext context) Tells tag listeners to subscribe
-
Field Details
-
query
-
nodes
-
dynamicNamedQueryParams
-
staticNamedQueryParams
-
oldNamedQueryParams
-
listener
-
-
Constructor Details
-
QueryHolder
public QueryHolder()
-
-
Method Details
-
getBindingRepresentation
-
getNamedQueryParams
Processes 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
-
startup
Tells tag listeners to subscribe -
shutdown
public void shutdown()Tells tag listeners to unsubscribe -
getListener
-
setListener
-
childInteractionUpdated
public void childInteractionUpdated()- Specified by:
childInteractionUpdated
in interfaceInteractionListener
-
getNodes
-
getQuery
-
setNodes
-
setDynamicNamedQueryParams
-
setStaticNamedQueryParams
-