コード例 #1
0
 @Override
 protected SqlParameterSource toInsertData(QNameFilter object) {
   final MapSqlParameterSource ps = new MapSqlParameterSource();
   ps.addValue("name", object.getName());
   ps.addValue("workspace_id", object.getWorkspaceId());
   return ps;
 }
コード例 #2
0
 @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);
 }