public
abstract
@interface
Delete
implements
Annotation
android.arch.persistence.room.Delete
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.
Example:
@Dao
public interface MyDao {
@Delete
public void deleteUsers(User... users);
@Delete
public void deleteAll(User user1, User user2);
@Delete
public void deleteWithFriends(User user, List<User> friends);
}
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]