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 SummaryNested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapterAbstractPropertyAdapter.EdtUpdateValueNested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.AdapterAdapter.ValueHolderNested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapterPropertyAdapter.PAType
- 
Field SummaryFields inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapterappContext, isTargetPropertyDynamic, log, overlayOptOut, target, targetPropertyName, value, valueClass
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractQueryAdaptergetPollingConfig, getPollingMode, getUpdateRate, isSerializableDataset, restartQuery, setPollingMode, setQValue, setSerializableDataset, setUpdateRate, shutdownQuery, startupQueryMethods inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdaptergetQValue, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.factorypmi.application.binding.AdaptergetTarget, isValid, setTargetMethods inherited from interface com.inductiveautomation.factorypmi.application.gateway.IQueryResponseListenergetTargetFullPathMethods inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdaptergetTargetPropertyName, setTargetPropertyName
- 
Constructor Details- 
NamedQueryAdapterpublic NamedQueryAdapter()
 
- 
- 
Method Details- 
getBindingConfiguration- Specified by:
- getBindingConfigurationin interface- SearchablePropertyAdapter
 
- 
getReferenceType- Specified by:
- getReferenceTypein interface- PropertyAdapter
 
- 
getInteractionsDescription 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 interface- Adapter
 
- 
getPullPath
- 
setPullPath
- 
getPushPathDeprecated.Kept for backwards compatibility. UsegetPushPath2()
- 
setPushPathDeprecated.Kept for backwards compatibility. UsesetPushPath2(String)
- 
getPushPath2
- 
setPushPath2
- 
getEffectivePushPathConvenience method taking into account the legacy push path field- Returns:
- The effective push path
 
- 
getPullArguments
- 
setPullArguments
- 
getPullBoundArguments
- 
getPushBoundArguments
- 
setPushBoundArguments
- 
getPushArguments
- 
setPushArguments
- 
isPushEnabledpublic boolean isPushEnabled()
- 
setPushEnabledpublic 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
 
- 
startuppublic void startup()Description copied from interface:AdapterNotifies the adapter that it is becoming active, and should start any polling/threaded activities.- Specified by:
- startupin interface- Adapter
- Overrides:
- startupin class- AbstractPropertyAdapter
 
- 
shutdownpublic void shutdown()Description copied from interface:AdapterNotifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.- Specified by:
- shutdownin interface- Adapter
- Overrides:
- shutdownin class- AbstractPropertyAdapter
 
- 
connectDescription copied from class:AbstractPropertyAdapterCalls connect() on all interaction descriptors- Specified by:
- connectin interface- Adapter
- Overrides:
- connectin class- AbstractPropertyAdapter
 
- 
disconnectpublic void disconnect()Description copied from class:AbstractPropertyAdapterCalls disconnect() on all interaction descriptors- Specified by:
- disconnectin interface- Adapter
- Overrides:
- disconnectin class- AbstractPropertyAdapter
 
- 
registerQuery- Specified by:
- registerQueryin class- AbstractQueryAdapter
 
- 
handleQueryReturnedValue- Specified by:
- handleQueryReturnedValuein interface- IQueryResponseListener
 
- 
handleQueryReturnedNoRowspublic void handleQueryReturnedNoRows()- Specified by:
- handleQueryReturnedNoRowsin interface- IQueryResponseListener
 
- 
handleQueryReturnedError- Specified by:
- handleQueryReturnedErrorin interface- IQueryResponseListener
 
- 
notifyQueryRunningpublic void notifyQueryRunning(boolean loading) - Specified by:
- notifyQueryRunningin interface- IQueryResponseListener
 
- 
propertyChange- Specified by:
- propertyChangein interface- PropertyChangeListener
 
 
-