Package common.db

Examples of common.db.HashData


    String query = null;
    List<String> qenericArr = null;
    //-------------------------
    if (!cache.containsKey(hashKey)) // if data NOTcontains in cache, load it
    {
      HashData hd = getDataForHash(kind, mappingTable, view);
      cache.put(hashKey, hd);
    }

    HashData hd = cache.get(hashKey);
    query = hd.getQuery();
    dbFieldsForInit = hd.getFieldsForInit();
    fieldJava = hd.getFieldJava();
    fieldDB = hd.getFieldDB();
    qenericArr = hd.getQenericArr();

    Class clazz = entity.getClass();
    List<Field> fs = new ArrayList<Field>();
    while (clazz != null)
    {
View Full Code Here


  {
    String hashKey = "select" + mappingTable + view;

    if (!cache.containsKey(hashKey)) // if data NOTcontains in cache, load it
    {
      HashData hd = getDataForHash("select", mappingTable,
          view);// new HashData(query, dbFieldsForInit, fieldJava, fieldDB, qenericArr);
      cache.put(hashKey, hd);
    }
    HashData hd = cache.get(hashKey);

    return hd.getQuery();
  }
View Full Code Here

  {
    String hashKey = "deleteLabel" + mappingTable + view;

    if (!cache.containsKey(hashKey)) // if data NOTcontains in cache, load it
    {
      HashData hd = getDataForHash("deleteLabel", mappingTable,
          view);// new HashData(query, dbFieldsForInit, fieldJava, fieldDB, qenericArr);
      cache.put(hashKey, hd);
    }
    HashData hd = cache.get(hashKey);

    return hd.getQuery();
  }
View Full Code Here

    dbFieldsForInit = union(kind, forSetArr, conditionArr);
    if (dbFieldsForInit == null)
      throw new RuntimeException("query initiailsation field are empty");

    return new HashData(query, dbFieldsForInit, fieldJava, fieldDB, qenericArr);
  }
View Full Code Here

TOP

Related Classes of common.db.HashData

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.