Package railo.runtime.type.dt

Examples of railo.runtime.type.dt.DateTimeImpl


   
    this.res =res;// pc.getConfig().getClientScopeDir().getRealResource(name+"-"+pc.getCFID()+".script");
   
  }
  private static DateTime doNowIfNull(PageContext pc,DateTime dt) {
    if(dt==null)return new DateTimeImpl(pc.getConfig());
    return dt;
  }
View Full Code Here


    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());
    lastvisit=System.currentTimeMillis();
   
    if(type==SCOPE_CLIENT){
      sct.setEL(HITCOUNT, new Double(hitcount++));
    }
View Full Code Here

    }
    sct.setEL(TIMECREATED, timecreated);
  }

  public void resetEnv(PageContext pc){
    _lastvisit=new DateTimeImpl(pc.getConfig());
    timecreated=new DateTimeImpl(pc.getConfig());
    touchBeforeRequest(pc);
   
  }
View Full Code Here

  public long getTimeSpan() { return timeSpan;}
 
 
  public void touch() {
    lastvisit=System.currentTimeMillis();
    _lastvisit=new DateTimeImpl(ThreadLocalPageContext.getConfig());
  }
View Full Code Here

    if(obj==null)obj="";
    sct.setEL(KeyImpl.init(name), obj);
  }

  private void set(Struct sct, String name, long value) {
    Object obj=(value!=0)?new DateTimeImpl(value, false):"";
        sct.setEL(KeyImpl.init(name), obj);
  }
View Full Code Here

  @Override
  public Object toCFType(TimeZone tz, int type, ResultSet rst, int columnIndex) throws SQLException, IOException {
    Time t = rst.getTime(columnIndex,JREDateTimeUtil.getThreadCalendar(tz));
    if(t==null) return null;
   
    return new DateTimeImpl(t.getTime(),false);
   
  }
View Full Code Here

  @Override
  public Object toCFType(TimeZone tz,int type, ResultSet rst, int columnIndex) throws SQLException, IOException {
    Timestamp ts = rst.getTimestamp(columnIndex,JREDateTimeUtil.getThreadCalendar(tz));
    if(ts==null) return null;
    return new DateTimeImpl(ts.getTime(),false);
  }
View Full Code Here

  @Override
  public Object toCFType(TimeZone tz,int type, ResultSet rst, int columnIndex) throws SQLException, IOException {
    Date d = rst.getDate(columnIndex,JREDateTimeUtil.getThreadCalendar(tz));
    if(d==null) return null;
   
    return new DateTimeImpl(d.getTime(),false);
   
  }
View Full Code Here

    public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
      DumpTable table = new DumpTable("#669999","#ccffff","#000000");
      table.setTitle("QueryCacheEntry");
      table.appendRow(1,new SimpleDumpData("Value"),DumpUtil.toDumpData(value, pageContext, maxlevel, properties));
      table.appendRow(1,new SimpleDumpData("Creation Date"),DumpUtil.toDumpData(new DateTimeImpl(creationDate,false), pageContext, maxlevel, properties));
      return table;
    }
View Full Code Here

    super(other,deepCopy);
    cookieName=other.cookieName;
  }
 
  private static DateTime doNowIfNull(PageContext pc,DateTime dt) {
    if(dt==null)return new DateTimeImpl(pc.getConfig());
    return dt;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.dt.DateTimeImpl

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.