public void create(T t) throws SQLException { Connector.execute(getInsertDml(t)); }
public List<T> where(String where) throws SQLException { ResultSet rs = Connector.execute(getWhereDml(where)); return results(rs); }
public void delete(PK id) throws SQLException { Connector.execute(getDeleteDml(id)); }
public void update(T t) throws SQLException { Connector.execute(getUpdateDml(t)); }
public List<T> all() throws SQLException { return results(Connector.execute(getAllDml())); }
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; }