fixed config page post and added gitignore
This commit is contained in:
parent
6601f75f49
commit
2b1db8f9f2
3 changed files with 56 additions and 14 deletions
|
|
@ -47,14 +47,16 @@ public abstract class WAConfigObject extends DBBean{
|
|||
PreparedStatement stmt = db.getPreparedStatement( "SELECT * FROM "+DB_TABLE+" WHERE id == ?" );
|
||||
stmt.setInt(1, id);
|
||||
WAConfigObject obj = DBConnection.exec(stmt, DBBeanSQLResultHandler.create(clazz, db) );
|
||||
obj.configureObj();
|
||||
if (obj != null)
|
||||
obj.configureObj();
|
||||
return obj;
|
||||
}
|
||||
public static List<WAConfigObject> getAllConfigObjs(DBConnection db, Class<? extends WAConfigObject> clazz) throws SQLException {
|
||||
List<WAConfigObject> list =
|
||||
(List<WAConfigObject>) db.exec("SELECT * FROM "+DB_TABLE, DBBeanSQLResultHandler.createList(clazz, db) );
|
||||
for (WAConfigObject obj : list)
|
||||
obj.configureObj();
|
||||
if (obj != null)
|
||||
obj.configureObj();
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue