Changeset 361
- Timestamp:
- 08/08/12 13:44:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim/trunk/db/gssim/db/mysql/ApplicationPropertyDAO.java
r360 r361 18 18 19 19 public class ApplicationPropertyDAO extends AbstractDAO implements 20 gssim.db.dao. TextPropertyDAO {20 gssim.db.dao.ApplicationPropertyDAO { 21 21 22 22 protected ApplicationPropertyDAO(Connection conn) throws SQLException { … … 89 89 List<ApplicationProperty> list = new ArrayList<ApplicationProperty>(); 90 90 91 if (finder.getString("key") == null) throw new SQLException("Key cannot be null") 91 if (finder.getString("key") == null) throw new SQLException("Key cannot be null"); 92 92 93 stmt.set Int(1, finder.getString("key"));94 stmt.set Int(2, finder.getString("key"));93 stmt.setString(1, finder.getString("key")); 94 stmt.setString(2, finder.getString("key")); 95 95 96 96 ResultSetAdapter result = new ResultSetAdapter(stmt.executeQuery()); … … 99 99 ApplicationProperty obj = new ApplicationProperty(); 100 100 101 Integer configId= result.getIntObj("version");101 Integer version = result.getIntObj("version"); 102 102 String key = result.getString("key"); 103 103 String value = result.getString("value"); … … 140 140 141 141 @Override 142 public TextProperty select(ApplicationProperty obj) throws SQLException {142 public ApplicationProperty select(ApplicationProperty obj) throws SQLException { 143 143 144 144 PreparedStatementAdapter stmt = getSelectStmt();
Note: See TracChangeset
for help on using the changeset viewer.