com.sun.squawk.rms
Class RecordStoreManager
java.lang.Object
com.sun.squawk.rms.RecordStoreManager
- All Implemented Interfaces:
- INorFlashMemoryHeapScanner, IRecordStoreManager
public class RecordStoreManager
- extends Object
- implements IRecordStoreManager
memoryHeap
protected INorFlashMemoryHeap memoryHeap
currentRecordStores
protected IRecordStoreEntry[] currentRecordStores
currentApplicationDescriptor
protected IApplicationDescriptorEntry currentApplicationDescriptor
memoryHeapScanner
protected INorFlashMemoryHeapScanner memoryHeapScanner
scanVisitor
protected IRmsEntryVisitor scanVisitor
reScanVisitor
protected IRmsEntryVisitor reScanVisitor
RecordStoreManager
protected RecordStoreManager()
RecordStoreManager
public RecordStoreManager(INorFlashMemoryHeap memoryHeap)
throws RecordStoreException
- Throws:
RecordStoreException
RecordStoreManager
public RecordStoreManager(INorFlashMemoryHeap memoryHeap,
INorFlashMemoryHeapScanner memoryHeapScanner,
IRmsEntryVisitor scanVisitor,
IRmsEntryVisitor reScanVisitor)
throws RecordStoreException
- Throws:
RecordStoreException
checkMIDletVersion
protected String checkMIDletVersion(String nameInstalled,
String vendorInstalled,
String versionInstalled)
deleteRecordStore
public boolean deleteRecordStore(String name)
throws RecordStoreException
- Specified by:
deleteRecordStore
in interface IRecordStoreManager
- Throws:
RecordStoreException
getEntryAt
public IRmsEntry getEntryAt(Address address)
throws RecordStoreException
- Specified by:
getEntryAt
in interface IRecordStoreManager
- Throws:
RecordStoreException
getEntryIn
public IRmsEntry getEntryIn(IMemoryHeapBlock block)
throws RecordStoreException
- Throws:
RecordStoreException
getErasedSequenceCurrentValue
public long getErasedSequenceCurrentValue()
- Specified by:
getErasedSequenceCurrentValue
in interface IRecordStoreManager
getRecordStore
protected IRecordStoreEntry getRecordStore(int storeId)
getRecordStore
public IRecordStoreEntry getRecordStore(String name,
boolean createIfNecessary)
throws RecordStoreException
- Specified by:
getRecordStore
in interface IRecordStoreManager
- Throws:
RecordStoreException
getRecordStoreNames
public String[] getRecordStoreNames()
- Specified by:
getRecordStoreNames
in interface IRecordStoreManager
getSizeAvailable
public int getSizeAvailable()
throws RecordStoreException
- Specified by:
getSizeAvailable
in interface IRecordStoreManager
- Throws:
RecordStoreException
init
protected void init()
throws RecordStoreException
- Throws:
RecordStoreException
invalidateEntryAt
public void invalidateEntryAt(Address address)
throws RecordStoreException
- Specified by:
invalidateEntryAt
in interface IRecordStoreManager
- Throws:
RecordStoreException
logEntry
public Address logEntry(IRmsEntry entry)
throws RecordStoreException
- Specified by:
logEntry
in interface IRecordStoreManager
- Throws:
RecordStoreException
reScanBlock
public void reScanBlock(Address oldAddress,
Address newAddress,
IMemoryHeapBlock block)
throws RecordStoreException
- Specified by:
reScanBlock
in interface INorFlashMemoryHeapScanner
- Throws:
RecordStoreException
scanBlock
public void scanBlock(IMemoryHeapBlock block)
throws RecordStoreException
- Specified by:
scanBlock
in interface INorFlashMemoryHeapScanner
- Throws:
RecordStoreException
"For updated information see the Java FRC site"