@Test public void testDelete() { RouteRuleModel routeRule = newRouteRule(); routeRuleDao.insertOrUpdate(routeRule); RouteRuleModel copy1 = query(routeRule); routeRuleDao.delete(copy1.getId()); Assert.assertNull(query(routeRule, 0)); routeRuleDao.insertOrUpdate(routeRule); RouteRuleModel copy2 = query(routeRule); Assert.assertEquals(copy1.getId(), copy2.getId()); assertRouteRule(copy1, copy2); }
protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }
RouteRuleDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } }
RouteRuleDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  }
RouteRuleDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  List<RouteRuleModel> query(); List<RouteRuleModel> select(RouteRuleModel filter); List<RouteRuleModel> select(List<Long> groupIds); }
RouteRuleDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  List<RouteRuleModel> query(); List<RouteRuleModel> select(RouteRuleModel filter); List<RouteRuleModel> select(List<Long> groupIds); static final RouteRuleDao INSTANCE; }