mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#340 - Remove deprecated method - update(Collection<?> beans) ... migrate to updateAll()
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user