@NotStorableClass @NoStorableAccess public class ExclusiveDataAccessSession extends AbstractDataAccessSession implements IExclusiveDataAccessSession
CLOSE_ERROR, filePersistence, logger, mutex, OPEN_ERROR, opened, opening
Constructor and Description |
---|
ExclusiveDataAccessSession(FilePersistence filePersistence) |
Modifier and Type | Method and Description |
---|---|
void |
close()
saving close
|
void |
close(EnumFilePersistenceCloseAction action) |
IInstanceFactory |
getInstanceFactory() |
Object |
newInstance(Class<?> objectClass) |
Object |
newInstance(Class<?> objectClass,
Class<?>[] parameterTypes,
Object[] initargs) |
void |
open()
open this data access session, not synchronized with other session
|
void |
save()
save objects, session keep opened
|
assertClosed, assertOpened, assertPersistenceOpenned, getClassIdentifier, getMutex, getObject, getObject, getObjects, isClosed, isOpened, objectKeySet, removeAllObject, removeObject, setCloserTrace, setEnumState, setObject, setOpenerTrace, storedEnum, storedImmutableEnum, storedImmutableEnum, storedMutableEnum, storedMutableEnum
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassIdentifier, getMutex, getObject, getObject, getObjects, isClosed, isOpened, objectKeySet, removeAllObject, removeObject, setEnumState, setObject, storedEnum, storedImmutableEnum, storedImmutableEnum, storedMutableEnum, storedMutableEnum
public ExclusiveDataAccessSession(FilePersistence filePersistence)
public void open() throws FilePersistenceException, FilePersistenceClassNotFoundException, FilePersistenceInvalidClassException, FilePersistenceDataCorruptedException, FilePersistenceNotSerializableException
IDataAccessSessionCommon
open
in interface IDataAccessSessionCommon
FilePersistenceException
- failed read root object, session close pending can not reopenFilePersistenceClassNotFoundException
- Class of a serialized object cannot be found.FilePersistenceInvalidClassException
- something is wrong with a class used by serializationFilePersistenceDataCorruptedException
- data is inconsistent.FilePersistenceNotSerializableException
- Some object to be serialized does not follow joafip
persistence rules or does not implement the
java.io.Serializable interface.public void close() throws FilePersistenceException, FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException, FilePersistenceTooBigForSerializationException
IExclusiveDataAccessSession
close
in interface IExclusiveDataAccessSession
FilePersistenceException
- session not registered as opened session, no file in stable
state, file state restored to stable, file persistence is not
openedFilePersistenceInvalidClassException
- something is wrong with a class used by serializationFilePersistenceNotSerializableException
- Some object to be serialized does not follow joafip
persistence rules or does not implement the
java.io.Serializable interface.FilePersistenceClassNotFoundException
- Class of a serialized object cannot be found.FilePersistenceDataCorruptedException
- data is inconsistentFilePersistenceTooBigForSerializationException
public void close(EnumFilePersistenceCloseAction action) throws FilePersistenceException, FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException, FilePersistenceTooBigForSerializationException
public void save() throws FilePersistenceException, FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException, FilePersistenceTooBigForSerializationException
IExclusiveDataAccessSession
save
in interface IExclusiveDataAccessSession
FilePersistenceException
- session not registered as opened session, no file in stable
state, file state restored to stable, file persistence is not
openedFilePersistenceInvalidClassException
- something is wrong with a class used by serializationFilePersistenceNotSerializableException
- Some object to be serialized does not follow joafip
persistence rules or does not implement the
java.io.Serializable interface.FilePersistenceClassNotFoundException
- Class of a serialized object cannot be found.FilePersistenceDataCorruptedException
- data is inconsistentFilePersistenceTooBigForSerializationException
public IInstanceFactory getInstanceFactory()
getInstanceFactory
in interface IExclusiveDataAccessSession
public Object newInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.