Package railo.runtime.type

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


   
    @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

    }
    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

        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

        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

    @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

    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

  @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

   * @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

    hasChanges=false;
    setTimeSpan(pc);
   
   
    //lastvisit=System.currentTimeMillis();
    if(sct==null) sct=new StructImpl();
    sct.setEL(KeyConstants._cfid, pc.getCFID());
    sct.setEL(KeyConstants._cftoken, pc.getCFToken());
    sct.setEL(URLTOKEN, pc.getURLToken());
    sct.setEL(LASTVISIT, _lastvisit);
    _lastvisit=new DateTimeImpl(pc.getConfig());
View Full Code Here

TOP

Related Classes of railo.runtime.type.StructImpl

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.