示例#1
0
 public List<String> get_string_list_property(String propertyName) {
   if (propertyName.equals("keyspaces")) {
     return DatabaseDescriptor.getTables();
   } else {
     return new ArrayList<String>();
   }
 }
示例#2
0
 private static void validateTable(String tablename) throws KeyspaceNotDefinedException {
   if (!DatabaseDescriptor.getTables().contains(tablename)) {
     throw new KeyspaceNotDefinedException(
         "Keyspace " + tablename + " does not exist in this schema.");
   }
 }