public interface IObjectIOManagerForProxyObjectIO
Modifier and Type | Method and Description |
---|---|
ObjectAndPersistInfo |
createObjectPersistInfoOfObject(Object object,
Boolean proxyInstance,
ClassInfo objectClassInfo,
boolean persisted) |
ObjectAndPersistInfo |
createObjectPersistInfoOfObject(Object object,
boolean proxyInstance,
ClassInfo objectClassInfo,
DataRecordIdentifier dataRecordIdentifier) |
void |
dataRecordIdentifierAssociatedToObjectSetted(ObjectAndPersistInfo objectAndItsClassInfo) |
ClassInfoFactory |
getClassInfoFactory() |
long |
getCurrentFileAccessSessionIdentifier() |
ObjectAndPersistInfo |
getObjectAndPersistInfoOfObject(Object object) |
ObjectAndPersistInfo |
getOrCreateObjectPersistInfoOfObject(Object object,
Boolean proxyInstance,
boolean persisted)
Get existing, or create, object and its persistence information, for an
object.
|
ObjectAndPersistInfo |
getOrCreateObjectPersistInfoOfObject(Object object,
Boolean proxyInstance,
ClassInfo objectClassInfo,
boolean persisted)
Get existing, or create, object and its persistence information, for an
object.
|
ObjectAndPersistInfo |
getOrCreateObjectPersistInfoOfObject(Object object,
boolean proxyInstance,
ClassInfo objectClassInfo,
DataRecordIdentifier dataRecordIdentifier)
Get existing, or create, object and its persistence information, for an
object.
|
IProxyManagerForObjectIO |
getProxyManager2() |
JoafipMutex |
getStoreMutex()
get the mutex for storage file access
|
boolean |
isAutoSaveEnabled() |
boolean |
isExclusiveAccessSession() |
boolean |
isMaintainInMemoryEnabled() |
boolean |
isRunAutosaveEnableAndDisable() |
void |
newObjectLoaded() |
void |
objectIsAccessed(ObjectAndPersistInfo proxyObjectAndPersistInfo)
call when object is accessed
|
void |
setProxyObjectState(ObjectAndPersistInfo objectAndPersistInfo)
set proxy object state reading in file
|
void |
setRunAutosaveEnable(boolean runAutosaveEnable) |
void |
unsetProxyObjectState(ObjectAndPersistInfo objectAndItsClassInfo) |
ObjectAndPersistInfo getOrCreateObjectPersistInfoOfObject(Object object, boolean proxyInstance, ClassInfo objectClassInfo, DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException, ObjectIODataCorruptedException
object
- the object which for object and its persistence information is
askproxyInstance
- true if object is proxy instanceobjectClassInfo
- the class information of the objectdataRecordIdentifier
- the data record identifier to associate to the objectObjectIOException
ObjectIODataCorruptedException
ObjectAndPersistInfo createObjectPersistInfoOfObject(Object object, boolean proxyInstance, ClassInfo objectClassInfo, DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException
ObjectIOException
ObjectAndPersistInfo getOrCreateObjectPersistInfoOfObject(Object object, Boolean proxyInstance, ClassInfo objectClassInfo, boolean persisted) throws ObjectIOException, ObjectIODataCorruptedException
object
- the object which for object and its persistence information is
askproxyInstance
- true if object is proxy instance (use by creation only)objectClassInfo
- the class information of the objectpersisted
- true if object to be persistedObjectIOException
ObjectIODataCorruptedException
ObjectAndPersistInfo createObjectPersistInfoOfObject(Object object, Boolean proxyInstance, ClassInfo objectClassInfo, boolean persisted) throws ObjectIOException, ObjectIODataCorruptedException
ObjectAndPersistInfo getObjectAndPersistInfoOfObject(Object object) throws ObjectIOException
object
- ObjectIOException
ObjectAndPersistInfo getOrCreateObjectPersistInfoOfObject(Object object, Boolean proxyInstance, boolean persisted) throws ObjectIOException, ObjectIODataCorruptedException
object
- the object which for object and its persistence information is
askproxyInstance
- true if object is a proxy instance (use by creation only)persisted
- true if object to be persistedObjectIOException
ObjectIODataCorruptedException
void dataRecordIdentifierAssociatedToObjectSetted(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
ObjectIOException
JoafipMutex getStoreMutex()
long getCurrentFileAccessSessionIdentifier()
void setProxyObjectState(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo
- object that must be a proxyObjectIODataRecordNotFoundException
- data record for object not foundObjectIOException
- set object state errorObjectIOInvalidClassException
ObjectIODataCorruptedException
ObjectIOClassNotFoundException
ObjectIONotSerializableException
void newObjectLoaded() throws ObjectIOException
ObjectIOException
void unsetProxyObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException
IProxyManagerForObjectIO getProxyManager2()
ClassInfoFactory getClassInfoFactory()
boolean isExclusiveAccessSession()
boolean isMaintainInMemoryEnabled()
boolean isAutoSaveEnabled()
void objectIsAccessed(ObjectAndPersistInfo proxyObjectAndPersistInfo)
proxyObjectAndPersistInfo
- boolean isRunAutosaveEnableAndDisable()
void setRunAutosaveEnable(boolean runAutosaveEnable)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.