cacheable: Whether the result of this query is to be cached in the secondary cache. Default is false.
cachename: Name of the cache in secondary cache.
*/
Object res = session.executeQuery(pageContext,sql.getSQLString(),params,unique,ormoptions);
if(returnType==RETURN_TYPE_ARRAY_OF_ENTITY) return res;
return session.toQuery(pageContext, res, null);
}
public static Object _call(PageContext pc,String hql, Object params, boolean unique, Struct queryOptions) throws PageException {
ORMSession session=ORMUtil.getSession(pc);