@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, storedMutableEnumclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassIdentifier, getMutex, getObject, getObject, getObjects, isClosed, isOpened, objectKeySet, removeAllObject, removeObject, setEnumState, setObject, storedEnum, storedImmutableEnum, storedImmutableEnum, storedMutableEnum, storedMutableEnumpublic ExclusiveDataAccessSession(FilePersistence filePersistence)
public void open()
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
IDataAccessSessionCommonopen in interface IDataAccessSessionCommonFilePersistenceException - 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
IExclusiveDataAccessSessionclose in interface IExclusiveDataAccessSessionFilePersistenceException - 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 inconsistentFilePersistenceTooBigForSerializationExceptionpublic void close(EnumFilePersistenceCloseAction action) throws FilePersistenceException, FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException, FilePersistenceTooBigForSerializationException
public void save()
throws FilePersistenceException,
FilePersistenceInvalidClassException,
FilePersistenceNotSerializableException,
FilePersistenceClassNotFoundException,
FilePersistenceDataCorruptedException,
FilePersistenceTooBigForSerializationException
IExclusiveDataAccessSessionsave in interface IExclusiveDataAccessSessionFilePersistenceException - 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 inconsistentFilePersistenceTooBigForSerializationExceptionpublic IInstanceFactory getInstanceFactory()
getInstanceFactory in interface IExclusiveDataAccessSessionpublic Object newInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.