Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Guide de dépannage Page 79

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 286
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 78
79
4: Managing data
Uniquely identify each record
type in a SyncCollection.
>Invoke the SyncCollectionSchema.setDefaultRecordType()method. The following example
shows only one record type, so it uses the default record type:
private static final int DEFAULT_RECORD_TYPE = 1;
_schema = new SyncCollectionSchema();
_schema.setDefaultRecordType(DEFAULT_RECORD_TYPE);
Uniquely identify each record
in a SyncCollection.
>Invoke the SyncCollectionSchema.setKeyFieldIDs() method.
private static final int[] KEY_FIELD_IDS = new int[] {FIELDTAG_FIRST_NAME,
FIELDTAG_LAST_NAME};
_schema.setKeyFieldIds(DEFAULT_RECORD_TYPE, KEY_FIELD_IDS);
Task Steps
Vue de la page 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 285 286

Commentaires sur ces manuels

Pas de commentaire