Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Instrukcja Naprawy Strona 87

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 286
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 86
87
4: Managing data
public String getSyncName(Locale locale)
{
return null;
}
public SyncConverter getSyncConverter()
{
return this;
}
public void beginTransaction()
{
_persist = PersistentStore.getPersistentObject(PERSISTENT_KEY);
_contacts = (Vector)_persist.getContents();
}
public void endTransaction()
{
_persist.setContents(_contacts);
_persist.commit();
}
//OTASyncCapable methods ---------------------------------------------------
public SyncCollectionSchema getSchema()
{
// returns our schema
return _schema;
}
//CollectionEventSource methods --------------------------------------------
public void addCollectionListener(Object listener)
{
_listeners = ListenerUtilities.fastAddListener( _listeners, listener );
}
public void removeCollectionListener(Object listener)
{
_listeners = ListenerUtilities.removeListener( _listeners, listener );
}
public int size()
{
return _contacts.size();
}
public ContactData contactAt( int index )
{
return (ContactData)_contacts.elementAt( index );
}
}
Przeglądanie stron 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 285 286

Komentarze do niniejszej Instrukcji

Brak uwag