// ----- sql interface -----
public List<E> fromDb() { return fromDb(null); }
public List<E> fromDb(String sql) {
Query q2 = q();
Bo bo = getProto();
if (sql == null) sql = "where " + q2.toSql();
sql = "select " + bo._getSelectFlds() +" from " + bo.table() + " " + sql;
List<E> res = new ArrayList<E>();
DBPool db = DBPool.getPool();
DBConnection c = db.getConnection();