Name
EntityContext
Synopsis
This extension of the EJBContext
interface represents runtime context
information for an entity bean. In addition to the context provided by
the EJBContex
methods, the EntityContext
allows the entity bean to
query for its primary key, and query for a remote reference to itself.
public interface EntityContext extends EJBContext { // Public Instance Methods public abstract EJBLocalObject getEJBLocalObject( // 2.0 ) throws java.lang.IllegalStateException; public abstract EJBObject getEJBObject( ) throws java.lang.IllegalStateException; public abstract Object getPrimaryKey( ) throws java.lang.IllegalStateException; }
Passed To
EntityBean.setEntityContext()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.