public static final class ContactsContract.RawContacts.Entity extends Object implements BaseColumns, ContactsContract.DataColumns
A sub-directory of a single raw contact that contains all of its
ContactsContract.Data
rows. To access this directory append
CONTENT_DIRECTORY
to the raw contact URI. See
ContactsContract.RawContactsEntity
for a stand-alone table containing the same
data.
Entity has two ID fields: BaseColumns._ID
for the raw contact
and DATA_ID
for the data rows.
Entity always contains at least one row, even if there are no
actual data rows. In this case the DATA_ID
field will be
null.
Using Entity should be preferred to using two separate queries: RawContacts followed by Data. The reason is that Entity reads all data for a raw contact in one transaction, so there is no possibility of the data changing between the two queries.
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_DIRECTORY
The directory twig for this sub-table
|
static String |
DATA_ID
The ID of the data row.
|
_COUNT, _ID
CARRIER_PRESENCE, CARRIER_PRESENCE_VT_CAPABLE, DATA_VERSION, DATA1, DATA10, DATA11, DATA12, DATA13, DATA14, DATA15, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, DATA8, DATA9, HASH_ID, IS_PRIMARY, IS_READ_ONLY, IS_SUPER_PRIMARY, MIMETYPE, RAW_CONTACT_ID, RES_PACKAGE, SYNC1, SYNC2, SYNC3, SYNC4
public static final String CONTENT_DIRECTORY
public static final String DATA_ID
Type: INTEGER