Exemple #1
0
 public String readinfo() {
   String[] cols = {"id", "account", "password"};
   ArrayList<Map<String, String>> map =
       dataBaseOperator.query(DataBaseTable.UserDataTable.USER_TABLE_NAME, cols, null, null);
   String str = "";
   for (int i = 0; i < map.size(); i++) {
     str += map.get(i).get("account");
   }
   return str;
 }
Exemple #2
0
 public boolean isIdExist(String id) {
   String[] cols = {DataBaseTable.UserDataTable.ID};
   ArrayList<Map<String, String>> map =
       dataBaseOperator.query(DataBaseTable.UserDataTable.USER_TABLE_NAME, cols, null, null);
   for (int i = 0; i < map.size(); i++) {
     if (map.get(i).get(DataBaseTable.UserDataTable.ID).equals(id)) {
       return true;
     }
   }
   return false;
 }