#340 - Remove deprecated method - update(Collection<?> beans) ... migrate to updateAll()

This commit is contained in:
Robin Bygrave
2015-07-20 11:18:51 +12:00
parent 80253c4e07
commit 89088f9480
4 changed files with 1 additions and 50 deletions
-10
View File
@@ -639,16 +639,6 @@ public final class Ebean {
serverMgr.getDefaultServer().update(bean);
}
/**
* Deprecate - please migrate to updateAll().
*
* Update the beans in the collection.
*/
@Deprecated
public static void update(Collection<?> beans) throws OptimisticLockException {
serverMgr.getDefaultServer().updateAll(beans);
}
/**
* Update the beans in the collection.
*/
@@ -1478,29 +1478,12 @@ public interface EbeanServer {
*/
void update(Object bean, Transaction transaction, boolean deleteMissingChildren) throws OptimisticLockException;
/**
* Deprecated - please migrate to updateAll().
*
* Update a collection of beans. If there is no current transaction one is created and used to
* update all the beans in the collection.
*/
@Deprecated
void update(Collection<?> beans) throws OptimisticLockException;
/**
* Update a collection of beans. If there is no current transaction one is created and used to
* update all the beans in the collection.
*/
void updateAll(Collection<?> beans) throws OptimisticLockException;
/**
* Deprecated - please migrate to updateAll().
*
* Update a collection of beans with an explicit transaction.
*/
@Deprecated
void update(Collection<?> beans, Transaction transaction) throws OptimisticLockException;
/**
* Update a collection of beans with an explicit transaction.
*/
@@ -1491,23 +1491,11 @@ public final class DefaultServer implements SpiEbeanServer {
persister.update(checkEntityBean(bean), t, deleteMissingChildren);
}
/**
* Update all beans in the collection.
*/
public void update(Collection<?> beans) {
updateAll(beans, null);
}
@Override
public void updateAll(Collection<?> beans) throws OptimisticLockException {
updateAll(beans, null);
}
@Override
public void update(Collection<?> beans, Transaction transaction) throws OptimisticLockException {
updateAll(beans, transaction);
}
/**
* Update all beans in the collection with an explicit transaction.
*/