Query

Interface for usage of HQL queries.

Members

Functions

getQueryString
string getQueryString()

Get the query string.

list
T[] list()

Return the query results as a List of entity objects

listObjects
Object[] listObjects()

Return the query results as a List of entity objects

listRows
Variant[][] listRows()

Return the query results as a List which each row as Variant array

setParameter
Query setParameter(string name, T val)

Bind a value to a named query parameter (all :parameters used in query should be bound before executing query).

setParameterVariant
Query setParameterVariant(string name, Variant val)

Bind a value to a named query parameter (all :parameters used in query should be bound before executing query).

uniqueObject
Object uniqueObject()

Convenience method to return a single instance that matches the query, or null if the query returns no results.

uniqueObject
Object uniqueObject(Object obj)

Convenience method to return a single instance that matches the query, or null if the query returns no results. Reusing existing buffer.

uniqueResult
T uniqueResult()

Convenience method to return a single instance that matches the query, or null if the query returns no results.

uniqueResult
T uniqueResult(T obj)

Convenience method to return a single instance that matches the query, or null if the query returns no results. Reusing existing buffer.

uniqueRow
Variant[] uniqueRow()

Convenience method to return a single instance that matches the query, or null if the query returns no results.

Meta