示例#1
0
 public void create(T t) throws SQLException {
   Connector.execute(getInsertDml(t));
 }
示例#2
0
 public List<T> where(String where) throws SQLException {
   ResultSet rs = Connector.execute(getWhereDml(where));
   return results(rs);
 }
示例#3
0
 public void delete(PK id) throws SQLException {
   Connector.execute(getDeleteDml(id));
 }
示例#4
0
 public void update(T t) throws SQLException {
   Connector.execute(getUpdateDml(t));
 }
示例#5
0
 public List<T> all() throws SQLException {
   return results(Connector.execute(getAllDml()));
 }
示例#6
0
 public T get(PK id) throws SQLException {
   ResultSet rs = Connector.execute(getSelectDml(id));
   List<T> results = results(rs);
   return results.size() > 0 ? results.get(0) : null;
 }