Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. and Motorola, Inc. All rights reserved.

MID Profile

Uses of Class
javax.microedition.rms.RecordStoreException

Packages that use RecordStoreException
javax.microedition.rms The Mobile Information Device Profile provides a mechanism for MIDlets to persistently store data and later retrieve it. 
 

Uses of RecordStoreException in javax.microedition.rms
 

Subclasses of RecordStoreException in javax.microedition.rms
 class InvalidRecordIDException
          Thrown to indicate an operation could not be completed because the record ID was invalid.
 class RecordStoreFullException
          Thrown to indicate an operation could not be completed because the record store system storage is full.
 class RecordStoreNotFoundException
          Thrown to indicate an operation could not be completed because the record store could not be found.
 class RecordStoreNotOpenException
          Thrown to indicate that an operation was attempted on a closed record store.
 

Methods in javax.microedition.rms that throw RecordStoreException
static void RecordStore.deleteRecordStore(String recordStoreName)
          Deletes the named record store.
static RecordStore RecordStore.openRecordStore(String recordStoreName, boolean createIfNecessary)
          Open (and possibly create) a record store associated with the given MIDlet suite.
static RecordStore RecordStore.openRecordStore(String recordStoreName, boolean createIfNecessary, int authmode, boolean writable)
          Open (and possibly create) a record store that can be shared with other MIDlet suites.
static RecordStore RecordStore.openRecordStore(String recordStoreName, String vendorName, String suiteName)
          Open a record store associated with the named MIDlet suite.
 void RecordStore.setMode(int authmode, boolean writable)
          Changes the access mode for this RecordStore.
 void RecordStore.closeRecordStore()
          This method is called when the MIDlet requests to have the record store closed.
 int RecordStore.getNextRecordID()
          Returns the recordId of the next record to be added to the record store.
 int RecordStore.addRecord(byte[] data, int offset, int numBytes)
          Adds a new record to the record store.
 void RecordStore.deleteRecord(int recordId)
          The record is deleted from the record store.
 int RecordStore.getRecordSize(int recordId)
          Returns the size (in bytes) of the MIDlet data available in the given record.
 int RecordStore.getRecord(int recordId, byte[] buffer, int offset)
          Returns the data stored in the given record.
 byte[] RecordStore.getRecord(int recordId)
          Returns a copy of the data stored in the given record.
 void RecordStore.setRecord(int recordId, byte[] newData, int offset, int numBytes)
          Sets the data in the given record to that passed in.
 byte[] RecordEnumeration.nextRecord()
          Returns a copy of the next record in this enumeration, where next is defined by the comparator and/or filter supplied in the constructor of this enumerator.
 byte[] RecordEnumeration.previousRecord()
          Returns a copy of the previous record in this enumeration, where previous is defined by the comparator and/or filter supplied in the constructor of this enumerator.
 


MID Profile

Copyright © 2006 Sun Microsystems, Inc. and Motorola, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 118 specification.