org.sourceforge.jemm.client
Class ObjectOperationsFacade

java.lang.Object
  extended by org.sourceforge.jemm.client.ObjectOperationsFacade
All Implemented Interfaces:
LockContextListener, MethodContextListener

public class ObjectOperationsFacade
extends java.lang.Object
implements MethodContextListener, LockContextListener

The main entry point for all JEMMObject operations once they have been decoded from the events.

Author:
Paul

Constructor Summary
ObjectOperationsFacade(ObjectDatabase db)
           
 
Method Summary
 void acquire(LockEvent e)
          Acquires the lock for an object
 void entityEntered(EntityEvent e)
          Called when an entity is entered and no other threads are using the entity.
 void entityExited(EntityEvent e)
          Finalize the object state completely and synchronize to the database.
 void methodEntered(MethodEvent m)
          Initialise the objects used by the method.
 void methodExited(MethodEvent m)
          Synchronize the state to the database.
 void release(LockEvent e)
          Release the lock for an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectOperationsFacade

public ObjectOperationsFacade(ObjectDatabase db)
Method Detail

entityEntered

public void entityEntered(EntityEvent e)
Description copied from interface: MethodContextListener
Called when an entity is entered and no other threads are using the entity.

Specified by:
entityEntered in interface MethodContextListener

entityExited

public void entityExited(EntityEvent e)
Finalize the object state completely and synchronize to the database.

Specified by:
entityExited in interface MethodContextListener

methodEntered

public void methodEntered(MethodEvent m)
Initialise the objects used by the method.

Specified by:
methodEntered in interface MethodContextListener

methodExited

public void methodExited(MethodEvent m)
Synchronize the state to the database.

Specified by:
methodExited in interface MethodContextListener

acquire

public void acquire(LockEvent e)
Acquires the lock for an object

Specified by:
acquire in interface LockContextListener

release

public void release(LockEvent e)
Release the lock for an object

Specified by:
release in interface LockContextListener


Copyright © 2009. All Rights Reserved.