#333 - Remove deprecated method - save(Iterator<?> it) ... change to iterate yourself and save()

This commit is contained in:
Robin Bygrave
2015-07-20 10:43:37 +12:00
parent b3b4c72a77
commit 2dbb2d9911
4 changed files with 0 additions and 31 deletions
-10
View File
@@ -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.