Package railo.runtime.db

Examples of railo.runtime.db.DataSourceSupport


      try {
        DatabaseMetaData md = conn.getMetaData();
       
        //if(procedureColumnCache==null)procedureColumnCache=new ReferenceMap();
        //ProcMetaCollection coll=procedureColumnCache.get(procedure);
        DataSourceSupport d = ((DataSourceSupport)dc.getDatasource());
        long cacheTimeout = d.getMetaCacheTimeout();
        Map<String, ProcMetaCollection> procedureColumnCache = d.getProcedureColumnCache();
        ProcMetaCollection coll=procedureColumnCache.get(procedure);
       
        if(coll==null || (cacheTimeout>=0 && (coll.created+cacheTimeout)<System.currentTimeMillis())) {
          ResultSet res = md.getProcedureColumns(pack, scheme, name, null);
          coll=createProcMetaCollection(res);
View Full Code Here


  }

    public synchronized static boolean call(PageContext pc,String datasource) {
     
      DataSource[] sources = pc.getConfig().getDataSources();
      DataSourceSupport ds;
      boolean has=false;
      for(int i=0;i<sources.length;i++){
        ds=(DataSourceSupport) sources[i];
        if(StringUtil.isEmpty(datasource) || ds.getName().equalsIgnoreCase(datasource.trim())){
          Map cache=ds.getProcedureColumnCache();
          if(cache!=null) cache.clear();
          if(!StringUtil.isEmpty(datasource))return true;
          has=true;
        }
      }
View Full Code Here

TOP

Related Classes of railo.runtime.db.DataSourceSupport

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.