@Test public void testDelete() throws Exception { ServiceInstanceModel serviceInstance = newServiceInstance(); serviceInstanceDao.insertOrUpdate(serviceInstance); ServiceInstanceModel newServiceInstance = query(serviceInstance); assertServiceInstance(serviceInstance, query(serviceInstance)); serviceInstanceDao.delete(newServiceInstance.getId()); Assert.assertNull(query(serviceInstance, 0)); }
protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }
ServiceInstanceDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } }
ServiceInstanceDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } private  ServiceInstanceDao(); }
ServiceInstanceDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } private  ServiceInstanceDao(); List<ServiceInstanceModel> query(); List<ServiceInstanceModel> select(ServiceInstanceModel filter); List<ServiceInstanceModel> select(List<Long> groupIds); }
ServiceInstanceDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } private  ServiceInstanceDao(); List<ServiceInstanceModel> query(); List<ServiceInstanceModel> select(ServiceInstanceModel filter); List<ServiceInstanceModel> select(List<Long> groupIds); static final ServiceInstanceDao INSTANCE; }