@NotStorableClass public class StoreSaver3 extends Object implements IStoreSaverForGarbage
Modifier and Type | Field and Description |
---|---|
static String |
IDENTITY_HASHCODE |
static int |
MAX_MODIFICATION_COUNT
after
MAX_MODIFICATION_COUNT modification will save to win
memory |
static String |
REFLECT_ERROR |
Constructor and Description |
---|
StoreSaver3(IStore store) |
Modifier and Type | Method and Description |
---|---|
void |
doNotSave() |
void |
flush() |
IHeapDataManager |
getDataManager() |
LinkManager |
getLinkManager() |
int |
getNumberOfModified() |
int |
getNumberOfVisitedForSave() |
Set<String> |
getVisitedObjectSet() |
List<String> |
getWroteArrays() |
Map<String,MutableInteger> |
getWroteObjectSet() |
boolean |
performModificationDone() |
void |
resetModificationCount() |
void |
save(boolean closing,
boolean autoSave)
save the object modification, creation, and deletion on file
then clear all informations on object persistence, persistent object are detached |
void |
saveForImport(Set<ObjectAndPersistInfo> toNotSave) |
boolean |
saveModification() |
void |
setRecordActions(boolean recordActions) |
void |
setRecordActions(boolean recordActions,
ISaveRecordActionListener saveRecordActionListener) |
void |
setRootOfObjectsToSave(Object rootOfObjectsToSave) |
void |
setSaveRecordActionListener(ISaveRecordActionListener saveRecordActionListener) |
void |
setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable) |
public static final String REFLECT_ERROR
public static final String IDENTITY_HASHCODE
public static final int MAX_MODIFICATION_COUNT
MAX_MODIFICATION_COUNT
modification will save to win
memorypublic StoreSaver3(IStore store) throws StoreException
StoreException
public void setRecordActions(boolean recordActions)
public void setRecordActions(boolean recordActions, ISaveRecordActionListener saveRecordActionListener)
public void setSaveRecordActionListener(ISaveRecordActionListener saveRecordActionListener)
public void setRootOfObjectsToSave(Object rootOfObjectsToSave)
public void save(boolean closing, boolean autoSave) throws StoreException, StoreInvalidClassException, StoreNotSerializableException, StoreClassNotFoundException, StoreDataCorruptedException, StoreTooBigForSerializationException
clear
- true if clear map of heap recordable by data record identifierclosing
- true if save for closingautoSave
- true if call for auto saveStoreException
StoreNotSerializableException
StoreInvalidClassException
StoreClassNotFoundException
StoreDataCorruptedException
StoreTooBigForSerializationException
public Map<String,MutableInteger> getWroteObjectSet()
public void saveForImport(Set<ObjectAndPersistInfo> toNotSave) throws StoreException, StoreDataCorruptedException, StoreInvalidClassException, StoreNotSerializableException, StoreClassNotFoundException, StoreTooBigForSerializationException
public void doNotSave() throws StoreException
StoreException
public boolean performModificationDone() throws StoreException
performModificationDone
in interface IStoreSaverForGarbage
StoreException
public boolean saveModification() throws StoreException
saveModification
in interface IStoreSaverForGarbage
StoreException
public void resetModificationCount()
resetModificationCount
in interface IStoreSaverForGarbage
public void flush() throws StoreException
flush
in interface IStoreSaverForGarbage
StoreException
public int getNumberOfModified()
public int getNumberOfVisitedForSave()
public void setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
public IHeapDataManager getDataManager()
getDataManager
in interface IStoreSaverForGarbage
public LinkManager getLinkManager()
getLinkManager
in interface IStoreSaverForGarbage
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.