Class NQuery
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.gateway.NQuery
-
- All Implemented Interfaces:
IQuery
public class NQuery extends java.lang.Object implements IQuery
Like aSQLQuery
, except for named queries. Used by theNamedQueryAdapter
and theNamedQueryTagBinding
to execute the actual query via RPC and return a dataset of the results.
-
-
Constructor Summary
Constructors Constructor Description NQuery(java.lang.String queryPath, java.util.Map<java.lang.String,java.lang.Object> paramValues, VisionClientContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dataset
execute(GatewayInterface ifc)
Executes the query and returns a dataset of the result.
-
-
-
Constructor Detail
-
NQuery
public NQuery(@Nullable java.lang.String queryPath, @Nullable java.util.Map<java.lang.String,java.lang.Object> paramValues, @Nonnull VisionClientContext context)
-
-
Method Detail
-
execute
public Dataset execute(GatewayInterface ifc) throws GatewayException
Executes the query and returns a dataset of the result.- Specified by:
execute
in interfaceIQuery
- Parameters:
ifc
- Unused, may be null- Returns:
- A
Dataset
of the result (may be empty) - Throws:
GatewayException
- If there was an error executing the query, the exception thrown will be converted to aGatewayException
-
-