Examples of StructImpl


Examples of railo.runtime.type.StructImpl

          return null;
         
    paramsStr = paramsStr.substring(1, paramsStr.length() - 1);
    String items[] = ListUtil.listToStringArray(paramsStr, ',');
   
    Struct params=new StructImpl();
    String arr$[] = items;
    int index;
        for(int i = 0; i < arr$.length; i++)  {
            String pair = arr$[i];
            index = pair.indexOf('=');
            if(index == -1) return null;
           
            params.setEL(
                KeyImpl.init(deleteQuotes(pair.substring(0, index).trim()).trim()),
                deleteQuotes(pair.substring(index + 1).trim()));
        }

        return params;
View Full Code Here

Examples of railo.runtime.type.StructImpl

    Resource[] locs = getCfcLocations();
    Array arrLocs=new ArrayImpl();
    if(locs!=null)for(int i=0;i<locs.length;i++){
      arrLocs.appendEL(getAbsolutePath(locs[i]));
    }
    Struct sct=new StructImpl();
    sct.setEL(AUTO_GEN_MAP,this.autogenmap());
    sct.setEL(CATALOG,StringUtil.emptyIfNull(getCatalog()));
    sct.setEL(CFC_LOCATION,arrLocs);
    sct.setEL(IS_DEFAULT_CFC_LOCATION,isDefaultCfcLocation());
    sct.setEL(DB_CREATE,dbCreateAsString(getDbCreate()));
    sct.setEL(DIALECT,StringUtil.emptyIfNull(getDialect()));
    sct.setEL(EVENT_HANDLING,eventHandling());
    sct.setEL(EVENT_HANDLER,eventHandler());
    sct.setEL(NAMING_STRATEGY,namingStrategy());
    sct.setEL(FLUSH_AT_REQUEST_END,flushAtRequestEnd());
    sct.setEL(LOG_SQL,logSQL());
    sct.setEL(SAVE_MAPPING,saveMapping());
    sct.setEL(SCHEMA,StringUtil.emptyIfNull(getSchema()));
    sct.setEL(SECONDARY_CACHE_ENABLED,secondaryCacheEnabled());
    sct.setEL(SQL_SCRIPT,StringUtil.toStringEmptyIfNull(getSqlScript()));
    sct.setEL(USE_DB_FOR_MAPPING,useDBForMapping());
    sct.setEL(CACHE_CONFIG,getAbsolutePath(getCacheConfig()));
    sct.setEL(CACHE_PROVIDER,StringUtil.emptyIfNull(getCacheProvider()));
    sct.setEL(ORM_CONFIG,getAbsolutePath(getOrmConfig()));
   
   
   
    return sct;
  }
View Full Code Here

Examples of railo.runtime.type.StructImpl

   
    @Override
    public Object touch(PageContext pc) throws PageException {
        Object rtn=pc.getCollection(o,key,null);
        if(rtn!=null) return rtn;
        return pc.set(o,key,new StructImpl());
    }
View Full Code Here

Examples of railo.runtime.type.StructImpl

    }
    public Object touchEL(PageContext pc) {
        Object rtn=pc.getCollection(o,key,null);
        if(rtn!=null) return rtn;
        try {
      return pc.set(o,key,new StructImpl());
    } catch (PageException e) {
      return null;
    }
    }
View Full Code Here

Examples of railo.runtime.type.StructImpl

        public Object touch(PageContext pc) throws PageException {
            Object o;
            if(coll instanceof Query) {
                o= ((Query)coll).getColumn(key,null);
                if(o!=null) return o;
                return set(pc,new StructImpl());
            }
            o=coll.get(key,null);
            if(o!=null) return o;
            return set(pc,new StructImpl());
        }
View Full Code Here

Examples of railo.runtime.type.StructImpl

        public Object touchEL(PageContext pc) {
            Object o;
            if(coll instanceof Query) {
                o= ((Query)coll).getColumn(key,null);
                if(o!=null) return o;
                return setEL(pc,new StructImpl());
            }
            o=coll.get(key,null);
            if(o!=null) return o;
            return setEL(pc,new StructImpl());
        }
View Full Code Here

Examples of railo.runtime.type.StructImpl

    @Override
    public Object touch(PageContext pc) throws PageException {
        Object parent=reference.touch(pc);
        Object o= pc.getCollection(parent,key,null);
        if(o!=null) return o;
        return pc.set(parent,key,new StructImpl());
    }
View Full Code Here

Examples of railo.runtime.type.StructImpl

    public Object touchEL(PageContext pc) {
        Object parent=reference.touchEL(pc);
        Object o= pc.getCollection(parent,key,null);
        if(o!=null) return o;
        try {
      return pc.set(parent,key,new StructImpl());
    } catch (PageException e) {
      return null;
    }
    }
View Full Code Here

Examples of railo.runtime.type.StructImpl

  @Override
  public Object next() {
    try {
      if(qry.go(++current,pid)) {
        Struct sct=new StructImpl();
        for(int i=0;i<names.length;i++){
          sct.setEL(names[i], qry.get(names[i],NullSupportHelper.empty()));
        }
        return sct;
      }
    } catch (PageException pe) {
      throw new PageRuntimeException(pe);
View Full Code Here

Examples of railo.runtime.type.StructImpl

   * @param name
   * @param sct
   */
  protected StorageScopeFile(PageContext pc,Resource res,String strType,int type,Struct sct) {
    super(
        sct==null?(sct=new StructImpl()):sct,
        doNowIfNull(pc,Caster.toDate(sct.get(TIMECREATED,null),false,pc.getTimeZone(),null)),
        doNowIfNull(pc,Caster.toDate(sct.get(LASTVISIT,null),false,pc.getTimeZone(),null)),
        -1,
        type==SCOPE_CLIENT?Caster.toIntValue(sct.get(HITCOUNT,"1"),1):0,
        strType,type);
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.