mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#333 - Remove deprecated method - save(Iterator<?> it) ... change to iterate yourself and save()
This commit is contained in:
@@ -656,16 +656,6 @@ public final class Ebean {
|
||||
serverMgr.getDefaultServer().updateAll(beans);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated - please change to iterate yourself and save().
|
||||
*
|
||||
* Save all the beans from an Iterator.
|
||||
*/
|
||||
@Deprecated
|
||||
public static int save(Iterator<?> iterator) throws OptimisticLockException {
|
||||
return serverMgr.getDefaultServer().save(iterator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Save all the beans from a Collection.
|
||||
*/
|
||||
|
||||
@@ -1209,14 +1209,6 @@ public interface EbeanServer {
|
||||
*/
|
||||
void save(Object bean) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Deprecated - please change to iterate yourself and save.
|
||||
*
|
||||
* Save all the beans in the iterator.
|
||||
*/
|
||||
@Deprecated
|
||||
int save(Iterator<?> it) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Save all the beans in the collection.
|
||||
*/
|
||||
|
||||
@@ -1681,14 +1681,6 @@ public final class DefaultServer implements SpiEbeanServer {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an update or insert on each bean in the iterator. Returns the
|
||||
* number of beans that where saved.
|
||||
*/
|
||||
public int save(Iterator<?> it) {
|
||||
return saveAllInternal(it, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an update or insert on each bean in the collection. Returns the
|
||||
* number of beans that where saved.
|
||||
|
||||
Reference in New Issue
Block a user