コード例 #1
0
ファイル: Connector.java プロジェクト: bptlab/chimera
 /**
  * Get a map of all dataAttribute-database-IDs to their name.
  *
  * @param dataClassID DatabaseID of the dataClass to which the dataAttributes belong
  * @return A map of all dataAttribute-database-IDs to their name
  */
 public Map<Integer, String> getDataAttributes(int dataClassID) {
   DbDataObject dbDataObject = new DbDataObject();
   String select =
       "SELECT id, name " + "FROM dataattribute " + "WHERE dataclass_id = " + dataClassID;
   return dbDataObject.executeStatementReturnsMap(select, "id", "name");
 }