Package railo.runtime.orm

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


  }
 
  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

  }
 
  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

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

Related Classes of railo.runtime.orm.ORMEngine

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.