com.javaranch.common
Class EntityEJB

java.lang.Object
  |
  +--com.javaranch.common.EJB
        |
        +--com.javaranch.common.EntityEJB

public abstract class EntityEJB
extends EJB

This class provides empty EntityBean methods.

- - - - - - - - - - - - - - - - -

Copyright (c) 1998-2004 Paul Wheaton

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Author:
Paul Wheaton

Field Summary
protected  EntityContext ctx
           
 
Constructor Summary
EntityEJB()
           
 
Method Summary
 void setEntityContext(EntityContext ctx)
          Implemented for you - you can access the context as "ctx".
 void unsetEntityContext()
          Implemented for you - "ctx" is set to null.
 
Methods inherited from class com.javaranch.common.EJB
ejbActivate, ejbPassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

protected EntityContext ctx
Constructor Detail

EntityEJB

public EntityEJB()
Method Detail

setEntityContext

public void setEntityContext(EntityContext ctx)
Implemented for you - you can access the context as "ctx".

If you override this method, you must set ctx appropriately or other methods in this class won't work correctly.


unsetEntityContext

public void unsetEntityContext()
Implemented for you - "ctx" is set to null.



Copyright ©2004 Paul Wheaton All Rights Reserved