@Test public void testDelete() { for (RouteRuleGroupModel routeRuleGroup : newRouteRuleGroups()) { routeRuleGroupDao.insertOrUpdate(routeRuleGroup); RouteRuleGroupModel copy = query(routeRuleGroup); routeRuleGroupDao.delete(copy.getId()); Assert.assertNull(query(routeRuleGroup, 0)); } }
protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }
RouteRuleGroupDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } }
RouteRuleGroupDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  }
RouteRuleGroupDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  List<RouteRuleGroupModel> query(); RouteRuleGroupModel generateGroup(RouteRuleGroupModel routeRuleGroup); List<RouteRuleGroupModel> select(RouteRuleGroupModel filter); List<RouteRuleGroupModel> select(List<Long> groupIds); }
RouteRuleGroupDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  List<RouteRuleGroupModel> query(); RouteRuleGroupModel generateGroup(RouteRuleGroupModel routeRuleGroup); List<RouteRuleGroupModel> select(RouteRuleGroupModel filter); List<RouteRuleGroupModel> select(List<Long> groupIds); static final RouteRuleGroupDao INSTANCE; }