|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.joafip.service.AbstractDataAccessSession
net.sf.joafip.service.DataAccessSession
@NotStorableClass public class DataAccessSession
file persistence data access session
| Field Summary |
|---|
| Fields inherited from class net.sf.joafip.service.AbstractDataAccessSession |
|---|
filePersistence, mutex, opened |
| Method Summary | |
|---|---|
void |
addListener(IFilePersistenceCloseActionListener listener)
add a close action execution end listener |
EnumFilePersistenceCloseAction |
close(EnumFilePersistenceCloseAction action)
close data access session with a save action possible save actions EnumFilePersistenceCloseAction.SAVEask for save modification, can be canceled by not save action by other data access session close. |
EnumFilePersistenceCloseAction |
closeAndWait(EnumFilePersistenceCloseAction action)
as IDataAccessSession.close(EnumFilePersistenceCloseAction), but wait for effective
execution of action |
void |
fireActionDone(EnumFilePersistenceCloseAction action)
fire close action done notification |
void |
open()
open this data access session, not synchronized with other session |
void |
openSynchronized()
open this data access session, synchronized with other session: will wait for other session closed ( blocking ) |
void |
removeListener(IFilePersistenceCloseActionListener listener)
remove a close action execution end listener |
| Methods inherited from class net.sf.joafip.service.AbstractDataAccessSession |
|---|
assertClosed, assertOpened, assertPersistenceOpenned, getClassIdentifier, getObject, getObjects, isClosed, isOpened, objectKeySet, removeObject, setCloserTrace, setEnumState, setObject, setOpenerTrace, storedEnum |
| 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.IDataAccessSessionCommon |
|---|
getClassIdentifier, getObject, getObjects, isClosed, isOpened, objectKeySet, removeObject, setEnumState, setObject, storedEnum |
| Method Detail |
|---|
public void open()
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
IDataAccessSessionCommon
open in interface IDataAccessSessionCommonFilePersistenceException - failed read root object, session close pending can not reopen
FilePersistenceClassNotFoundException - Class of a serialized object cannot be found.
FilePersistenceInvalidClassException - something is wrong with a class used by serialization
FilePersistenceDataCorruptedException - 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 openSynchronized()
throws FilePersistenceException,
FilePersistenceClassNotFoundException,
FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException
IDataAccessSession
openSynchronized in interface IDataAccessSessionFilePersistenceException - failed read root object, session close pending can not reopen
FilePersistenceClassNotFoundException - Class of a serialized object cannot be found.
FilePersistenceInvalidClassException - something is wrong with a class used by serialization
FilePersistenceDataCorruptedException - 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 EnumFilePersistenceCloseAction close(EnumFilePersistenceCloseAction action)
throws FilePersistenceException,
FilePersistenceInvalidClassException,
FilePersistenceNotSerializableException,
FilePersistenceClassNotFoundException,
FilePersistenceDataCorruptedException
IDataAccessSessionEnumFilePersistenceCloseAction.SAVEEnumFilePersistenceCloseAction.DO_NOT_SAVE
close in interface IDataAccessSessionaction - close action
FilePersistenceException - session not registered as opened session, no file in stable
state, file state restored to stable, file persistence is not
opened
FilePersistenceInvalidClassException - something is wrong with a class used by serialization
FilePersistenceNotSerializableException - 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 inconsistent
public EnumFilePersistenceCloseAction closeAndWait(EnumFilePersistenceCloseAction action)
throws FilePersistenceException,
FilePersistenceInvalidClassException,
FilePersistenceNotSerializableException,
FilePersistenceClassNotFoundException,
FilePersistenceDataCorruptedException
IDataAccessSessionIDataAccessSession.close(EnumFilePersistenceCloseAction), but wait for effective
execution of action
closeAndWait in interface IDataAccessSessionaction - close action
FilePersistenceException - session not registered as opened session, no file in stable
state, file state restored to stable, file persistence is not
opened, close wait interrupted
FilePersistenceInvalidClassException - something is wrong with a class used by serialization
FilePersistenceNotSerializableException - 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 inconsistentpublic void addListener(IFilePersistenceCloseActionListener listener)
IDataAccessSession
addListener in interface IDataAccessSessionlistener - close action execution end listenerpublic void removeListener(IFilePersistenceCloseActionListener listener)
IDataAccessSession
removeListener in interface IDataAccessSessionlistener - close action execution end listenerpublic void fireActionDone(EnumFilePersistenceCloseAction action)
IDASFilePersistenceCallBack
fireActionDone in interface IDASFilePersistenceCallBackaction - the action executed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||