|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.joafip.service.AbstractFilePersistenceDelegate
@NotStorableClass public abstract class AbstractFilePersistenceDelegate
all delegation to IStore for manager for file persistence of java
object
| Field Summary | |
|---|---|
protected Logger |
_log
|
protected JoafipMutex |
mutex
for thread synchronization |
protected IStore |
store
to manage root object persistence |
| Constructor Summary | |
|---|---|
AbstractFilePersistenceDelegate()
|
|
| Method Summary | |
|---|---|
java.util.Collection<ClassInfo> |
allClassInformation()
|
protected abstract void |
assertNoObjectStored()
assert there is no object stored |
protected abstract void |
assertSessionClosed()
|
protected abstract void |
assertSessionOpenned()
|
void |
checkIntegrity()
check integrity |
protected void |
closeStore()
|
java.lang.Object |
copy(java.lang.Object sourceObject)
Deprecated. |
java.lang.Object |
deepCopy(java.lang.Object sourceObject)
|
void |
disableBackgroundGarbageSweep()
disable background garbage sweep operation |
void |
enableBackgroundGarbageSweep(int sleepTime)
enable background garbage sweep operation |
long |
freeSize()
get number of free bytes in data file |
int |
garbageSweep()
garbage sweep, remove data record for object not attached to root should be call only when session closed |
java.lang.String |
getBackupFileName()
|
java.lang.String |
getChangeFileName()
|
int |
getClassIdentifier(java.lang.Class<?> clazz)
|
java.lang.ClassLoader |
getClassLoader()
|
JoafipMutex |
getMutex()
|
int |
getNumberOfDataRecord()
get number of data record in heap file |
int |
getNumberOfFreeRecord()
get number of free record in heap file |
int |
getNumberOfGarbageCandidate()
get the number of known garbage candidate |
int |
getNumberOfModified()
|
int |
getNumberOfToGarbage()
get the number of record to garbage |
int |
getNumberOfVisited()
|
java.lang.String |
getStorageFileName()
|
java.util.Set<java.lang.String> |
getWritedSet()
see IFilePersistence.setRecordSaveActions(boolean) |
boolean |
isProxy(java.lang.Object object)
to know if object is a proxy |
void |
keptInMemory(java.lang.String key,
java.lang.Object object)
Inform that an object is kept in memory, never persisted since a persisted object can reference a kept in memory object a key is use to make able to recreate link between read from storage object and kept in memory object All instance of the object class can not be persisted FIXME missing junit |
java.lang.String |
keyOfObjectKeptInMemory(java.lang.Object object)
|
java.lang.Object |
newProxyInstance(java.lang.Class<?> objectClass,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] initargs)
|
java.lang.Object |
newProxyInstance(java.lang.Object object)
|
int |
numberOfObjectState()
|
protected void |
openStore(boolean removeFiles)
|
void |
setChangeLogEnabled(boolean enabled,
int maxNumberOfChangeLog)
set enable state of file change logging |
void |
setClassLoader(java.lang.ClassLoader classLoader)
set the class loader use by proxy creation to define class the class loader use by proxy creation to define class should be the same used to load class of object to be persisted |
protected void |
setEnumState(java.lang.Enum enumObject)
set enum state from file |
void |
setForceEnhance(java.lang.Class objectClass)
force class to be enhanced even if have public method if class not accessible see IFilePersistence.setForceEnhance(String) |
void |
setForceEnhance(java.lang.Class[] objectClasses)
force classes to be enhanced even if have public method if class not accessible see IFilePersistence.setForceEnhance(String[]) |
void |
setForceEnhance(java.lang.String objectClassName)
force class to be enhanced even if have public method |
void |
setForceEnhance(java.lang.String[] objectClassNames)
force classes to be enhanced even if have public method |
void |
setGarbageListener(IGarbageListener listener)
set garbage listener |
void |
setNoLazyLoad(java.lang.Class objectClass)
set no use of lazy load for a class if class not accessible see IFilePersistence.setNoLazyLoad(String) |
void |
setNoLazyLoad(java.lang.Class[] objectClasses)
set no use of lazy load for the classes if class not accessible see IFilePersistence.setNoLazyLoad(String[]) |
void |
setNoLazyLoad(java.lang.String objectClassName)
set no use of lazy load for a class |
void |
setNoLazyLoad(java.lang.String[] objectClassNames)
set no use of lazy load for the classes |
void |
setObjectIOForClass(java.lang.Class<?> objectClass,
java.lang.Class<? extends IObjectIO> objectIOClass)
set object input output manager for a class if class not accessible see IFilePersistence.setObjectIOForClass(String, Class) |
void |
setObjectIOForClass(java.lang.String objectClassName,
java.lang.Class<? extends IObjectIO> objectIOClass)
set object input output manager for a class |
void |
setRecordSaveActions(boolean recordActions)
activation of object write recording when saving see IFilePersistence.getWritedSet() |
void |
setStorable(java.lang.Class objectClass)
mark class to be storable if class not accessible use IFilePersistence.setStorable(String) |
void |
setStorable(java.lang.Class[] objectClasses)
mark classes to be storable if class not accessible use IFilePersistence.setStorable(String[]) |
void |
setStorable(java.lang.String objectClassName)
mark class to be storable |
void |
setStorable(java.lang.String[] objectClassNames)
mark classes to be storable |
protected void |
setStore(IStore store)
|
void |
setStoreNotUseStandardSerialization(java.lang.Class objectClass)
set not use standard serialization for a serializable class if class not accessible see IFilePersistence.setStoreNotUseStandardSerialization(String) |
void |
setStoreNotUseStandardSerialization(java.lang.Class[] objectClasses)
set not use standard serialization for a serializable classes if class not accessible see IFilePersistence.setStoreNotUseStandardSerialization(String[]) |
void |
setStoreNotUseStandardSerialization(java.lang.String objectClassName)
set not use standard serialization for a serializable class |
void |
setStoreNotUseStandardSerialization(java.lang.String[] objectClassNames)
set not use standard serialization for a serializable classes |
void |
setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
to specify if only class marked by StorableClass can be persisted
or not |
void |
setStoreSerializeAndGZippedInOneRecord(java.lang.Class objectClass)
set storage mode serialized and GZipped for a serializable class if class not accessible see IFilePersistence.setStoreSerializeAndGZippedInOneRecord(String) |
void |
setStoreSerializeAndGZippedInOneRecord(java.lang.Class[] objectClasses)
set storage mode serialized and GZipped for a serializable classes if class not accessible see IFilePersistence.setStoreSerializeAndGZippedInOneRecord(String[]) |
void |
setStoreSerializeAndGZippedInOneRecord(java.lang.String objectClassName)
set storage mode serialized and GZipped for a serializable class |
void |
setStoreSerializeAndGZippedInOneRecord(java.lang.String[] objectClassNames)
set storage mode serialized and GZipped for a serializable classes |
void |
setStoreSerializeAndZippedInOneRecord(java.lang.Class objectClass)
set storage mode serialized and Zipped for a serializable class if class is not accessible see IFilePersistence.setStoreSerializeAndZippedInOneRecord(String) |
void |
setStoreSerializeAndZippedInOneRecord(java.lang.Class[] objectClasses)
set storage mode serialized and Zipped for a serializable classes if class is not accessible see IFilePersistence.setStoreSerializeAndZippedInOneRecord(String[]) |
void |
setStoreSerializeAndZippedInOneRecord(java.lang.String objectClassName)
set storage mode serialized and Zipped for a serializable class |
void |
setStoreSerializeAndZippedInOneRecord(java.lang.String[] objectClassNames)
set storage mode serialized and Zipped for a serializable classes |
void |
setStoreSerializeInOneRecord(java.lang.Class objectClass)
set storage mode serialized for a serializable class if class is not accessible see IFilePersistence.setStoreSerializeInOneRecord(String) |
void |
setStoreSerializeInOneRecord(java.lang.Class[] objectClasses)
set storage mode serialized for a serializable classes if class is not accessible see IFilePersistence.setStoreSerializeInOneRecord(String[]) |
void |
setStoreSerializeInOneRecord(java.lang.String objectClassName)
set storage mode serialized for a serializable class |
void |
setStoreSerializeInOneRecord(java.lang.String[] objectClassNames)
set storage mode serialized for a serializable classes |
void |
setSubstituteObjectManager(java.lang.Class<?> objectClass,
java.lang.Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
set substitution for object of a class writing and reading if class is not accessible see IFilePersistence.setSubstituteObjectManager(String, Class, ISubstituteObjectManager)
|
void |
setSubstituteObjectManager(java.lang.String objectClassName,
java.lang.Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
set substitution for object of a class writing and reading |
void |
setSubstitution(java.lang.Class replaced,
java.lang.Class substitute,
ISubsituteSynchronizer synchronizer)
record a class substitution at write if class is not accessible see IFilePersistence.setSubstitution(String, Class, ISubsituteSynchronizer) |
void |
setSubstitution(java.lang.String replacedName,
java.lang.Class substitute,
ISubsituteSynchronizer synchronizer)
record a class substitution at write |
void |
setSubstitutionOfJavaUtilCollection()
activate java util collection substitution PVector for Vector PLinkedList for LinkedList PArrayList for ArrayList PHashSet for HashSet PLinkedHashSet for LinkedHashSet PTreeSet for TreeSet PHashMap for HashMap PLinkedHashMap for LinkedHashMap PTreeMap for TreeMap PHashMap for HashTable |
void |
setZipCompressionLevel(int zipCompressionLevel)
set the compression level for class annotated StoreSerializeAndZippedInOneRecord or defined using
IFilePersistence.setStoreSerializeAndZippedInOneRecord(Class) or
IFilePersistence.setStoreSerializeAndZippedInOneRecord(Class[])the compression level have value 0 thru 9: #NO_COMPRESSION
#BEST_SPEED
.... |
void |
storedEnum(java.lang.Class<? extends java.lang.Enum> enumClass)
inform that enum class is persisted |
void |
storedEnum(java.lang.Class<? extends java.lang.Enum>[] enumClasses)
inform that enum classes are persisted |
void |
storedEnum(java.lang.Enum enumObject)
inform that enum object is persisted |
protected void |
storeDoNotSave()
|
protected java.lang.Object |
storeGetRoot()
|
protected java.lang.Object |
storeSave(boolean closing)
|
protected void |
storeSetRoot(java.lang.Object rootObject)
|
long |
totalSize()
get total size of data file |
long |
usedSize()
get number of bytes used to store data in data file |
void |
xmlExport(java.lang.String directoryName,
java.lang.String temporaryDirectoryName,
boolean exportPersistedClassByteCode)
export persisted data in file export.xml put in directoryName |
void |
xmlImport(java.lang.String directoryName)
import from exported data in directoryName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.joafip.service.IFilePersistence |
|---|
clear, close, createAloneDataAccessSession, createDataAccessSession |
| Field Detail |
|---|
protected final transient Logger _log
protected transient IStore store
protected transient JoafipMutex mutex
| Constructor Detail |
|---|
public AbstractFilePersistenceDelegate()
| Method Detail |
|---|
protected void setStore(IStore store)
public JoafipMutex getMutex()
protected void openStore(boolean removeFiles)
throws StoreException,
StoreClassNotFoundException
StoreException
StoreClassNotFoundException
protected void closeStore()
throws StoreException
StoreException
protected java.lang.Object storeSave(boolean closing)
throws StoreException,
StoreInvalidClassException,
StoreNotSerializableException,
StoreClassNotFoundException,
StoreDataCorruptedException
StoreException
StoreInvalidClassException
StoreNotSerializableException
StoreClassNotFoundException
StoreDataCorruptedException
protected void storeDoNotSave()
throws StoreException
StoreException
protected void storeSetRoot(java.lang.Object rootObject)
throws StoreException,
StoreInvalidClassException,
StoreNotSerializableException,
StoreClassNotFoundException,
StoreDataCorruptedException
StoreException
StoreInvalidClassException
StoreNotSerializableException
StoreClassNotFoundException
StoreDataCorruptedException
protected java.lang.Object storeGetRoot()
throws StoreException,
StoreClassNotFoundException,
StoreInvalidClassException,
StoreDataCorruptedException,
StoreNotSerializableException
StoreException
StoreClassNotFoundException
StoreInvalidClassException
StoreDataCorruptedException
StoreNotSerializableException
public void setChangeLogEnabled(boolean enabled,
int maxNumberOfChangeLog)
throws FilePersistenceException
IFilePersistence
setChangeLogEnabled in interface IFilePersistenceenabled - true if change log enabledmaxNumberOfChangeLog - max number of state change log
FilePersistenceException
public void setZipCompressionLevel(int zipCompressionLevel)
throws FilePersistenceException
IFilePersistenceStoreSerializeAndZippedInOneRecord or defined using
IFilePersistence.setStoreSerializeAndZippedInOneRecord(Class) or
IFilePersistence.setStoreSerializeAndZippedInOneRecord(Class[])#NO_COMPRESSION#BEST_SPEED#BEST_COMPRESSION
setZipCompressionLevel in interface IFilePersistencezipCompressionLevel - the zip the compression level (0-9) for object storing using
zipped serialization
FilePersistenceException
public void setGarbageListener(IGarbageListener listener)
throws FilePersistenceException
IFilePersistence
setGarbageListener in interface IFilePersistencelistener - the garbage listener, can be null to remove previous one
FilePersistenceException
public void setSubstitutionOfJavaUtilCollection()
throws FilePersistenceException
IFilePersistence
setSubstitutionOfJavaUtilCollection in interface IFilePersistenceFilePersistenceException
public void setSubstitution(java.lang.Class replaced,
java.lang.Class substitute,
ISubsituteSynchronizer synchronizer)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setSubstitution(String, Class, ISubsituteSynchronizer)
setSubstitution in interface IFilePersistencereplaced - the replaced classsubstitute - the substitute for the replaced classsynchronizer - the state synchronizer for class and its substitute
FilePersistenceException
public void setSubstitution(java.lang.String replacedName,
java.lang.Class substitute,
ISubsituteSynchronizer synchronizer)
throws FilePersistenceException
IFilePersistence
setSubstitution in interface IFilePersistencereplacedName - the replaced class by its namesubstitute - the substitute for the replaced classsynchronizer - the state synchronizer for class and its substitute
FilePersistenceException
public void setNoLazyLoad(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setNoLazyLoad(String)
setNoLazyLoad in interface IFilePersistenceFilePersistenceException
public void setNoLazyLoad(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setNoLazyLoad(String[])
setNoLazyLoad in interface IFilePersistenceFilePersistenceExceptionpublic void setNoLazyLoad(java.lang.String objectClassName)
IFilePersistence
setNoLazyLoad in interface IFilePersistencepublic void setNoLazyLoad(java.lang.String[] objectClassNames)
IFilePersistence
setNoLazyLoad in interface IFilePersistence
public void setStoreNotUseStandardSerialization(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreNotUseStandardSerialization(String)
setStoreNotUseStandardSerialization in interface IFilePersistenceFilePersistenceException
public void setStoreNotUseStandardSerialization(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreNotUseStandardSerialization(String[])
setStoreNotUseStandardSerialization in interface IFilePersistenceFilePersistenceException
public void setStoreNotUseStandardSerialization(java.lang.String objectClassName)
throws FilePersistenceException
IFilePersistence
setStoreNotUseStandardSerialization in interface IFilePersistenceFilePersistenceException
public void setStoreNotUseStandardSerialization(java.lang.String[] objectClassNames)
throws FilePersistenceException
IFilePersistence
setStoreNotUseStandardSerialization in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndGZippedInOneRecord(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeAndGZippedInOneRecord(String)
setStoreSerializeAndGZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndGZippedInOneRecord(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeAndGZippedInOneRecord(String[])
setStoreSerializeAndGZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndGZippedInOneRecord(java.lang.String objectClassName)
throws FilePersistenceException
IFilePersistence
setStoreSerializeAndGZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndGZippedInOneRecord(java.lang.String[] objectClassNames)
throws FilePersistenceException
IFilePersistence
setStoreSerializeAndGZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndZippedInOneRecord(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeAndZippedInOneRecord(String)
setStoreSerializeAndZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndZippedInOneRecord(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeAndZippedInOneRecord(String[])
setStoreSerializeAndZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndZippedInOneRecord(java.lang.String objectClassName)
throws FilePersistenceException
IFilePersistence
setStoreSerializeAndZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeAndZippedInOneRecord(java.lang.String[] objectClassNames)
throws FilePersistenceException
IFilePersistence
setStoreSerializeAndZippedInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeInOneRecord(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeInOneRecord(String)
setStoreSerializeInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeInOneRecord(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStoreSerializeInOneRecord(String[])
setStoreSerializeInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeInOneRecord(java.lang.String objectClassName)
throws FilePersistenceException
IFilePersistence
setStoreSerializeInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStoreSerializeInOneRecord(java.lang.String[] objectClassNames)
throws FilePersistenceException
IFilePersistence
setStoreSerializeInOneRecord in interface IFilePersistenceFilePersistenceException
public void setStorable(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStorable(String)
setStorable in interface IFilePersistenceFilePersistenceException
public void setStorable(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setStorable(String[])
setStorable in interface IFilePersistenceFilePersistenceException
public void setStorable(java.lang.String objectClassName)
throws FilePersistenceException
IFilePersistence
setStorable in interface IFilePersistenceFilePersistenceException
public void setStorable(java.lang.String[] objectClassNames)
throws FilePersistenceException
IFilePersistence
setStorable in interface IFilePersistenceFilePersistenceException
public void setForceEnhance(java.lang.Class objectClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setForceEnhance(String)
setForceEnhance in interface IFilePersistenceFilePersistenceException
public void setForceEnhance(java.lang.Class[] objectClasses)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setForceEnhance(String[])
setForceEnhance in interface IFilePersistenceFilePersistenceExceptionpublic void setForceEnhance(java.lang.String objectClassName)
IFilePersistence
setForceEnhance in interface IFilePersistencepublic void setForceEnhance(java.lang.String[] objectClassNames)
IFilePersistence
setForceEnhance in interface IFilePersistence
public void setObjectIOForClass(java.lang.Class<?> objectClass,
java.lang.Class<? extends IObjectIO> objectIOClass)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setObjectIOForClass(String, Class)
setObjectIOForClass in interface IFilePersistenceobjectClass - the class for which is provide the object input outputobjectIOClass - object input output manager class for the class
FilePersistenceException - object I/O construction failure
public void setObjectIOForClass(java.lang.String objectClassName,
java.lang.Class<? extends IObjectIO> objectIOClass)
throws FilePersistenceException
IFilePersistence
setObjectIOForClass in interface IFilePersistenceobjectClassName - the class by its name for which is provide the object input
outputobjectIOClass - object input output manager class for the class
FilePersistenceException - object I/O construction failure
public void storedEnum(java.lang.Class<? extends java.lang.Enum>[] enumClasses)
throws FilePersistenceException
IFilePersistence
storedEnum in interface IFilePersistenceenumClasses - the enum classes
FilePersistenceException
public void storedEnum(java.lang.Class<? extends java.lang.Enum> enumClass)
throws FilePersistenceException
IFilePersistence
storedEnum in interface IFilePersistenceenumClass - the enum class
FilePersistenceException
public void storedEnum(java.lang.Enum enumObject)
throws FilePersistenceException
IFilePersistence
storedEnum in interface IFilePersistenceFilePersistenceException
protected void setEnumState(java.lang.Enum enumObject)
throws FilePersistenceException
enumObject - the enum for which state must be set
FilePersistenceException
public void setSubstituteObjectManager(java.lang.Class<?> objectClass,
java.lang.Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
throws FilePersistenceException
IFilePersistenceIFilePersistence.setSubstituteObjectManager(String, Class, ISubstituteObjectManager)
setSubstituteObjectManager in interface IFilePersistenceobjectClass - the class of object to substitutesubstituteObjectClass - the substitute object classsubstituteObjectManager - the substitute manager to use
FilePersistenceException
public void setSubstituteObjectManager(java.lang.String objectClassName,
java.lang.Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
throws FilePersistenceException
IFilePersistence
setSubstituteObjectManager in interface IFilePersistenceobjectClassName - the class by its name of object to substitutesubstituteObjectClass - the substitute object classsubstituteObjectManager - the substitute manager to use
FilePersistenceException
public int garbageSweep()
throws FilePersistenceException
IFilePersistence
garbageSweep in interface IFilePersistenceFilePersistenceException
protected abstract void assertSessionClosed()
throws FilePersistenceException
FilePersistenceException
protected abstract void assertSessionOpenned()
throws FilePersistenceException
FilePersistenceException
public void enableBackgroundGarbageSweep(int sleepTime)
throws FilePersistenceException
IFilePersistence
enableBackgroundGarbageSweep in interface IFilePersistencesleepTime - sleep time between garbage sweep operation
FilePersistenceException
public void disableBackgroundGarbageSweep()
throws FilePersistenceException
IFilePersistence
disableBackgroundGarbageSweep in interface IFilePersistenceFilePersistenceException
public int getNumberOfGarbageCandidate()
throws FilePersistenceException
IFilePersistence
getNumberOfGarbageCandidate in interface IFilePersistenceFilePersistenceException
public int getNumberOfToGarbage()
throws FilePersistenceException
IFilePersistence
getNumberOfToGarbage in interface IFilePersistenceFilePersistenceException
public int getNumberOfDataRecord()
throws FilePersistenceException
IFilePersistence
getNumberOfDataRecord in interface IFilePersistenceFilePersistenceException
public int getNumberOfFreeRecord()
throws FilePersistenceException
IFilePersistence
getNumberOfFreeRecord in interface IFilePersistenceFilePersistenceException
public long usedSize()
throws FilePersistenceException
IFilePersistence
usedSize in interface IFilePersistenceFilePersistenceException
public long freeSize()
throws FilePersistenceException
IFilePersistence
freeSize in interface IFilePersistenceFilePersistenceException
public long totalSize()
throws FilePersistenceException
IFilePersistence
totalSize in interface IFilePersistenceFilePersistenceException
public int numberOfObjectState()
throws FilePersistenceException
numberOfObjectState in interface IFilePersistenceFilePersistenceException
public int getNumberOfModified()
throws FilePersistenceException
getNumberOfModified in interface IFilePersistenceFilePersistenceException
public int getNumberOfVisited()
throws FilePersistenceException
getNumberOfVisited in interface IFilePersistenceFilePersistenceException
public void checkIntegrity()
throws FilePersistenceException
IFilePersistence
checkIntegrity in interface IFilePersistenceFilePersistenceException
public java.lang.String getStorageFileName()
throws FilePersistenceException
getStorageFileName in interface IFilePersistenceFilePersistenceException
public java.lang.String getBackupFileName()
throws FilePersistenceException
getBackupFileName in interface IFilePersistenceFilePersistenceException
public java.lang.String getChangeFileName()
throws FilePersistenceException
getChangeFileName in interface IFilePersistenceFilePersistenceException
@Deprecated
public java.lang.Object copy(java.lang.Object sourceObject)
throws FilePersistenceException
IFilePersistenceIFilePersistence.deepCopy(Object)
copy in interface IFilePersistenceFilePersistenceException
public java.lang.Object deepCopy(java.lang.Object sourceObject)
throws FilePersistenceException
deepCopy in interface IFilePersistenceFilePersistenceException
public void xmlExport(java.lang.String directoryName,
java.lang.String temporaryDirectoryName,
boolean exportPersistedClassByteCode)
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
IFilePersistencedirectoryName directory
can also export byte code of class of persisted object
- Specified by:
xmlExport in interface IFilePersistence
- Parameters:
directoryName - directory name where store exporttemporaryDirectoryName - temporary directory name used to store temporary files while
exportingexportPersistedClassByteCode - true if export persisted class byte code
- Throws:
FilePersistenceException
FilePersistenceClassNotFoundException
FilePersistenceInvalidClassException
FilePersistenceDataCorruptedException
FilePersistenceNotSerializableException
public void xmlImport(java.lang.String directoryName)
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
IFilePersistencedirectoryName directory
- Specified by:
xmlImport in interface IFilePersistence
- Parameters:
directoryName - directory name where are stored exported data to import
- Throws:
FilePersistenceException
FilePersistenceClassNotFoundException
FilePersistenceInvalidClassException
FilePersistenceDataCorruptedException
FilePersistenceNotSerializableException
protected abstract void assertNoObjectStored()
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
FilePersistenceNotSerializableException
FilePersistenceDataCorruptedException
FilePersistenceInvalidClassException
FilePersistenceClassNotFoundException
FilePersistenceException
public void setClassLoader(java.lang.ClassLoader classLoader)
throws FilePersistenceException
IFilePersistence
setClassLoader in interface IFilePersistenceFilePersistenceException
public java.lang.ClassLoader getClassLoader()
throws FilePersistenceException
getClassLoader in interface IFilePersistenceFilePersistenceException
public java.lang.Object newProxyInstance(java.lang.Object object)
throws FilePersistenceException
newProxyInstance in interface IFilePersistenceobject - object to copy where all instance will be replaced by proxy
FilePersistenceException
public java.lang.Object newProxyInstance(java.lang.Class<?> objectClass,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] initargs)
throws FilePersistenceException
newProxyInstance in interface IFilePersistenceobjectClass - the object to create classparameterTypes - parameters type, see Class.getConstructor(Class...)initargs - the construction parameters, see
Constructor.newInstance(Object...)
FilePersistenceExceptionpublic void setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
IFilePersistenceStorableClass can be persisted
or not
setStoreOnlyMarkedStorable in interface IFilePersistence
public int getClassIdentifier(java.lang.Class<?> clazz)
throws FilePersistenceException,
FilePersistenceClassNotFoundException
getClassIdentifier in interface IFilePersistenceFilePersistenceException
FilePersistenceClassNotFoundExceptionpublic java.util.Collection<ClassInfo> allClassInformation()
allClassInformation in interface IFilePersistencepublic boolean isProxy(java.lang.Object object)
IFilePersistence
isProxy in interface IFilePersistenceobject - the object to test
public void keptInMemory(java.lang.String key,
java.lang.Object object)
throws FilePersistenceException
IFilePersistence
keptInMemory in interface IFilePersistencekey - key associated to the objectobject - the not persisted object kept in memory
FilePersistenceExceptionpublic java.lang.String keyOfObjectKeptInMemory(java.lang.Object object)
keyOfObjectKeptInMemory in interface IFilePersistenceobject - the not persisted object kept in memory
public void setRecordSaveActions(boolean recordActions)
IFilePersistenceIFilePersistence.getWritedSet()
setRecordSaveActions in interface IFilePersistencerecordActions - true to activate object write recordingpublic java.util.Set<java.lang.String> getWritedSet()
IFilePersistenceIFilePersistence.setRecordSaveActions(boolean)
getWritedSet in interface IFilePersistence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||