Class NamedQueryAdapter
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
com.inductiveautomation.factorypmi.application.binding.AbstractQueryAdapter
com.inductiveautomation.factorypmi.application.binding.NamedQueryAdapter
- All Implemented Interfaces:
Adapter,Adapter.ValueHolder,SearchablePropertyAdapter,PropertyAdapter,IQueryResponseListener,PropertyChangeListener,EventListener
public class NamedQueryAdapter
extends AbstractQueryAdapter
implements SearchablePropertyAdapter, IQueryResponseListener, PropertyChangeListener
Hooks into the QueryManager for polling
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
AbstractPropertyAdapter.EdtUpdateValueNested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
Adapter.ValueHolderNested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
PropertyAdapter.PAType -
Field Summary
Fields inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
appContext, isTargetPropertyDynamic, log, overlayOptOut, target, targetPropertyName, value, valueClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(VisionClientContext appContext) Calls connect() on all interaction descriptorsvoidCalls disconnect() on all interaction descriptorsConvenience method taking into account the legacy push path fieldRetrieves an array of the interactions that this adapter depends on.Deprecated.Kept for backwards compatibility.voidvoidvoidhandleQueryReturnedValue(Object value) booleanvoidnotifyQueryRunning(boolean loading) voidprotected ObjectregisterQuery(int updateRate, boolean runOnce) voidsetPullArguments(Map<String, Object> pullArguments) voidsetPullBoundArguments(Map<String, BoundValueHolder> pullBoundArguments) voidsetPullPath(String pullPath) voidsetPushArguments(Map<String, Object> pushArguments) voidsetPushBoundArguments(Map<String, BoundValueHolder> pushBoundArguments) voidsetPushEnabled(boolean pushEnabled) voidsetPushPath(String pushPath) Deprecated.Kept for backwards compatibility.voidsetPushPath2(String pushPath2) voidshutdown()Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.voidstartup()Notifies the adapter that it is becoming active, and should start any polling/threaded activities.Methods inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractQueryAdapter
getPollingConfig, getPollingMode, getUpdateRate, isSerializableDataset, restartQuery, setPollingMode, setQValue, setSerializableDataset, setUpdateRate, shutdownQuery, startupQueryMethods inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
getQValue, getTarget, getTargetDesc, getTargetFullPath, getTargetPropertyName, getValueClass, handleError, handleNullToPrimitive, initLogger, isDataUsed, isDataUsed, isOverlayOptOut, isTargetPropertyDynamic, isValid, isValueClassPrimitive, setOverlayOptOut, setSetterMethodName, setTarget, setTargetPropertyDynamic, setTargetPropertyName, setValue, setValueClass, toString, updateQuality, updateTarget, updateValue, useQualityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
getTarget, isValid, setTargetMethods inherited from interface com.inductiveautomation.factorypmi.application.gateway.IQueryResponseListener
getTargetFullPathMethods inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
getTargetPropertyName, setTargetPropertyName
-
Constructor Details
-
NamedQueryAdapter
public NamedQueryAdapter()
-
-
Method Details
-
getBindingConfiguration
- Specified by:
getBindingConfigurationin interfaceSearchablePropertyAdapter
-
getReferenceType
- Specified by:
getReferenceTypein interfacePropertyAdapter
-
getInteractions
Description copied from interface:AdapterRetrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
getInteractionsin interfaceAdapter
-
getPullPath
-
setPullPath
-
getPushPath
Deprecated.Kept for backwards compatibility. UsegetPushPath2() -
setPushPath
Deprecated.Kept for backwards compatibility. UsesetPushPath2(String) -
getPushPath2
-
setPushPath2
-
getEffectivePushPath
Convenience method taking into account the legacy push path field- Returns:
- The effective push path
-
getPullArguments
-
setPullArguments
-
getPullBoundArguments
-
getPushBoundArguments
-
setPushBoundArguments
-
getPushArguments
-
setPushArguments
-
isPushEnabled
public boolean isPushEnabled() -
setPushEnabled
public void setPushEnabled(boolean pushEnabled) -
getPullArgumentsUnbound
- Returns:
- all arguments, where the bound arguments are their binding string representation
-
getPushArgumentsUnbound
-
setPullBoundArguments
- Parameters:
pullBoundArguments- the query's bound parameters, already parsed
-
startup
public void startup()Description copied from interface:AdapterNotifies the adapter that it is becoming active, and should start any polling/threaded activities.- Specified by:
startupin interfaceAdapter- Overrides:
startupin classAbstractPropertyAdapter
-
shutdown
public void shutdown()Description copied from interface:AdapterNotifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.- Specified by:
shutdownin interfaceAdapter- Overrides:
shutdownin classAbstractPropertyAdapter
-
connect
Description copied from class:AbstractPropertyAdapterCalls connect() on all interaction descriptors- Specified by:
connectin interfaceAdapter- Overrides:
connectin classAbstractPropertyAdapter
-
disconnect
public void disconnect()Description copied from class:AbstractPropertyAdapterCalls disconnect() on all interaction descriptors- Specified by:
disconnectin interfaceAdapter- Overrides:
disconnectin classAbstractPropertyAdapter
-
registerQuery
- Specified by:
registerQueryin classAbstractQueryAdapter
-
handleQueryReturnedValue
- Specified by:
handleQueryReturnedValuein interfaceIQueryResponseListener
-
handleQueryReturnedNoRows
public void handleQueryReturnedNoRows()- Specified by:
handleQueryReturnedNoRowsin interfaceIQueryResponseListener
-
handleQueryReturnedError
- Specified by:
handleQueryReturnedErrorin interfaceIQueryResponseListener
-
notifyQueryRunning
public void notifyQueryRunning(boolean loading) - Specified by:
notifyQueryRunningin interfaceIQueryResponseListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-