Package com.jbidwatcher.util

Examples of com.jbidwatcher.util.Record.values()


      Record insertMap = getFirstResult(rs);
      if (insertMap.containsKey("1")) {
        return insertMap.get("1");
      } else if(insertMap.containsKey("generated_key")) {
        return insertMap.get("generated_key");
      } else if(insertMap.values().size() == 1) {
        return insertMap.values().toArray()[0].toString();
      }
    }
    return "";
  }
View Full Code Here


      if (insertMap.containsKey("1")) {
        return insertMap.get("1");
      } else if(insertMap.containsKey("generated_key")) {
        return insertMap.get("generated_key");
      } else if(insertMap.values().size() == 1) {
        return insertMap.values().toArray()[0].toString();
      }
    }
    return "";
  }
View Full Code Here

    return countBySQL("SELECT COUNT(*) AS count FROM " + mTableName + " WHERE " + condition);
  }

  public int countBySQL(String sql) {
    Record rm = findFirst(sql);
    String count = (String) (rm.values().toArray()[0]);
    return Integer.parseInt(count);
  }

  public Database getDB() {
    return mDB;
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.