Package railo.runtime.orm

Examples of railo.runtime.orm.ORMSession


public class ORMEvictCollection {
  public static String call(PageContext pc,String entityName,String collectionName) throws PageException {
    return call(pc, entityName, collectionName,null);
  }
  public static String call(PageContext pc,String entityName,String collectionName,String primaryKey) throws PageException {
    ORMSession session = ORMUtil.getSession(pc);
    if(StringUtil.isEmpty(primaryKey))session.evictCollection(pc, entityName, collectionName);
    else session.evictCollection(pc, entityName, collectionName,primaryKey);
    return null;
  }
View Full Code Here


  public static String call(PageContext pc) throws PageException {
    return call(pc,",");
  }
 
  public static String call(PageContext pc, String delimiter) throws PageException {
    ORMSession sess = ORMUtil.getSession(pc);
    return ListUtil.arrayToList(sess.getEntityNames(),delimiter);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.orm.ORMSession

Copyright © 2018 www.massapicom. 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.