These APIs are used to add entries to the database:
AddBinding(String UID, String PID, String TID, String name, String value)
AddMultipleBinding(String UID, String PID, String TID, HashMap map, Boolean flag)
The Address Book application uses a padded-name convention for creating a unique column name. The padded name for a column is a fully-qualified name; for example, the fully-qualified column name for “FirstName” is:
<category >+ “.” + <firstName> + “.” + <lastName>+ “.” + “FirstName”
Where <category>, <firstName>,
and <lastNames> are the values for the address
book category, and the first name and last name of a user. For example, if
a user adds Sean Dang to his address book in the “Golf-Buddies” category, the
fully-qualified column name is Golf-Buddies.Sean.Dang.FirstName
. The
value is “Sean.” While this convention does not
ensure uniqueness, it suffices for the purposes of this application.
For more information, see the getPaddedNameForThisColumn method
in AddressBookEntry.java.