Java Reference
In-Depth Information
Table 9-1. Standard Fields of a Contact Record (Continued)
Field Name/Constant
Description
Data Type
ADDR_REGION
Index into ADDR of the region information associated with an
address. Typically used to hold province or state name.
String
ADDR_POSTALCODE
Index into ADDR of the postal or zip code portion of an address. String
BIRTHDAY
Date
Field containing the birthday.
CLASS
int
Field containing access class information. Can contain
Contact.CLASS_CONFIDENTIAL , Contact.CLASS_PRIVATE ,
or Contact.CLASS_PUBLIC .
EMAIL
String
Field containing the e-mail address.
FORMATTED_ADDR
String
Field containing the complete preformatted address.
FORMATTED_NAME
String
Field containing the preformatted name.
NAME
String []
Field containing the name.
NAME_FAMILY
String
Index.
NAME_GIVEN
String
Index.
NAME_OTHER
String
Index.
NAME_PREFIX
String
Index.
NAME_SUFFIX
String
Index.
NICKNAME
String
Field containing the nickname.
NOTE
String
Field containing additional note.
ORG
String
Field containing the organization name.
PHOTO
byte []
Field including a photo.
PHOTO_URL
String
Field specifying a link to a photo.
PUBLIC_KEY
byte []
Field containing public encryption key in binary form.
PUBLIC_KEY_STRING
String
Field containing public encryption key in string form.
May be tied together with PUBLIC_KEY field.
REVISION
Date
Field containing date of last modification.
TEL
String
Field containing a telephone number. No fixed
format required.
TITLE
String
Field specifying the job title.
UID
String
Field containing a unique ID.
URL
String
Field containing a link.
There are two fields in Contact that are string arrays: NAME and ADDR . These are somewhat
special because each member of the string array contains a different subfield. Constants such
as NAME_FAMILY contain the corresponding index into the string array. For example, if pimName is
the string array containing NAME , then you can access the last name using
 
Search WWH ::




Custom Search