Package railo.runtime.db

Examples of railo.runtime.db.DatasourceManagerImpl


      throw Caster.toPageException(e);
    }
  }
 
  private railo.runtime.type.Query executeDatasoure(SQL sql,boolean createUpdateData,TimeZone tz) throws PageException {
    DatasourceManagerImpl manager = (DatasourceManagerImpl) pageContext.getDataSourceManager();
    DatasourceConnection dc=manager.getConnection(pageContext,datasource, username, password);
   
    try {
      if(lazy && !createUpdateData && cachedWithin==null && cachedafter==null && result==null)
        return new SimpleQuery(dc,sql,maxrows,blockfactor,timeout,getName(),pageContext.getCurrentPageSource().getDisplayPath(),tz);
     
     
      return new QueryImpl(pageContext,dc,sql,maxrows,blockfactor,timeout,getName(),pageContext.getCurrentPageSource().getDisplayPath(),createUpdateData,true);
    }
    finally {
      manager.releaseConnection(pageContext,dc);
    }
  }
View Full Code Here


   
        bodyContentStack=new BodyContentStack();
        devNull=bodyContentStack.getDevNullBodyContent();
       
        this.config=config;
        manager=new DatasourceManagerImpl(config);
       
      this.scopeContext=scopeContext;
        undefined=
          new UndefinedImpl(this,config.getScopeCascadingType());
       
View Full Code Here

  public ORMSession getORMSession(boolean create) throws PageException {
    if(ormSession==null || !ormSession.isValid())  {
      if(!create) return null;
      ormSession=config.getORMEngine(this).createSession(this);
    }
    DatasourceManagerImpl manager = (DatasourceManagerImpl) getDataSourceManager();
    manager.add(this,ormSession);
   
    return ormSession;
   
   
  }
View Full Code Here

  }
 
  private DatasourceManagerImpl getManager() {
    if(_manager==null){
      Config config = ThreadLocalPageContext.getConfig();
      _manager=new DatasourceManagerImpl((ConfigImpl) config);
    }
    return _manager;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.db.DatasourceManagerImpl

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.