Package railo.commons.lang.types

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()


      // Type
      TagLibTagAttr tlta=null;
    if(tlt!=null){
      tlta = tlt.getAttribute(name);
    }
    return new Attribute(dynamic.toBooleanValue(),name,tlta!=null?CastOther.toExpression(value, tlta.getType()):value,sbType.toString());
    }
 
  /*private String attributeName(CFMLString cfml, ArrayList<String> args,TagLibTag tag, RefBoolean dynamic, StringBuffer sbType) throws TemplateException {
    String id=StringUtil.toLowerCase(CFMLTransformer.identifier(cfml,true));
        if(args.contains(id)) throw new TemplateException(cfml,"you can't use the same attribute ["+id+"] twice");
View Full Code Here


          if(meta!=null){
            name=(String) names.get(keys[i],null);
            if(name==null) continue; // param not needed will be ignored
            type = meta.getNamedParameterExpectedType(name);
            obj=HibernateCaster.toSQL(type, obj,isArray);
            if(isArray.toBooleanValue())
              query.setParameterList(name, (Object[])obj,type);
            else
              query.setParameter(name, obj,type);
           
           
View Full Code Here

        String clazzName=clazz.getName();
       
        ClassLoader classLoader=clazz.getClassLoader();
        Pair pair;
        SOAPService rpc=null;
        if(!isnew.toBooleanValue() && (pair = (Pair)soapServices.get(clazzName))!=null) {
          if(classLoader==pair.classloader)
            rpc=pair.rpc;
        }
        //else classLoader = clazz.getClassLoader();
       
View Full Code Here

         
        } catch (Throwable t) {}
      }
        } 
        finally {
          if(!before.toBooleanValue())ThreadLocalDuplication.reset();
        }
     
    return object;
    }
View Full Code Here

      realPath=mergeRealPathes(mapping,this.realPath, realPath.substring(2),_isOutSide);
    }
    else {
      realPath=mergeRealPathes(mapping,this.realPath, realPath,_isOutSide);
    }
    return mapping.getPageSource(realPath,_isOutSide.toBooleanValue());
  }
 
  @Override
  public final void setLastAccessTime(long lastAccess) {
    this.lastAccess=lastAccess;
View Full Code Here

    setIsInside(false);
  }

  private static boolean isInside() {
    RefBoolean b = inside.get();
    return b!=null && b.toBooleanValue();
  }
 
  private static void setIsInside(boolean isInside) {
    RefBoolean b = inside.get();
    if(b==null)inside.set(new RefBooleanImpl(isInside));
View Full Code Here

      }
      else {
        int start=raw.getPos();
        RefBoolean hasBracked = new RefBooleanImpl(false);
        String alias=identifier(raw,hasBracked);//TODO having usw
        if(!hasBracked.toBooleanValue()) {
          if("where".equalsIgnoreCase(alias)) raw.setPos(start);
          else if("group".equalsIgnoreCase(alias)) raw.setPos(start);
          else if("having".equalsIgnoreCase(alias)) raw.setPos(start);
          else if("union".equalsIgnoreCase(alias)) raw.setPos(start);
          else if("order".equalsIgnoreCase(alias)) raw.setPos(start);
View Full Code Here

      }
      else {
        int start=raw.getPos();
        RefBoolean hb = new RefBooleanImpl(false);
        String alias=identifier(raw,hb);
        if(!hb.toBooleanValue() && "from".equalsIgnoreCase(alias)) raw.setPos(start);
        else if(alias!=null) exp.setAlias(alias);
      }
      select.addSelectExpression(exp);
      raw.removeSpace();
    }
View Full Code Here

  private Expression column(ParserString raw) throws SQLParserException {
    RefBoolean hb = new RefBooleanImpl(false);
    String name = identifier(raw,hb);
    if(name==null) return null;
    if(!hb.toBooleanValue()) {
      if("true".equalsIgnoreCase(name)) return ValueBoolean.TRUE;
      if("false".equalsIgnoreCase(name)) return ValueBoolean.FALSE;
      if("null".equalsIgnoreCase(name)) return ValueNull.NULL;
    }
   
View Full Code Here

          value=CastOther.toExpression(value, sbType.toString());
        }
      }   
      comment(data.cfml,true);
     
      return new Attribute(dynamic.toBooleanValue(),name,value,sbType.toString());
    }

  /**
   * Liest den Namen eines Attribut ein, je nach Attribut-Definition innerhalb der Tag-Lib,
   * wird der Name ber den identifier oder den Expression Transformer eingelesen.
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.