Partager via


ContactsContract.RawContactsEntity Class

Definition

Constants for the raw contacts entities table, which can be thought of as an outer join of the raw_contacts table with the data table.

[Android.Runtime.Register("android/provider/ContactsContract$RawContactsEntity", DoNotGenerateAcw=true)]
public sealed class ContactsContract.RawContactsEntity : Java.Lang.Object
[<Android.Runtime.Register("android/provider/ContactsContract$RawContactsEntity", DoNotGenerateAcw=true)>]
type ContactsContract.RawContactsEntity = class
    inherit Object
Inheritance
ContactsContract.RawContactsEntity
Attributes

Remarks

Constants for the raw contacts entities table, which can be thought of as an outer join of the raw_contacts table with the data table. It is a strictly read-only table.

If a raw contact has data rows, the RawContactsEntity cursor will contain a one row for each data row. If the raw contact has no data rows, the cursor will still contain one row with the raw contact-level information and nulls for data columns.

Uri entityUri = ContentUris.withAppendedId(RawContactsEntity.CONTENT_URI, rawContactId);
            Cursor c = getContentResolver().query(entityUri,
                     new String[]{
                         RawContactsEntity.SOURCE_ID,
                         RawContactsEntity.DATA_ID,
                         RawContactsEntity.MIMETYPE,
                         RawContactsEntity.DATA1
                     }, null, null, null);
            try {
                while (c.moveToNext()) {
                    String sourceId = c.getString(0);
                    if (!c.isNull(1)) {
                        String mimeType = c.getString(2);
                        String data = c.getString(3);
                        ...
                    }
                }
            } finally {
                c.close();
            }

<h3>Columns</h3> RawContactsEntity has a combination of RawContact and Data columns.

<table class="jd-sumtable"> <tr> <th colspan='4'>RawContacts</th> </tr> <tr> <td style="width: 7em;">long</td> <td style="width: 20em;">#_ID</td> <td style="width: 5em;">read-only</td> <td>Raw contact row ID. See RawContacts.</td> </tr> <tr> <td>long</td> <td>#CONTACT_ID</td> <td>read-only</td> <td>See RawContacts.</td> </tr> <tr> <td>int</td> <td>#AGGREGATION_MODE</td> <td>read-only</td> <td>See RawContacts.</td> </tr> <tr> <td>int</td> <td>#DELETED</td> <td>read-only</td> <td>See RawContacts.</td> </tr> </table>

<table class="jd-sumtable"> <tr> <th colspan='4'>Data</th> </tr> <tr> <td style="width: 7em;">long</td> <td style="width: 20em;">#DATA_ID</td> <td style="width: 5em;">read-only</td> <td>Data row ID. It will be null if the raw contact has no data rows.</td> </tr> <tr> <td>String</td> <td>#MIMETYPE</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> <tr> <td>int</td> <td>#IS_PRIMARY</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> <tr> <td>int</td> <td>#IS_SUPER_PRIMARY</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> <tr> <td>int</td> <td>#DATA_VERSION</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> <tr> <td>Any type</td> <td> #DATA1<br> #DATA2<br> #DATA3<br> #DATA4<br> #DATA5<br> #DATA6<br> #DATA7<br> #DATA8<br> #DATA9<br> #DATA10<br> #DATA11<br> #DATA12<br> #DATA13<br> #DATA14<br> #DATA15</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> <tr> <td>Any type</td> <td> #SYNC1<br> #SYNC2<br> #SYNC3<br> #SYNC4</td> <td>read-only</td> <td>See ContactsContract.Data.</td> </tr> </table>

Java documentation for android.provider.ContactsContract.RawContactsEntity.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

ContentType

The MIME type of #CONTENT_URI providing a directory of raw contact entities.

DataId

The ID of the data column.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentUri

The content:// style URI for this table

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ProfileContentUri

The content:// style URI for this table, specific to the user's profile.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to