Query.Util.executeInDynamicQuerySession()

Signature

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

Domain

ACTION

Description

Executes the sql string in the collocated, dynamic query session. Obviously the session should've been started beforehand.

Parameters

NameTypeDescription
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