Package railo.runtime.orm

Examples of railo.runtime.orm.ORMSession.toQuery()


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);
View Full Code Here


    return call(pc, obj,null);
  }
 
  public static Query call(PageContext pc, Object obj, String name) throws PageException {
    ORMSession session=ORMUtil.getSession(pc);
    return session.toQuery(pc,obj,name);
   
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.