@Override public QNameFilter find(final Workspace workspace, final String name) { final String sql = "select id,name,workspace_id from " + this.tableName + " where name=? and workspace_id=?"; final QNameFilter filter = DataAccessUtils.uniqueResult( this.jt.query(sql, new FilterMapper(), name, workspace.getId())); addFilterMembers(filter); return filter; }
@Override public List<QNameFilter> list(final Workspace ws) { final String sql = "select id,name,workspace_id from " + this.tableName + " where workspace_id=?"; return this.jt.query(sql, new FilterMapper(), ws.getId()); }