Examples of ORMEngine


Examples of railo.runtime.orm.ORMEngine

   
    // ORM
        if(ormSession!=null){
          // flush orm session
          try {
        ORMEngine engine=ormSession.getEngine();
            ORMConfiguration config=engine.getConfiguration(this);
            if(config==null || (config.flushAtRequestEnd() && config.autoManageSession())){
          ormSession.flush(this);
          //ormSession.close(this);
          //print.err("2orm flush:"+Thread.currentThread().getId());
        }
View Full Code Here

Examples of railo.runtime.orm.ORMEngine

  }
 
  public ORMEngine resetORMEngine(PageContext pc, boolean force) throws PageException {
    //String name = pc.getApplicationContext().getName();
    //ormengines.remove(name);
    ORMEngine e = getORMEngine(pc);
    e.reload(pc,force);
    return e;
  }
View Full Code Here

Examples of railo.runtime.orm.ORMEngine

  }
 
  public ORMEngine getORMEngine(PageContext pc) throws PageException {
    String name = pc.getApplicationContext().getName();
   
    ORMEngine engine = ormengines.get(name);
    if(engine==null){
      //try {
      Throwable t=null;
     
      try {
        engine=(ORMEngine)ClassUtil.loadInstance(ormEngineClass);
        engine.init(pc);
      }
      catch (ClassException ce) {
        t=ce; 
      }
      catch (NoClassDefFoundError ncfe) {
View Full Code Here

Examples of railo.runtime.orm.ORMEngine

import railo.runtime.orm.ORMEngine;
import railo.runtime.orm.ORMUtil;

public class ORMGetSessionFactory {
  public static Object call(PageContext pc) throws PageException {
    ORMEngine engine= ORMUtil.getEngine(pc);
    return engine.getSessionFactory(pc);
  }
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.