Query.Util

Description

Query utility functions.

Functions

NameSignature and Synopsis
addToListint addToList(Object list, Object item)
Adds the given item into the list.
clearListvoid clearList(Object list)
Removes all the elements in the list.
executeInDynamicQuerySessionObject executeInDynamicQuerySession(String sqlString, Object mapOfParameters, boolean reuse)
Executes the sql string in the collocated, dynamic query session. Obviously the session should've been started beforehand.
executeInQuerySessionObject executeInQuerySession(String querySessionName, String sqlString, Object mapOfParameters, boolean reuse)
Executes the sql string synchronously in a collocated query agent and returns the results.
getDynamicQuerySessionNameString getDynamicQuerySessionName()
Returns the name of the collocated query agent that can be started dynamically. This method does not require the session to be running.
invokeFunctionInQuerySessionObject invokeFunctionInQuerySession(String querySessionName, String queryRuleFunctionUri, Object[] parameters)
Invokes a rule function in another query session/agent whose name is given along with the parameters.
listToArrayObject[] listToArray(Object list)
Copies the list contents by reference to a new array.
newArrayObject[] newArray(int length)
Creates an Object array.
newListObject newList()
Creates a new List.
removeFromListObject removeFromList(Object list, int index)
Removes the element at the given position in the list.
sizeOfListint sizeOfList(Object list)
Returns the size/length of the given list.
startDynamicQuerySessionvoid startDynamicQuerySession()
Starts a collocated query session, dynamically. The name is always fixed. Only 1 such session can be started per JVM.