net.rim.device.api.util
Interface Persistable

All Superinterfaces:
Persistable
All Known Subinterfaces:
AsymmetricCryptoToken, Certificate, CryptoSystem, CryptoToken, CryptoTokenCryptoSystemData, CryptoTokenMACKeyData, CryptoTokenPrivateKeyData, CryptoTokenPublicKeyData, CryptoTokenSymmetricKeyData, DHKey, DistinguishedName, DSAKey, ECKey, KEAKey, Key, KeyStoreData, PrivateKey, PublicKey, RSAKey, SymmetricCryptoToken, SymmetricKey
All Known Implementing Classes:
AESCryptoToken, AESKey, ARC4Key, ASN1BitSet, AssociatedData, BigIntVector, BigLongVector, BigVector, CAST128CryptoToken, CAST128Key, CertificateExtension, CertificateServerInfo, CertificateServers, CertificateStatus, CMSReceiptData, CodeSigningKey, ControlledAccess, DataBuffer, DESCryptoToken, DESKey, DHKeyPair, DHPrivateKey, DHPublicKey, DSAKeyPair, DSAPrivateKey, DSAPublicKey, ECCryptoSystem, ECCryptoToken, ECKeyPair, ECPrivateKey, ECPublicKey, HMACCryptoToken, HMACKey, HttpHeaders, InitializationVector, IntVector, KEACryptoSystem, KEACryptoToken, KEAKeyPair, KEAPrivateKey, KEAPublicKey, KeyPair, OID, PersistentObject, PersistentStore, RC2CryptoToken, RC2Key, RC5CryptoToken, RC5Key, RSACryptoSystem, RSACryptoToken, RSAKeyPair, RSAPrivateKey, RSAPublicKey, ServiceBook, ServiceBook.ServiceStatus, ServiceRecord, SkipjackCryptoToken, SkipjackKey, SmartCard, SmartCardDSACryptoToken, SmartCardID, SmartCardRSACryptoToken, SparseList, StringMatch, ToIntHashtable, ToLongHashtable, TripleDESCryptoToken, TripleDESKey, WTLSCertificate, WTLSDistinguishedName, X509Certificate, X509DistinguishedName, MultiMap, LongVector, LongIntHashtable, LongHashtable, IntStack, IntMultiMap, IntLongHashtable, IntIntHashtable, IntHashtable, ContentProtectedVector, ContentProtectedHashtable, ByteVector

public interface Persistable
extends Persistable

Every object that can persist between handheld resets must implement persistable.

A class must explicitly implement this interface for the system to persistently store instances of the class. Sub-classes do not inherit implementation of this interface. In the following example, Bar instances cannot persist, because the class does not explicitly implement the Persistable interface (if you attempt to store a Bar object in the persistent store, the device will raise a JVM error):

 
  class Foo extends Vector implements Persistable { // }
  class Bar extends Foo { // }
 

Here are some key points you should note about persistant data:





Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.