Package com.softwaremining.util
Class CachedData_Helper
java.lang.Object
com.softwaremining.util.CachedData_Helper
for internal use only
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Logprotected static HashMap<String,IndexedHashMap> Contains a set of className vs IndexedHashMap variables -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(AbstractBasePersistence wrapper) for internal use onlystatic final voidfirst(AbstractBasePersistence wrapper, int currentPosition) for internal use onlystatic IndexedHashMapget an instance of the memoryTable from the static haspmap If it hasn't been created before - then createstatic booleanstatic final voidlast(AbstractBasePersistence wrapper, int currentPosition) for internal use onlystatic final intload(AbstractBasePersistence wrapper, String theKey, int currentPosition) for internal use onlystatic intnextRecord(AbstractBasePersistence wrapper, int currentPosition) for internal use onlystatic final intprev(AbstractBasePersistence wrapper, int currentPosition) for internal use onlystatic final intread(AbstractBasePersistence wrapper, int currentPosition) for internal use only
-
Field Details
-
log
-
memoryMaps
Contains a set of className vs IndexedHashMap variables
-
-
Method Details
-
close
for internal use only -
nextRecord
public static int nextRecord(AbstractBasePersistence wrapper, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
prev
public static final int prev(AbstractBasePersistence wrapper, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
first
public static final void first(AbstractBasePersistence wrapper, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
last
public static final void last(AbstractBasePersistence wrapper, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
load
public static final int load(AbstractBasePersistence wrapper, String theKey, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
read
public static final int read(AbstractBasePersistence wrapper, int currentPosition) throws IOStatusException for internal use only- Throws:
IOStatusException
-
getMemeoryTableInstance
get an instance of the memoryTable from the static haspmap If it hasn't been created before - then create- Parameters:
className-- Returns:
-
isMemoryTableAlreadyCreated
-