#336 - Remove deprecated method - delete(Iterator<?> it, Transaction transaction)

This commit is contained in:
Robin Bygrave
2015-07-20 10:59:52 +12:00
parent 7b090a6346
commit b8a2aac95a
3 changed files with 1 additions and 19 deletions
@@ -1271,14 +1271,6 @@ public interface EbeanServer {
*/
void delete(Object bean, Transaction transaction) throws OptimisticLockException;
/**
* Deprecated - please migrate to iterate yourself and delete().
*
* Delete all the beans from an iterator.
*/
@Deprecated
int delete(Iterator<?> it, Transaction transaction) throws OptimisticLockException;
/**
* Execute a Sql Update Delete or Insert statement. This returns the number of
* rows that where updated, deleted or inserted. If is executed in batch then
@@ -1795,11 +1795,6 @@ public final class DefaultServer implements SpiEbeanServer {
persister.delete(checkEntityBean(bean), t);
}
@Override
public int delete(Iterator<?> it, Transaction transaction) throws OptimisticLockException {
return deleteAllInternal(it, transaction);
}
/**
* Delete all the beans in the collection.
*/