public interface IFilePersistence
Modifier and Type | Method and Description |
---|---|
void |
addProhibitedPackage(String packageName)
Add a prohibited package.
|
void |
addToNotCheckMethod(Class<?> clazz) |
void |
addToNotCheckMethod(Constructor<?> constructor) |
void |
addToNotCheckMethod(Method method) |
void |
addToNotCheckMethod(String objectClassName,
String absoluteMethodName) |
Collection<ClassInfo> |
allClassInformation() |
void |
autoSaveSetup(int maxInMemoryThreshold)
(PROPS) can be set using properties file see
FilePersistence.FilePersistence(String, boolean) |
ClassInfo |
classInfoOfObject(Object object) |
Class<?> |
classOfObject(Object object) |
void |
clear()
clear all persisted data
|
void |
close()
close ( important to close files )
do not save modification |
Object |
copy(Object sourceObject)
Deprecated.
|
IAloneDataAccessSession |
createAloneDataAccessSession()
Deprecated.
|
IDataAccessSession |
createDataAccessSession() |
IExclusiveDataAccessSession |
createExclusiveDataAccessSession() |
Object |
deepCopy(Object sourceObject,
boolean forceLoad)
deep copy of object, useful to detach from persistence ( proxy object to
non-proxy, detached state if use java agent )
|
void |
disableBackgroundGarbageSweep()
disable background garbage sweep operation
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
enableBackgroundGarbageSweep(int sleepTime)
enable background garbage sweep operation
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
long |
freeSize()
get number of free bytes in data file
|
int |
garbageSweep(String filePath)
garbage sweep, remove data record for object not attached to root
should be call only when session closed |
int |
getClassIdentifier(Class<?> clazz) |
ClassLoader |
getClassLoader() |
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 |
getNumberOfObjectExported() |
int |
getNumberOfObjectState() |
int |
getNumberOfReferenced() |
int |
getNumberOfToGarbage()
get the number of record to garbage
|
int |
getNumberOfVisited() |
int |
getNumberOfWeakReference() |
URL |
getResource(String resourceName) |
String |
getStorageFileName() |
Set<String> |
getVisitedObjectSet()
|
List<String> |
getWroteArrays()
|
Map<String,MutableInteger> |
getWroteObjectSet()
|
boolean |
isAutoSaveEnabled() |
boolean |
isClosed() |
boolean |
isGarbageManagement() |
boolean |
isOpened() |
boolean |
isProxy(Object object)
to know if object is a proxy
|
void |
keptInMemory(String key,
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 (PROPS) can not be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
String |
keyOfObjectKeptInMemory(Object object) |
ClassInfo |
knownAsNotExisting(String className)
declare a class known as not existing
|
void |
maintainInMemorySetup(int maintainedInMemoryQuota)
(PROPS) can be set using properties file see
FilePersistence.FilePersistence(String, boolean) |
Object |
newProxyInstance(Class<?> objectClass) |
Object |
newProxyInstance(Class<?> objectClass,
Class<?>[] parameterTypes,
Object[] initargs)
|
Object |
newProxyInstance(Object object)
deep copy where all copy object are proxied if not enhanced by java agent
see FilePersistence.targetCause(Exception) |
void |
referencedByPesistedStaticField(Class<?> classHavingStaticFieldReferenced)
instance referenced by static field of class are kept in memory
|
void |
referencedByPesistedStaticField(Class<?>[] classHavingStaticFieldReferenced)
instance referenced by static field of classes are kept in memory
|
void |
removeWriteSubstitution(Class<?> replaced) |
void |
removeWriteSubstitution(String replacedName) |
void |
setAutoSaveEnabled(boolean enabled)
set auto save enabled
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean) |
void |
setAutoSaveEventListener(IAutoSaveEventListener saveEventListener)
set save event listener
|
void |
setChangeLogEnabled(boolean enabled,
int maxNumberOfChangeLog)
set enable state of file change logging
(PROPS) can not be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setClassLoader(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 |
void |
setDeprecatedInStore(Class<?> objectClass)
mark class to be deprecated in store, may exist in store but will not be
write more
if class not accessible use setDeprecatedInStore(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setDeprecatedInStore(Class<?>[] objectClasses)
mark class to be deprecated in store, may exist in store but will not be
write more
setDeprecatedInStore(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setDeprecatedInStore(String objectClassName)
mark class to be deprecated in store, may exist in store but will not be
write more
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setDeprecatedInStore(String[] objectClassNames)
mark class to be deprecated in store, may exist in store but will not be
write more
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setExportListener(IExporterListener listener) |
void |
setForceEnhance(Class<?> objectClass)
force class to be enhanced even if have public method if class not
accessible see
setForceEnhance(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setForceEnhance(Class<?>[] objectClasses)
force classes to be enhanced even if have public method if class not
accessible see
setForceEnhance(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setForceEnhance(String objectClassName)
force class to be enhanced even if have public method
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setForceEnhance(String[] objectClassNames)
force classes to be enhanced even if have public method
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setGarbageListener(IGarbageListener listener)
set garbage listener
(PROPS) can not be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setImportListener(IImportListener listener) |
void |
setMaintainedInMemoryEnabled(boolean enabled)
(PROPS) can be set using properties file see
FilePersistence.FilePersistence(String, boolean) |
void |
setNoLazyLoad(Class<?> objectClass)
set no use of lazy load for a class
if class not accessible see setNoLazyLoad(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNoLazyLoad(Class<?>[] objectClasses)
set no use of lazy load for the classes
if class not accessible see setNoLazyLoad(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNoLazyLoad(String objectClassName)
set no use of lazy load for a class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNoLazyLoad(String[] objectClassNames)
set no use of lazy load for the classes
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNotPersistedField(Class<?> clazz,
String[] fieldNames) |
void |
setNotPersistedField(String objectClassName,
String[] fieldNames) |
void |
setNotStorable(Class<?> objectClass)
mark class to be not storable
if class not accessible use setNotStorable(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNotStorable(Class<?>[] objectClasses)
mark classes to be not storable if class not accessible use
setNotStorable(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNotStorable(String objectClassName)
mark class to be not storable
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setNotStorable(String[] objectClassNames)
mark classes to be not storable
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setObjectIOForClass(Class<?> objectClass,
Class<? extends IObjectInput> objectInputClass,
Class<? extends IObjectOutput> objectOutputClass)
set object input output manager for a class
if class not accessible see #setObjectIOForClass(String, Class) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setObjectIOForClass(String objectClassName,
Class<? extends IObjectInput> objectInputClass,
Class<? extends IObjectOutput> objectOutputClass)
set object input output manager for a class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setRecordSaveActions(boolean recordActions)
activation of object write recording when saving see
getWroteObjectSet() and getVisitedObjectSet() (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setRecordSaveActions(boolean recordActions,
ISaveRecordActionListener saveRecordActionListener) |
void |
setSaveRecordActionListener(ISaveRecordActionListener saveRecordActionListener) |
void |
setStorable(Class<?> objectClass)
mark class to be storable
if class not accessible use setStorable(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStorable(Class<?>[] objectClasses)
mark classes to be storable if class not accessible use
setStorable(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStorable(String objectClassName)
mark class to be storable
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStorable(String[] objectClassNames)
mark classes to be storable
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreNotUseStandardSerialization(Class<?> objectClass)
set not use standard serialization for a serializable class
if class not accessible see setStoreNotUseStandardSerialization(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreNotUseStandardSerialization(Class<?>[] objectClasses)
set not use standard serialization for a serializable classes if class
not accessible see
setStoreNotUseStandardSerialization(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreNotUseStandardSerialization(String objectClassName)
set not use standard serialization for a serializable class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreNotUseStandardSerialization(String[] objectClassNames)
set not use standard serialization for a serializable classes
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
to specify if only class marked by
StorableClass can be persisted
or not |
void |
setStoreSerializeAndGZippedInOneRecord(Class<?> objectClass)
set storage mode serialized and GZipped for a serializable class
if class not accessible see setStoreSerializeAndGZippedInOneRecord(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndGZippedInOneRecord(Class<?>[] objectClasses)
set storage mode serialized and GZipped for a serializable classes if
class not accessible see
setStoreSerializeAndGZippedInOneRecord(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndGZippedInOneRecord(String objectClassName)
set storage mode serialized and GZipped for a serializable class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndGZippedInOneRecord(String[] objectClassNames)
set storage mode serialized and GZipped for a serializable classes
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndZippedInOneRecord(Class<?> objectClass)
set storage mode serialized and Zipped for a serializable class
if class is not accessible see setStoreSerializeAndZippedInOneRecord(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndZippedInOneRecord(Class<?>[] objectClasses)
set storage mode serialized and Zipped for a serializable classes if
class is not accessible see
setStoreSerializeAndZippedInOneRecord(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndZippedInOneRecord(String objectClassName)
set storage mode serialized and Zipped for a serializable class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeAndZippedInOneRecord(String[] objectClassNames)
set storage mode serialized and Zipped for a serializable classes
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeInOneRecord(Class<?> objectClass)
set storage mode serialized for a serializable class
if class is not accessible see setStoreSerializeInOneRecord(String) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeInOneRecord(Class<?>[] objectClasses)
set storage mode serialized for a serializable classes
if class is not accessible see setStoreSerializeInOneRecord(String[]) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeInOneRecord(String objectClassName)
set storage mode serialized for a serializable class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setStoreSerializeInOneRecord(String[] objectClassNames)
set storage mode serialized for a serializable classes
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setSubstituteObjectManager(Class<?> objectClass,
Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
set substitution for object of a class writing and reading
if class is not accessible see setSubstituteObjectManager(String, Class, ISubstituteObjectManager)
|
void |
setSubstituteObjectManager(String objectClassName,
Class<?> substituteObjectClass,
ISubstituteObjectManager substituteObjectManager)
set substitution for object of a class writing and reading
|
void |
setSubstitutionOfJavaUtilCollection(boolean enabled)
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 (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setWriteSubstitution(Class<?> replaced,
Class<?> substitute,
ISubsituteSynchronizer synchronizer)
record a class substitution at write
if class is not accessible see setWriteSubstitution(String, Class, ISubsituteSynchronizer) (PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setWriteSubstitution(String replacedName,
Class<?> substitute,
ISubsituteSynchronizer synchronizer)
record a class substitution at write
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
setZipCompressionLevel(int zipCompressionLevel)
set the compression level for class annotated
StoreSerializeAndZippedInOneRecord or defined using
setStoreSerializeAndZippedInOneRecord(Class) or
setStoreSerializeAndZippedInOneRecord(Class[]) the compression level have value 0 thru 9: #NO_COMPRESSION
#BEST_SPEED
.... |
void |
storedEnum(Class<? extends Enum<?>> enumClass)
Deprecated.
|
void |
storedEnum(Class<? extends Enum<?>>[] enumClasses)
Deprecated.
|
void |
storedEnum(Enum<?> enumObject)
Deprecated.
|
void |
storedImmutableEnum(Class<? extends Enum<?>> enumClass)
declare persisted immutable enum by its class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
storedImmutableEnum(Class<? extends Enum<?>>[] enumClasses)
declare persisted immutable enum by their class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
storedMutableEnum(Class<? extends Enum<?>> enumClass)
declare persisted mutable enum by its class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
void |
storedMutableEnum(Class<? extends Enum<?>>[] enumClasses)
declare persisted mutable enum by their class
(PROPS) can be set using properties file see FilePersistence.FilePersistence(String, boolean)
|
long |
totalSize()
get total size of data file
|
void |
usedForClassNameManagement(Set<DataRecordIdentifier> setToUpdate) |
long |
usedSize()
get number of bytes used to store data in data file
|
void |
xmlExport(String directoryName,
String temporaryDirectoryName,
boolean exportPersistedClassByteCode)
export persisted data in file export.xml put in
directoryName |
void |
xmlImport(String directoryName,
boolean validating)
import from exported data in
directoryName |
void setChangeLogEnabled(boolean enabled, int maxNumberOfChangeLog) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enabled
- true if change log enabledmaxNumberOfChangeLog
- max number of state change logFilePersistenceException
void setZipCompressionLevel(int zipCompressionLevel) throws FilePersistenceException
StoreSerializeAndZippedInOneRecord
or defined using
setStoreSerializeAndZippedInOneRecord(Class)
or
setStoreSerializeAndZippedInOneRecord(Class[])
#NO_COMPRESSION
#BEST_SPEED
#BEST_COMPRESSION
FilePersistence.FilePersistence(String, boolean)
zipCompressionLevel
- the zip the compression level (0-9) for object storing using
zipped serializationFilePersistenceException
void setGarbageListener(IGarbageListener listener) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
listener
- the garbage listener, can be null to remove previous oneFilePersistenceException
void setSubstitutionOfJavaUtilCollection(boolean enabled) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enabled
- FilePersistenceException
void setWriteSubstitution(Class<?> replaced, Class<?> substitute, ISubsituteSynchronizer synchronizer) throws FilePersistenceException
setWriteSubstitution(String, Class, ISubsituteSynchronizer)
FilePersistence.FilePersistence(String, boolean)
replaced
- the replaced classsubstitute
- the substitute for the replaced classsynchronizer
- the state synchronizer for class and its substituteFilePersistenceException
void removeWriteSubstitution(Class<?> replaced) throws FilePersistenceException
FilePersistenceException
void setWriteSubstitution(String replacedName, Class<?> substitute, ISubsituteSynchronizer synchronizer) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
replacedName
- the replaced class by its namesubstitute
- the substitute for the replaced classsynchronizer
- the state synchronizer for class and its substituteFilePersistenceException
void removeWriteSubstitution(String replacedName) throws FilePersistenceException, FilePersistenceClassNotFoundException
void setNoLazyLoad(Class<?> objectClass) throws FilePersistenceException
setNoLazyLoad(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setNoLazyLoad(Class<?>[] objectClasses) throws FilePersistenceException
setNoLazyLoad(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setNoLazyLoad(String objectClassName)
FilePersistence.FilePersistence(String, boolean)
objectClassName
- void setNoLazyLoad(String[] objectClassNames)
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- void setStoreNotUseStandardSerialization(Class<?> objectClass) throws FilePersistenceException
setStoreNotUseStandardSerialization(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setStoreNotUseStandardSerialization(Class<?>[] objectClasses) throws FilePersistenceException
setStoreNotUseStandardSerialization(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setStoreNotUseStandardSerialization(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setStoreNotUseStandardSerialization(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setStoreSerializeAndGZippedInOneRecord(Class<?> objectClass) throws FilePersistenceException
setStoreSerializeAndGZippedInOneRecord(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setStoreSerializeAndGZippedInOneRecord(Class<?>[] objectClasses) throws FilePersistenceException
setStoreSerializeAndGZippedInOneRecord(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setStoreSerializeAndGZippedInOneRecord(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setStoreSerializeAndGZippedInOneRecord(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setStoreSerializeAndZippedInOneRecord(Class<?> objectClass) throws FilePersistenceException
setStoreSerializeAndZippedInOneRecord(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setStoreSerializeAndZippedInOneRecord(Class<?>[] objectClasses) throws FilePersistenceException
setStoreSerializeAndZippedInOneRecord(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setStoreSerializeAndZippedInOneRecord(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setStoreSerializeAndZippedInOneRecord(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setStoreSerializeInOneRecord(Class<?> objectClass) throws FilePersistenceException
setStoreSerializeInOneRecord(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setStoreSerializeInOneRecord(Class<?>[] objectClasses) throws FilePersistenceException
setStoreSerializeInOneRecord(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setStoreSerializeInOneRecord(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setStoreSerializeInOneRecord(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setStorable(Class<?> objectClass) throws FilePersistenceException
setStorable(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setStorable(Class<?>[] objectClasses) throws FilePersistenceException
setStorable(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setStorable(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setStorable(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setNotStorable(Class<?> objectClass) throws FilePersistenceException
setNotStorable(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setNotStorable(Class<?>[] objectClasses) throws FilePersistenceException
setNotStorable(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setNotStorable(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setNotStorable(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setDeprecatedInStore(Class<?> objectClass) throws FilePersistenceException
setDeprecatedInStore(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setDeprecatedInStore(Class<?>[] objectClasses) throws FilePersistenceException
setDeprecatedInStore(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setDeprecatedInStore(String objectClassName) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- FilePersistenceException
void setDeprecatedInStore(String[] objectClassNames) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- FilePersistenceException
void setForceEnhance(Class<?> objectClass) throws FilePersistenceException
setForceEnhance(String)
FilePersistence.FilePersistence(String, boolean)
objectClass
- FilePersistenceException
void setForceEnhance(Class<?>[] objectClasses) throws FilePersistenceException
setForceEnhance(String[])
FilePersistence.FilePersistence(String, boolean)
objectClasses
- FilePersistenceException
void setForceEnhance(String objectClassName)
FilePersistence.FilePersistence(String, boolean)
objectClassName
- void setForceEnhance(String[] objectClassNames)
FilePersistence.FilePersistence(String, boolean)
objectClassNames
- void addProhibitedPackage(String packageName)
packageName
- void addToNotCheckMethod(Class<?> clazz)
void addToNotCheckMethod(Method method)
void addToNotCheckMethod(Constructor<?> constructor)
void setObjectIOForClass(Class<?> objectClass, Class<? extends IObjectInput> objectInputClass, Class<? extends IObjectOutput> objectOutputClass) throws FilePersistenceException
#setObjectIOForClass(String, Class)
FilePersistence.FilePersistence(String, boolean)
objectClass
- the class for which is provide the object input outputobjectInputClass
- object input manager class for the classobjectOutputClass
- object output manager class for the classFilePersistenceException
- object I/O construction failurevoid setObjectIOForClass(String objectClassName, Class<? extends IObjectInput> objectInputClass, Class<? extends IObjectOutput> objectOutputClass) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
objectClassName
- the class by its name for which is provide the object input
outputobjectInputClass
- object input manager class for the classobjectOutputClass
- object output manager class for the classFilePersistenceException
- object I/O construction failurevoid storedMutableEnum(Class<? extends Enum<?>>[] enumClasses) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClasses
- FilePersistenceException
void setImportListener(IImportListener listener)
void storedMutableEnum(Class<? extends Enum<?>> enumClass) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClass
- the enum classFilePersistenceException
void storedImmutableEnum(Class<? extends Enum<?>>[] enumClasses) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClasses
- FilePersistenceException
void storedImmutableEnum(Class<? extends Enum<?>> enumClass) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClass
- the enum classFilePersistenceException
@Deprecated void storedEnum(Class<? extends Enum<?>>[] enumClasses) throws FilePersistenceException
storedMutableEnum(Class[])
FilePersistence.FilePersistence(String, boolean)
enumClasses
- the enum classesFilePersistenceException
@Deprecated void storedEnum(Class<? extends Enum<?>> enumClass) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClass
- the enum classFilePersistenceException
@Deprecated void storedEnum(Enum<?> enumObject) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enumClass
- the enum classFilePersistenceException
boolean isGarbageManagement() throws FilePersistenceException
FilePersistenceException
int garbageSweep(String filePath) throws FilePersistenceException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException
filePath
- temporary file for data record identifier setFilePersistenceException
FilePersistenceClassNotFoundException
FilePersistenceDataCorruptedException
void enableBackgroundGarbageSweep(int sleepTime) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
sleepTime
- sleep time between garbage sweep operationFilePersistenceException
void disableBackgroundGarbageSweep() throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
FilePersistenceException
int getNumberOfGarbageCandidate() throws FilePersistenceException
FilePersistenceException
int getNumberOfToGarbage() throws FilePersistenceException
FilePersistenceException
int getNumberOfDataRecord() throws FilePersistenceException
FilePersistenceException
int getNumberOfFreeRecord() throws FilePersistenceException
FilePersistenceException
long usedSize() throws FilePersistenceException
FilePersistenceException
long freeSize() throws FilePersistenceException
FilePersistenceException
long totalSize() throws FilePersistenceException
FilePersistenceException
int getNumberOfObjectState() throws FilePersistenceException
FilePersistenceException
int getNumberOfWeakReference() throws FilePersistenceException
FilePersistenceException
int getNumberOfReferenced() throws FilePersistenceException
FilePersistenceException
int getNumberOfModified() throws FilePersistenceException
FilePersistenceException
int getNumberOfVisited() throws FilePersistenceException
FilePersistenceException
String getStorageFileName() throws FilePersistenceException
FilePersistenceException
void setAutoSaveEventListener(IAutoSaveEventListener saveEventListener)
saveEventListener
- the save event listenerIDataAccessSession createDataAccessSession() throws FilePersistenceException
FilePersistenceException
@Deprecated IAloneDataAccessSession createAloneDataAccessSession() throws FilePersistenceException
FilePersistenceException
IExclusiveDataAccessSession createExclusiveDataAccessSession() throws FilePersistenceException
FilePersistenceException
void clear() throws FilePersistenceException, FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException
@Deprecated Object copy(Object sourceObject) throws FilePersistenceException
#deepCopy(Object)
sourceObject
- FilePersistenceException
Object deepCopy(Object sourceObject, boolean forceLoad) throws FilePersistenceException
sourceObject
- forceLoad
- true if force proxy loading before copyFilePersistenceException
void xmlExport(String directoryName, String temporaryDirectoryName, boolean exportPersistedClassByteCode) throws FilePersistenceException, FilePersistenceClassNotFoundException, FilePersistenceInvalidClassException, FilePersistenceDataCorruptedException, FilePersistenceNotSerializableException, FilePersistenceTooBigForSerializationException
directoryName directory
can also export byte code of class of persisted object
directoryName
- directory name where store exporttemporaryDirectoryName
- temporary directory name used to store temporary files while
exportingexportPersistedClassByteCode
- true if export persisted class byte codeFilePersistenceException
FilePersistenceClassNotFoundException
FilePersistenceInvalidClassException
FilePersistenceDataCorruptedException
FilePersistenceNotSerializableException
FilePersistenceTooBigForSerializationException
void setExportListener(IExporterListener listener)
int getNumberOfObjectExported()
void xmlImport(String directoryName, boolean validating) throws FilePersistenceException, FilePersistenceClassNotFoundException, FilePersistenceInvalidClassException, FilePersistenceDataCorruptedException, FilePersistenceNotSerializableException
directoryName directory
directoryName
- directory name where are stored exported data to importvalidating
- FilePersistenceException
FilePersistenceClassNotFoundException
FilePersistenceInvalidClassException
FilePersistenceDataCorruptedException
FilePersistenceNotSerializableException
void setClassLoader(ClassLoader classLoader) throws FilePersistenceException
classLoader
- FilePersistenceException
ClassLoader getClassLoader() throws FilePersistenceException
FilePersistenceException
URL getResource(String resourceName) throws MalformedURLException
MalformedURLException
Object newProxyInstance(Object object) throws FilePersistenceException
FilePersistence.targetCause(Exception)
object
- object to copy where all instance will be replaced by proxyFilePersistenceException
Object newProxyInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs) throws FilePersistenceException
objectClass
- the class of the object to createparameterTypes
- parameters type, see
Class.getConstructor(Class...)
initargs
- the construction parameters, see
Constructor.newInstance(Object...)
FilePersistenceException
Object newProxyInstance(Class<?> objectClass) throws FilePersistenceException
FilePersistenceException
void setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
StorableClass
can be persisted
or notstoreOnlyMarkedStorable
- void setSubstituteObjectManager(Class<?> objectClass, Class<?> substituteObjectClass, ISubstituteObjectManager substituteObjectManager) throws FilePersistenceException
setSubstituteObjectManager(String, Class, ISubstituteObjectManager)
objectClass
- the class of object to substitutesubstituteObjectClass
- the substitute object classsubstituteObjectManager
- the substitute manager to useFilePersistenceException
void setSubstituteObjectManager(String objectClassName, Class<?> substituteObjectClass, ISubstituteObjectManager substituteObjectManager) throws FilePersistenceException
objectClassName
- the class by its name of object to substitutesubstituteObjectClass
- the substitute object classsubstituteObjectManager
- the substitute manager to useFilePersistenceException
void setNotPersistedField(Class<?> clazz, String[] fieldNames) throws FilePersistenceException
clazz
- fieldNames
- FilePersistenceException
void setNotPersistedField(String objectClassName, String[] fieldNames) throws FilePersistenceException
objectClassName
- fieldNames
- FilePersistenceException
int getClassIdentifier(Class<?> clazz) throws FilePersistenceException, FilePersistenceClassNotFoundException
clazz
- FilePersistenceException
FilePersistenceClassNotFoundException
Collection<ClassInfo> allClassInformation()
boolean isProxy(Object object)
object
- the object to testvoid keptInMemory(String key, Object object) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
key
- key associated to the objectobject
- the not persisted object kept in memoryFilePersistenceException
void referencedByPesistedStaticField(Class<?> classHavingStaticFieldReferenced) throws FilePersistenceException
classHavingStaticFieldReferenced
- FilePersistenceException
void referencedByPesistedStaticField(Class<?>[] classHavingStaticFieldReferenced) throws FilePersistenceException
classHavingStaticFieldReferenced
- FilePersistenceException
String keyOfObjectKeptInMemory(Object object)
object
- the not persisted object kept in memoryvoid setRecordSaveActions(boolean recordActions)
getWroteObjectSet()
and getVisitedObjectSet()
FilePersistence.FilePersistence(String, boolean)
recordActions
- true to activate object write recordingvoid setRecordSaveActions(boolean recordActions, ISaveRecordActionListener saveRecordActionListener)
void setSaveRecordActionListener(ISaveRecordActionListener saveRecordActionListener)
Map<String,MutableInteger> getWroteObjectSet()
void setMaintainedInMemoryEnabled(boolean enabled)
FilePersistence.FilePersistence(String, boolean)
enabled
- true if enable maintain object in memory after save. see
maintainInMemorySetup(int)
void maintainInMemorySetup(int maintainedInMemoryQuota)
FilePersistence.FilePersistence(String, boolean)
maintainedInMemoryQuota
- maximum object maintained in memory ( not unload ) after a
savevoid setAutoSaveEnabled(boolean enabled) throws FilePersistenceException
FilePersistence.FilePersistence(String, boolean)
enabled
- true if auto save enabled for exclusive data access session.
see autoSaveSetup(int)
FilePersistenceException
boolean isAutoSaveEnabled()
void autoSaveSetup(int maxInMemoryThreshold)
FilePersistence.FilePersistence(String, boolean)
maxInMemoryThreshold
- maximum loaded object limit, save done when threshold is reachClassInfo knownAsNotExisting(String className) throws FilePersistenceClassNotFoundException, FilePersistenceException
className
- the class nameFilePersistenceClassNotFoundException
FilePersistenceException
Class<?> classOfObject(Object object) throws FilePersistenceException
object
- FilePersistenceException
ClassInfo classInfoOfObject(Object object) throws FilePersistenceException
FilePersistenceException
void usedForClassNameManagement(Set<DataRecordIdentifier> setToUpdate) throws FilePersistenceException
FilePersistenceException
void close() throws FilePersistenceException
FilePersistenceException
boolean isClosed()
boolean isOpened()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.