diff options
author | Brian Attwell <brianattwell@google.com> | 2015-01-23 21:33:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-23 21:33:57 +0000 |
commit | 50f316051a7d5f4d1b86267304a4d657fb175c3d (patch) | |
tree | e797397cce36b8bca129c6d4d2230ef4549d59ac /core/java | |
parent | b63524cc67fe2a12d3d099b4121c6dd4c9da6035 (diff) | |
parent | 1cf7405f1f4cdf823f9ff8378185af015653772a (diff) | |
download | frameworks_base-50f316051a7d5f4d1b86267304a4d657fb175c3d.zip frameworks_base-50f316051a7d5f4d1b86267304a4d657fb175c3d.tar.gz frameworks_base-50f316051a7d5f4d1b86267304a4d657fb175c3d.tar.bz2 |
Merge "Expose ContentProviderOperation type"
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/content/ContentProviderOperation.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/content/ContentProviderOperation.java b/core/java/android/content/ContentProviderOperation.java index 136e54d..49ac062 100644 --- a/core/java/android/content/ContentProviderOperation.java +++ b/core/java/android/content/ContentProviderOperation.java @@ -208,6 +208,22 @@ public class ContentProviderOperation implements Parcelable { return mType; } + public boolean isInsert() { + return mType == TYPE_INSERT; + } + + public boolean isDelete() { + return mType == TYPE_DELETE; + } + + public boolean isUpdate() { + return mType == TYPE_UPDATE; + } + + public boolean isAssertQuery() { + return mType == TYPE_ASSERT; + } + public boolean isWriteOperation() { return mType == TYPE_DELETE || mType == TYPE_INSERT || mType == TYPE_UPDATE; } |