#341 - Remove deprecated method - insert(Collection<?> beans); ... migrate to insertAll()

This commit is contained in:
Robin Bygrave
2015-07-20 11:22:16 +12:00
parent 89088f9480
commit dbe984c668
4 changed files with 1 additions and 48 deletions
-10
View File
@@ -557,16 +557,6 @@ public final class Ebean {
public static void insert(Object bean) {
serverMgr.getDefaultServer().insert(bean);
}
/**
* Deprecated - please migrate to insertAll().
*
* Insert a collection of beans.
*/
@Deprecated
public static void insert(Collection<?> beans) {
serverMgr.getDefaultServer().insertAll(beans);
}
/**
* Insert a collection of beans.
@@ -1504,29 +1504,12 @@ public interface EbeanServer {
*/
void insert(Object bean, Transaction transaction);
/**
* Deprecated - please migrate to insertAll().
*
* Insert a collection of beans. If there is no current transaction one is created and used to
* insert all the beans in the collection.
*/
@Deprecated
void insert(Collection<?> beans);
/**
* Insert a collection of beans. If there is no current transaction one is created and used to
* insert all the beans in the collection.
*/
void insertAll(Collection<?> beans);
/**
* Deprecated - please migrate to insertAll().
*
* Insert a collection of beans with an explicit transaction.
*/
@Deprecated
void insert(Collection<?> beans, Transaction transaction);
/**
* Insert a collection of beans with an explicit transaction.
*/
@@ -1495,7 +1495,7 @@ public final class DefaultServer implements SpiEbeanServer {
public void updateAll(Collection<?> beans) throws OptimisticLockException {
updateAll(beans, null);
}
/**
* Update all beans in the collection with an explicit transaction.
*/
@@ -1541,16 +1541,6 @@ public final class DefaultServer implements SpiEbeanServer {
insertAll(beans, null);
}
@Override
public void insert(Collection<?> beans) {
insertAll(beans, null);
}
@Override
public void insert(Collection<?> beans, Transaction transaction) {
insertAll(beans, transaction);
}
/**
* Insert all beans in the collection with a transaction.
*/