| java.lang.Object com.sun.j2me.payment.TransactionStorageImpl
TransactionStorageImpl | class TransactionStorageImpl (Code) | | This class extends RMS API to implement blocked operations
for Transaction Store
The
com.sun.midp.rms.RecordStoreImpl class is used
to access Transaction Store
The global native mutex is used to manage access to Transaction Store
See Also: RecordStoreImpl version: 1.1 |
Method Summary | |
int | addRecord(byte[] data) Adds a new record into the Transaction Store
Parameters: data - the data to be stored in this record. | public void | closeStore() Close Transaction Store and unlocks it. | void | deleteRecord(int recordId) Delete record from the Transaction Store. | static void | deleteStore(SecurityToken token) | int | getNumRecords() Returns the number of records currently in the Transaction Store. | public byte[] | getRecord(int recordId) Returns a copy of the data stored in the given record.
Parameters: recordId - the ID of the record to use in this operation exception: RecordStoreNotOpenException - if the record store isnot open exception: InvalidRecordIDException - if the recordId is invalid exception: RecordStoreException - if a general record storeexception occurs the data stored in the given record. | int[] | getRecordIDs() Returns all of the recordId's currently in the Transaction Store. | public int | getRecordSize(int recordId) Returns the size (in bytes) of the record. | void | setRecord(int recordId, byte[] newData) |
PAYMENT_FILE_NAME | final static String PAYMENT_FILE_NAME(Code) | | The name of the RMS where to store the transaction records.
|
PAYMENT_SUITEID_NAME | final static int PAYMENT_SUITEID_NAME(Code) | | The name of the SuiteId where to store the transaction records.
|
|
|