Package railo.runtime.type.Collection

Examples of railo.runtime.type.Collection.Key


       
        Iterator<Key> it = struct.keyIterator();

        deep++;
        while(it.hasNext()) {
            Key key = it.next();
            // <ENTRY NAME="STRING" TYPE="STRING">hello</ENTRY>
            String value = _serialize(struct.get(key,null),done);
            sb.append(goIn()+"<ENTRY NAME=\""+key.toString()+"\" TYPE=\""+type+"\">");
            sb.append(value);
            sb.append(goIn()+"</ENTRY>");
        }
        deep--;
       
View Full Code Here


                if(isPeristent  && ORMUtil.isRelated(props[i])) continue;
              }
              else if(!remotingFetch.booleanValue()) continue;
               
            }
            Key key = KeyImpl.getInstance(props[i].getName());
              value=scope.get(key,null);
              if(!addUDFs && (value instanceof UDF || value==null))continue;
              if(doIt)sb.append(',');
                doIt=true;
                sb.append('"');
                sb.append(escape(key.getString()));
                sb.append('"');
                sb.append(':');
                _serialize(pc,test,value,sb,serializeQueryByColumns,done);
          }
        }
View Full Code Here

       
        if(!isSMS && !select.getColumn().equals("*"))
          throw new DatabaseException("can't execute this type of query at the moment",null,sql,null);
        //Collection.Key[] keys = qr.keys();
        Iterator<Key> it = qr.keyIterator();
        Key k;
        while(it.hasNext()){
          k = it.next();
          selects.put(k.getString(),k.getString());
        }
        isSMS=false;
      }
      else {
        //if(SQLPrettyfier.PLACEHOLDER_COUNT.equals(select.getAlias())) select.setAlias("count");
View Full Code Here

    }
   
    @Override
    public Credential getRemoteUser() throws PageException {
        if(remoteUser==null) {
          Key name = KeyImpl.init(Login.getApplicationName(applicationContext));
        Resource roles = config.getConfigDir().getRealResource("roles");
       
          if(applicationContext.getLoginStorage()==Scope.SCOPE_SESSION) {
                Object auth = sessionScope().get(name,null);
                if(auth!=null) {
View Full Code Here

  private void _callRest(PageContext pc, Component component, UDF udf,String path, Struct variables, Result result, MimeType best,MimeType[] produces, boolean suppressContent, Key methodName) throws PageException, IOException, ConverterException {
    FunctionArgument[] fa=udf.getFunctionArguments();
    Struct args=new StructImpl(),meta;
   
    Key name;
    String restArgName,restArgSource,value;
    for(int i=0;i<fa.length;i++){
      name = fa[i].getName();
      meta=fa[i].getMetaData();
      restArgSource=meta==null?"":Caster.toString(meta.get(KeyConstants._restArgSource,""),"");
     
      if("path".equalsIgnoreCase(restArgSource))
        setValue(fa[i],args,name, variables.get(name,null));
      if("query".equalsIgnoreCase(restArgSource) || "url".equalsIgnoreCase(restArgSource))
        setValue(fa[i],args,name, pc.urlScope().get(name,null));
      if("form".equalsIgnoreCase(restArgSource))
        setValue(fa[i],args,name, pc.formScope().get(name,null));
      if("cookie".equalsIgnoreCase(restArgSource))
        setValue(fa[i],args,name, pc.cookieScope().get(name,null));
      if("header".equalsIgnoreCase(restArgSource) || "head".equalsIgnoreCase(restArgSource)) {
        restArgName=meta==null?"":Caster.toString(meta.get(KeyConstants._restArgName,""),"");
        if(StringUtil.isEmpty(restArgName))restArgName=name.getString();
        value=ReqRspUtil.getHeaderIgnoreCase(pc, restArgName, null);
        setValue(fa[i],args,name,value);
      }
      if("matrix".equalsIgnoreCase(restArgSource))
        setValue(fa[i],args,name, result.getMatrix().get(name,null));
View Full Code Here

  }
 
  private static boolean __equalsComplexEL(Set<Object> done,Collection left, Collection right,boolean caseSensitive, boolean checkOnlyPublicAppearance) {
    if(left.size()!=right.size()) return false;
    Iterator<Key> it = left.keyIterator();
    Key k;
    Object l,r;
    while(it.hasNext()){
      k=it.next();
      l=left.get(k,NULL);
      r=right.get(k,NULL);
View Full Code Here

  }
 
  private static boolean __equalsComplex(Set<Object> done,Collection left, Collection right,boolean caseSensitive) throws PageException {
    if(left.size()!=right.size()) return false;
    Iterator<Key> it = left.keyIterator();
    Key k;
    Object l,r;
    while(it.hasNext()){
      k=it.next();
      r=right.get(k,NULL);
      if(r==NULL) return false;
View Full Code Here

       
        Iterator<Key> it = struct.keyIterator();

        deep++;
        while(it.hasNext()) {
            Key key = it.next();
            sb.append(goIn()+"<var name="+_+key.toString()+_+">");
            sb.append(_serialize(struct.get(key,null),done));
            sb.append(goIn()+"</var>");
        }
        deep--;
       
View Full Code Here

   * @throws SearchException
     */
    protected final synchronized void store() throws SearchException {
        //Collection.Key[] keys=collections.keys();
        Iterator<Key> it = collections.keyIterator();
        Key k;
      while(it.hasNext()) {
        k=it.next();
            Element collEl = getCollectionElement(k.getString());
            SearchCollection sc = getCollectionByName(k.getString());
            setAttributes(collEl,sc)
        }

        OutputFormat format = new OutputFormat(doc, null, true);
    format.setLineSeparator("\r\n");
View Full Code Here

    Expression[] expSelects = select.getSelects();
    int selCount=expSelects.length;

    Map<Collection.Key,Object> selects=new HashMap<Collection.Key,Object>();
    Iterator<Key> it;
    Key k;
  // headers
    for(int i=0;i<selCount;i++) {
      Expression expSelect = expSelects[i];
     
      if(expSelect.getAlias().equals("*")) {
        it = qr.keyIterator();
        while(it.hasNext()){
          k = it.next();
          selects.put(k,k);
          queryAddColumn( target, k, qr.getColumn( k ).getType() );
        }
      }
      else {
        Key alias = Caster.toKey(expSelect.getAlias());

        selects.put(alias,expSelect);

                int type = Types.OTHER;

View Full Code Here

TOP

Related Classes of railo.runtime.type.Collection.Key

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.