Whatever message this page gives is out now! Go check it out!
ORMExecuteQuery(hql, params [,unique])
ORMExecuteQuery(hql, [,unique] [, options])
ORMExecuteQuery(hql, params [,unique] [,options])Parameter | Description |
hql | The HQL query that has to be executed. |
params | Object parameter for the entity. |
unique | Specifies if the object parameter is unique. |
options | Key-value pair of options for the query. You can specify several options to control the behavior of retrieval using queryOptions:
Note: Maxresults and timeout are used for pagination. |
ORMExecuteQuery("from cemployees where EmployeeID=2");
ORMExecuteQuery("from cemployees where EmployeeID IN (?, ?, ?)", [1, 3, 5]);
ORMExecuteQuery("select count(*) from cemployees", [], false);
ORMExecuteQuery("from Artists where artistid=1", true, {datasource="cfartgallery"});
ORMExecuteQuery("select count(*) from Authors", [], false, {datasource="cfbookclub"});