mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#335 - Remove deprecated method - delete(Collection<?> beans) ... migrate to deleteAll()
This commit is contained in:
@@ -750,14 +750,6 @@ public final class Ebean {
|
||||
serverMgr.getDefaultServer().deleteAll(beanType, ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all the beans from a Collection.
|
||||
*/
|
||||
@Deprecated
|
||||
public static int delete(Collection<?> beans) throws OptimisticLockException {
|
||||
return serverMgr.getDefaultServer().deleteAll(beans);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all the beans in the Collection.
|
||||
*/
|
||||
|
||||
@@ -1223,14 +1223,6 @@ public interface EbeanServer {
|
||||
*/
|
||||
void delete(Object bean) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Deprecated - please migrate to deleteAll().
|
||||
*
|
||||
* Delete all the beans in the collection.
|
||||
*/
|
||||
@Deprecated
|
||||
int delete(Collection<?> beans) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Delete all the beans in the collection.
|
||||
*/
|
||||
|
||||
@@ -1795,14 +1795,6 @@ public final class DefaultServer implements SpiEbeanServer {
|
||||
persister.delete(checkEntityBean(bean), t);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all the beans in the collection.
|
||||
*/
|
||||
@Override
|
||||
public int delete(Collection<?> beans) {
|
||||
return deleteAllInternal(beans.iterator(), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(Iterator<?> it, Transaction transaction) throws OptimisticLockException {
|
||||
return deleteAllInternal(it, transaction);
|
||||
|
||||
Reference in New Issue
Block a user