#339 - Remove deprecated method - save(Collection<?> beans, Transaction transaction) ... migrate to saveAll()

This commit is contained in:
Robin Bygrave
2015-07-20 11:15:10 +12:00
parent f96ce11c73
commit 80253c4e07
3 changed files with 0 additions and 21 deletions
@@ -1394,14 +1394,6 @@ public interface EbeanServer {
*/
void save(Object bean, Transaction transaction) throws OptimisticLockException;
/**
* Deprecated - please migrate to saveAll().
*
* Save all the beans in the collection with an explicit transaction.
*/
@Deprecated
int save(Collection<?> beans, Transaction transaction) throws OptimisticLockException;
/**
* Save all the beans in the collection with an explicit transaction.
*/
@@ -1681,14 +1681,6 @@ public final class DefaultServer implements SpiEbeanServer {
}
}
/**
* Perform an update or insert on each bean in the collection. Returns the
* number of beans that where saved.
*/
public int save(Collection<?> c, Transaction t) {
return saveAllInternal(c.iterator(), t);
}
@Override
public int saveAll(Collection<?> beans, Transaction transaction) throws OptimisticLockException {
return saveAllInternal(beans.iterator(), transaction);