Query.Util.executeInQuerySession()

Signature

Object executeInQuerySession(String querySessionName, String sqlString, Object mapOfParameters, boolean reuse, long timeout,boolean isNativeQueryRawResults)

Domain

ACTION

Description

Executes the sql string synchronously in a collocated query agent and returns the results.

Parameters

NameTypeDescription
querySessionNameStringA valid query session/agent name that has been deployed in the same processing unit.
sqlStringStringA valid snapshot query sql string.
mapOfParametersObjecttypes. Or, null if there are no bind parameters.
reusebooleanstring is automatically registered the first time (Query.Create(sql)).
timeoutLongOptional Timeout value in milliseconds; default is no timeout(-1)
isNativeQueryRawResultsbooleanOptional isNativeQueryRawResults to enable raw type results in native query; default is false

Returns

TypeDescription
ObjectReturn a List of rows. Each row may be a single Object column or an an Object[] of columns.

Cautions

none