Package tools.util

Examples of tools.util.EZArrayList


        prefixValue=tok2.trim();
      }
     
    }

    EZArrayList v = new EZArrayList(new StringTokenizer(tok,","));
    String n = null;
    String va = null;
    int i = 0;
    Enumeration en = v.elements();
    //for (int ct = 0;ct < v.size();ct++)
    while (en.hasMoreElements())
    {

      n = en.nextElement().toString();
      //v.elementAt(ct).toString();
    n = StringUtil.replaceSubstring(n,"\"","");
    n = StringUtil.replaceSubstring(n,"'","");
    n = StringUtil.replaceSubstring(n,"`","");
      if (getCreateParser().parseParams(n,en))
        continue;
      n = n.trim();
      i = n.indexOf(" ");
      if (i < 0)
        i = n.indexOf("\t");

      //(i + ":" +  n + ":PC1\t:" + va);

      if (i < 0)
        i = n.indexOf("  ");
     
      va = n.substring(i + 1,n.length());
      va = va.trim();
      //if (i < 0)
      //("***********" + n + ":PC:" + va);
      n =n.substring(0,i);
      n = n.trim();
     
      StringBuffer tok2b = new StringBuffer (va);
      tok2b = getCreateParser().parse(n,tok2b);
      va = tok2b.toString();
     
     
      i = va.indexOf(" ");
      //(n + " PARS1 " + va);

      if (n.toLowerCase().equals("primary") && va.toLowerCase().startsWith("key"))
      {
        va = va.substring("key".length(),va.length());
        va = va.trim();
        va = va.substring( 1,va.length());
        va = va.trim();
        //("VA VAL  1" + va);
        while (!va.endsWith(")")){
          //ct = ct + 1;
          //va = va + "," + v.elementAt(ct).toString();
          va = va + "," + en.nextElement().toString();

        }
        va = va.trim();

        va = va.substring( 0,va.length() -1);
        va = va.trim();
        primaryKeys = new EZArrayList(new StringTokenizer(va,","),true);
        //("  VAL " +  );


      }
     
View Full Code Here


}

public Hashtable readTableValueWhereEqual(SQLParser sqp,String t,String n,Object v)throws SQLException{

          EZArrayList ez = new EZArrayList();
        int ct = 1;
        String tn = null;
        while (true){
        tn = convertToJiql(t,ct,sqp);
        if (getLeafCount(t,ct,sqp) <= 0)
          break;
        ez.addEnumeration(JIQLGDataUtil.listWhereEqual(tn,n,v).elements(),ez);
        ct = ct + 1;
        }
return readTableValue(sqp,t,ez)
}
View Full Code Here


public Hashtable readTableValueWhereLessThan(SQLParser sqp,String t,String n,Object v)throws SQLException{

//return  (sqp,t,JIQLGDataUtil.listWhereLessThan( (t),n,v)); 
          EZArrayList ez = new EZArrayList();
        int ct = 1;
        String tn = null;

        while (true){
        tn = convertToJiql(t,ct,sqp);
        if (getLeafCount(t,ct,sqp) <= 0)
          break;
        ez.addEnumeration(JIQLGDataUtil.listWhereLessThan(tn,n,v).elements(),ez);
        ct = ct + 1;
        }
return readTableValue(sqp,t,ez);

}
View Full Code Here

public Hashtable readTableValueWhereGreaterThan(SQLParser sqp,String t,String n,Object v)throws SQLException{

//return  (sqp,t,JIQLGDataUtil.listWhereGreaterThan( (t),n,v)); 

  EZArrayList ez = new EZArrayList();
  int ct = 1;
  String tn = null;

  while (true){
  tn = convertToJiql(t,ct,sqp);
  if (getLeafCount(t,ct,sqp) <= 0)
    break;
  ez.addEnumeration(JIQLGDataUtil.listWhereGreaterThan(tn,n,v).elements(),ez);
  ct = ct + 1;
  }
  return readTableValue(sqp,t,ez);

}
View Full Code Here

}

public Hashtable readTableValueWhereLessThanOrEqual(SQLParser sqp,String t,String n,Object v)throws SQLException{

//return  (sqp,t,JIQLGDataUtil.listWhereLessThanOrEqual( (t),n,v)); 
  EZArrayList ez = new EZArrayList();
  int ct = 1;
  String tn = null;

  while (true){
  tn = convertToJiql(t,ct,sqp);
  if (getLeafCount(t,ct,sqp) <= 0)
    break;
  ez.addEnumeration(JIQLGDataUtil.listWhereLessThanOrEqual(tn,n,v).elements(),ez);
  ct = ct + 1;
  }
  return readTableValue(sqp,t,ez);

}
View Full Code Here

}

public Hashtable readTableValueWhereGreaterThanOrEqual(SQLParser sqp,String t,String n,Object v)throws SQLException{

//return  (sqp,t,JIQLGDataUtil.listWhereGreaterThanOrEqual( (t),n,v)); 
  EZArrayList ez = new EZArrayList();
  int ct = 1;
  String tn = null;

  while (true){
  tn = convertToJiql(t,ct,sqp);
  if (getLeafCount(t,ct,sqp) <= 0)
    break;
  ez.addEnumeration(JIQLGDataUtil.listWhereGreaterThanOrEqual(tn,n,v).elements(),ez);
  ct = ct + 1;
  }
  return readTableValue(sqp,t,ez);
}
View Full Code Here

    }


      public Hashtable readTableValue(SQLParser sqp,String t)throws SQLException{
          //Vector v = JIQLGDataUtil.list( (t));
          EZArrayList v = new EZArrayList();
        int ct = 1;
        String tn = null;
          //EntityManager em = EMF.get().createEntityManager();

        //JIQLTableIds tid =  getTableIDObj(t);

        while (true){
        tn = convertToJiql(t,ct,sqp);
        //(String.valueOf(tid. (ct)) + "   " + tn + ":" + ct);
        if (getLeafCount(t,ct,sqp) <= 0)
          break;
        v.addEnumeration(JIQLGDataUtil.list(tn).elements(),v);
        ct = ct + 1;
        }
        //em.close();
         
         
View Full Code Here

  {
  //  try{
        //("getTypeInfo 2 " + getClass().getResource("typeinfo.properties"));

    InputStream inp = getClass().getResourceAsStream("typeinfo.properties");
    EZArrayList ez1 = new EZArrayList(inp);
    typeinfoCols = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);
    typeinfoColTypeNames = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);

    EZArrayList rows = null;
        typeinfo = new Vector<Row>();
        //("getTypeInfo 3 " + typeinfo);

            Row nv = null;
    String val = null;
    Object o = null;
    for (int ct = 0;ct < ez1.size();ct++)
    {
      rows = new EZArrayList(new StringTokenizer(ez1.elementAt(ct).toString(),","));
      nv = new Row();
   
        for (int ctc = 0;ctc < typeinfoCols.size();ctc++)
    {
      val = rows.elementAt(ctc).toString();
      if (!val.equalsIgnoreCase("null"))
      {
      o = jiqlCellValue.getObj(val,ColumnInfo.getTypeFromName(typeinfoColTypeNames.elementAt(ctc).toString()),sqp);
     
      //(ColumnInfo.getTypeFromName(typeinfoColTypeNames.elementAt(ctc).toString()) + ": get oo " + typeinfoColTypeNames.elementAt(ctc) + ":" + typeinfoCols.elementAt(ctc) + ":" + o.getClass().getName());
View Full Code Here

  compareoperator = c;
  name = n;
  value = v;
  if (compareoperator.equals("in"))
  {
    inclause = new EZArrayList(new StringTokenizer(value,","));
  }
  }
View Full Code Here

    return t;


  String n = null;
  String v = null;
    Vector tables = new EZArrayList(sqps.keys());
    for (int ct = 0; ct < tables.size();ct++)
    {
      v = (String)tables.elementAt(ct);
    if (l.startsWith(v + "."))
      return v;


    }
View Full Code Here

TOP

Related Classes of tools.util.EZArrayList

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.