Package railo.runtime.query

Examples of railo.runtime.query.QueryCacheSupport


  public int doStartTag() throws PageException  {
    _doStartTag();
    return SKIP_BODY;
  }
  public void _doStartTag() throws PageException  {
    QueryCacheSupport qc = ((QueryCacheSupport)pageContext.getQueryCache());
    if(action.equalsIgnoreCase("clear")) {
      if(filter==null)
          qc.clear(pageContext);
        else
          qc.clear(pageContext,filter);
    }
    else if(action.equalsIgnoreCase("size")) {
      pageContext.setVariable(result, Caster.toDouble(qc.size(pageContext)));
    }
    else throw new ApplicationException("attribute action has an invalid value ["+action+"], valid is only [clear,size]");
   
     
   
View Full Code Here


      try {
            // Load Config
        RefBoolean isCustomSetting=new RefBooleanImpl();
            Resource configDir=getConfigDirectory(sg,configServer,countExistingContextes,isCustomSetting);
           
            QueryCacheSupport queryCache=QueryCacheSupport.getInstance();
            CFMLFactoryImpl factory=new CFMLFactoryImpl(this,queryCache);
            ConfigWebImpl config=ConfigWebFactory.newInstance(factory,configServer,configDir,isCustomSetting.toBooleanValue(),sg);
            factory.setConfig(config);
            return factory;
        }
View Full Code Here

TOP

Related Classes of railo.runtime.query.QueryCacheSupport

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.