@Override protected SqlParameterSource toInsertData(QNameFilter object) { final MapSqlParameterSource ps = new MapSqlParameterSource(); ps.addValue("name", object.getName()); ps.addValue("workspace_id", object.getWorkspaceId()); return ps; }
@Override public void update(QNameFilter filter) { jt.update( "update " + this.tableName + " set name = ? where id = ?", filter.getName(), filter.getId()); jt.update("delete from " + MEMBER_TABLE_NAME + " where filter_id = ?", filter.getId()); insertQnames(filter); }