Changeset 378
- Timestamp:
- 08/12/12 13:12:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim/trunk/db/gssim/db/mysql/ApplicationPropertyDAO.java
r361 r378 113 113 } 114 114 115 public List<String> getTypes() throws SQLException { 116 117 String sql = "SELECT * FROM application_property ap GROUP BY ap.key"; 118 PreparedStatementAdapter stmt = new PreparedStatementAdapter(this 119 .getConnection().prepareStatement(sql)); 120 121 List<String> list = new ArrayList<String>(); 122 123 ResultSetAdapter result = new ResultSetAdapter(stmt.executeQuery()); 124 125 while (result.next()) { 126 list.add(result.getString("key")); 127 } 128 129 return list; 130 } 131 115 132 @Override 116 133 public int insert(ApplicationProperty obj, boolean commit) throws SQLException {
Note: See TracChangeset
for help on using the changeset viewer.