Changeset 361


Ignore:
Timestamp:
08/08/12 13:44:00 (13 years ago)
Author:
mcichenski
Message:

fixed typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gssim/trunk/db/gssim/db/mysql/ApplicationPropertyDAO.java

    r360 r361  
    1818 
    1919public class ApplicationPropertyDAO extends AbstractDAO implements 
    20                 gssim.db.dao.TextPropertyDAO { 
     20                gssim.db.dao.ApplicationPropertyDAO { 
    2121 
    2222        protected ApplicationPropertyDAO(Connection conn) throws SQLException { 
     
    8989                List<ApplicationProperty> list = new ArrayList<ApplicationProperty>(); 
    9090 
    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"); 
    9292                 
    93                 stmt.setInt(1, finder.getString("key")); 
    94                 stmt.setInt(2, finder.getString("key")); 
     93                stmt.setString(1, finder.getString("key")); 
     94                stmt.setString(2, finder.getString("key")); 
    9595 
    9696                ResultSetAdapter result = new ResultSetAdapter(stmt.executeQuery()); 
     
    9999                        ApplicationProperty obj = new ApplicationProperty(); 
    100100 
    101                         Integer configId = result.getIntObj("version"); 
     101                        Integer version = result.getIntObj("version"); 
    102102                        String key = result.getString("key"); 
    103103                        String value = result.getString("value"); 
     
    140140 
    141141        @Override 
    142         public TextProperty select(ApplicationProperty obj) throws SQLException { 
     142        public ApplicationProperty select(ApplicationProperty obj) throws SQLException { 
    143143 
    144144                PreparedStatementAdapter stmt = getSelectStmt(); 
Note: See TracChangeset for help on using the changeset viewer.