mnemosyne.core
Class PersistentObjectImpl

java.lang.Object
  |
  +--mnemosyne.core.PersistentObjectImpl
All Implemented Interfaces:
PersistentObject, java.io.Serializable

public class PersistentObjectImpl
extends java.lang.Object
implements PersistentObject, java.io.Serializable

// TODO - Review synchronization

Version:
$Id: PersistentObjectImpl.java,v 1.1.1.1 2004/08/07 06:41:11 charlesblaxland Exp $
See Also:
Serialized Form

Constructor Summary
PersistentObjectImpl(Guid guid, VersionManager versionMgr, Enhancer enhancer, Lock lock)
           
 
Method Summary
 void commit(Version versionToCommitAs)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object findTargetObject()
           
protected  java.lang.Object findTargetObject(boolean isForMutatingCall)
           
 java.lang.Object findWritableTargetObject()
           
 Guid getGuid()
           
 int hashCode()
           
 void initialize(java.lang.Object initialObject)
           
 void initializeAsNewObject(java.lang.Object initialObject)
           
 java.util.Set prepareForCommit()
           
protected  java.lang.Object readResolve()
           
 void rollback()
           
 void setMutableMethodsWorkaroundEnabled(boolean mutableMethodsWorkaroundEnabled)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentObjectImpl

public PersistentObjectImpl(Guid guid,
                            VersionManager versionMgr,
                            Enhancer enhancer,
                            Lock lock)
Method Detail

initialize

public void initialize(java.lang.Object initialObject)
Specified by:
initialize in interface PersistentObject

initializeAsNewObject

public void initializeAsNewObject(java.lang.Object initialObject)
Specified by:
initializeAsNewObject in interface PersistentObject

getGuid

public Guid getGuid()
Specified by:
getGuid in interface PersistentObject

findTargetObject

public java.lang.Object findTargetObject()
Specified by:
findTargetObject in interface PersistentObject

findWritableTargetObject

public java.lang.Object findWritableTargetObject()
Specified by:
findWritableTargetObject in interface PersistentObject

findTargetObject

protected java.lang.Object findTargetObject(boolean isForMutatingCall)

prepareForCommit

public java.util.Set prepareForCommit()
Specified by:
prepareForCommit in interface PersistentObject

commit

public void commit(Version versionToCommitAs)
Specified by:
commit in interface PersistentObject

rollback

public void rollback()
Specified by:
rollback in interface PersistentObject

readResolve

protected java.lang.Object readResolve()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setMutableMethodsWorkaroundEnabled

public void setMutableMethodsWorkaroundEnabled(boolean mutableMethodsWorkaroundEnabled)


Copyright © 2004 Charles Blaxland. All Rights Reserved.