watchList.getXid(), watchList.getName(), watchList.getUserId() }));
else
ejt2.update("update watchLists set xid=?, name=? where id=?", new Object[] { watchList.getXid(),
watchList.getName(), watchList.getId() });
ejt2.update("delete from watchListPoints where watchListId=?", new Object[] { watchList.getId() });
ejt2.batchUpdate("insert into watchListPoints values (?,?,?)", new BatchPreparedStatementSetter() {
@Override
public int getBatchSize() {
return watchList.getPointList().size();
}