|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.scentral.PersistenceScheme_Serialization_Impl
Serialization persistence scheme. This scheme relies on serialization to save the state of each object into files. It is expected to be less flexible than JDBC. This is the poor man solution. See the JDBC implementation for a better alternative. Not tested after the package reorganization
| Field Summary |
| Fields inherited from interface edu.mssm.crover.scentral.PersistenceScheme |
OWNER_REFERENCE_ID, USER_SESSION_KIND |
| Constructor Summary | |
PersistenceScheme_Serialization_Impl()
|
|
| Method Summary | |
abstract UserSession |
createServiceUserSession(UserRecord ur)
|
void |
dropLibraryObjectReference(int object_id,
int reference_object_id,
UserRecord ur)
Drops a reference in the database to this object identified by object_id. |
protected java.lang.Object |
getInstance(java.lang.String name)
Get an instance from the storage directory. |
LibraryObjectInfo |
getLibraryObjectInfo(int kind,
int library_object_id,
UserRecord ur)
Get a LibraryObjectInfo for a given object kind with the given object ID. |
java.util.Collection |
getLibraryObjectsInfo(int kind,
UserRecord ur)
Get an enumeration of instance iterators for browsing purposes. |
abstract java.lang.String |
getSessionTableName()
|
UserSession |
getUserSession(UserRecord ur)
Returns a previously serialized object or a new one if none exists. |
void |
initialize(Log log)
Initialized a PersistenceScheme_Serialization_Impl. |
protected void |
saveInstance(java.lang.Object instance,
java.lang.String name)
Save an instance as a file in the storage directory. |
void |
saveUserSession(UserSession session)
Serializes the object in a file and keep track of it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.mssm.crover.scentral.PersistenceScheme |
userLogsIn |
| Constructor Detail |
public PersistenceScheme_Serialization_Impl()
| Method Detail |
public void initialize(Log log)
initialize in interface PersistenceSchemelog - The log system where warnings and errors are
reported.public abstract UserSession createServiceUserSession(UserRecord ur)
public abstract java.lang.String getSessionTableName()
public UserSession getUserSession(UserRecord ur)
getUserSession in interface PersistenceSchemepublic void saveUserSession(UserSession session)
saveUserSession in interface PersistenceSchemeprotected java.lang.Object getInstance(java.lang.String name)
protected void saveInstance(java.lang.Object instance,
java.lang.String name)
throws BadPersistentID
BadPersistentID
public void dropLibraryObjectReference(int object_id,
int reference_object_id,
UserRecord ur)
dropLibraryObjectReference in interface PersistenceScheme
public LibraryObjectInfo getLibraryObjectInfo(int kind,
int library_object_id,
UserRecord ur)
getLibraryObjectInfo in interface PersistenceSchemeLibraryObjectInfo
public java.util.Collection getLibraryObjectsInfo(int kind,
UserRecord ur)
getLibraryObjectsInfo in interface PersistenceSchemeLibraryObjectInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||