Skip to content

Commit

Permalink
#336 - Remove deprecated method - delete(Iterator<?> it, Transaction …
Browse files Browse the repository at this point in the history
…transaction)
  • Loading branch information
rbygrave committed Jul 19, 2015
1 parent 7b090a6 commit b8a2aac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
8 changes: 0 additions & 8 deletions src/main/java/com/avaje/ebean/EbeanServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1271,14 +1271,6 @@ public interface EbeanServer {
*/
void delete(Object bean, Transaction transaction) throws OptimisticLockException;

/**
* Deprecated - please migrate to iterate yourself and delete().
*
* Delete all the beans from an iterator.
*/
@Deprecated
int delete(Iterator<?> it, Transaction transaction) throws OptimisticLockException;

/**
* Execute a Sql Update Delete or Insert statement. This returns the number of
* rows that where updated, deleted or inserted. If is executed in batch then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1795,11 +1795,6 @@ public void delete(Object bean, Transaction t) {
persister.delete(checkEntityBean(bean), t);
}

@Override
public int delete(Iterator<?> it, Transaction transaction) throws OptimisticLockException {
return deleteAllInternal(it, transaction);
}

/**
* Delete all the beans in the collection.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,7 @@ public void saveAssociation(Object ownerBean, String propertyName, Transaction t
public void delete(Object bean, Transaction t) throws OptimisticLockException {

}

@Override
public int delete(Iterator<?> it, Transaction t) throws OptimisticLockException {
return 0;
}


@Override
public int execute(SqlUpdate updSql, Transaction t) {
return 0;
Expand Down

0 comments on commit b8a2aac

Please sign in to comment.