Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.


public abstract @interface Delete
implements Annotation

Marks a method in a Dao annotated class as a delete method.

The implementation of the method will delete its parameters from the database.

All of the parameters of the Delete method must either be classes annotated with Entity or collections/array of it.


 public interface MyDao {
     public void deleteUsers(User... users);
     public void deleteAll(User user1, User user2);
     public void deleteWithFriends(User user, List<User> friends);

See also:


Inherited methods