org.openejb.entity
Class EntityContextImpl

java.lang.Object
  extended byorg.openejb.EJBContextImpl
      extended byorg.openejb.entity.EntityContextImpl
All Implemented Interfaces:
javax.ejb.EJBContext, javax.ejb.EntityContext

public class EntityContextImpl
extends EJBContextImpl
implements javax.ejb.EntityContext

Version:
$Revision: 445265 $ $Date: 2005-03-09 06:01:02 +0100 (Wed, 09 Mar 2005) $

Nested Class Summary
static class EntityContextImpl.EntityContextState
           
 
Nested classes inherited from class org.openejb.EJBContextImpl
EJBContextImpl.EJBContextState
 
Field Summary
static EntityContextImpl.EntityContextState BIZ_INTERFACE
           
static EntityContextImpl.EntityContextState EJBACTIVATE
           
static EntityContextImpl.EntityContextState EJBCREATE
           
static EntityContextImpl.EntityContextState EJBFIND
           
static EntityContextImpl.EntityContextState EJBHOME
           
static EntityContextImpl.EntityContextState EJBLOAD
           
static EntityContextImpl.EntityContextState EJBPOSTCREATE
           
static EntityContextImpl.EntityContextState EJBREMOVE
           
static EntityContextImpl.EntityContextState EJBTIMEOUT
           
static EntityContextImpl.EntityContextState INACTIVE
           
static EntityContextImpl.EntityContextState SETENTITYCONTEXT
           
 
Fields inherited from class org.openejb.EJBContextImpl
context, state, userTransaction
 
Constructor Summary
EntityContextImpl(EntityInstanceContext context, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager)
           
 
Method Summary
 Identity getCallerIdentity()
           
 Properties getEnvironment()
           
 Object getPrimaryKey()
           
 UserTransaction getUserTransaction()
           
 boolean isCallerInRole(Identity identity)
           
 void setState(EJBOperation operation)
           
 boolean setTimerState(EJBOperation operation)
           
 
Methods inherited from class org.openejb.EJBContextImpl
getCallerPrincipal, getCallerSubject, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getRollbackOnly, getTimerService, isCallerInRole, setCallerSubject, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EntityContext
getEJBLocalObject, getEJBObject
 
Methods inherited from interface javax.ejb.EJBContext
getCallerPrincipal, getEJBHome, getEJBLocalHome, getRollbackOnly, getTimerService, isCallerInRole, setRollbackOnly
 

Field Detail

INACTIVE

public static EntityContextImpl.EntityContextState INACTIVE

SETENTITYCONTEXT

public static EntityContextImpl.EntityContextState SETENTITYCONTEXT

EJBCREATE

public static EntityContextImpl.EntityContextState EJBCREATE

EJBPOSTCREATE

public static EntityContextImpl.EntityContextState EJBPOSTCREATE

EJBREMOVE

public static EntityContextImpl.EntityContextState EJBREMOVE

EJBFIND

public static EntityContextImpl.EntityContextState EJBFIND

EJBHOME

public static EntityContextImpl.EntityContextState EJBHOME

EJBACTIVATE

public static EntityContextImpl.EntityContextState EJBACTIVATE

EJBLOAD

public static EntityContextImpl.EntityContextState EJBLOAD

BIZ_INTERFACE

public static EntityContextImpl.EntityContextState BIZ_INTERFACE

EJBTIMEOUT

public static EntityContextImpl.EntityContextState EJBTIMEOUT
Constructor Detail

EntityContextImpl

public EntityContextImpl(EntityInstanceContext context,
                         org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager)
Method Detail

setState

public void setState(EJBOperation operation)

setTimerState

public boolean setTimerState(EJBOperation operation)

getPrimaryKey

public Object getPrimaryKey()
                     throws IllegalStateException
Specified by:
getPrimaryKey in interface javax.ejb.EntityContext
Throws:
IllegalStateException

getUserTransaction

public UserTransaction getUserTransaction()
                                   throws IllegalStateException
Specified by:
getUserTransaction in interface javax.ejb.EJBContext
Overrides:
getUserTransaction in class EJBContextImpl
Throws:
IllegalStateException

getEnvironment

public Properties getEnvironment()
Specified by:
getEnvironment in interface javax.ejb.EJBContext
Overrides:
getEnvironment in class EJBContextImpl

getCallerIdentity

public Identity getCallerIdentity()
Specified by:
getCallerIdentity in interface javax.ejb.EJBContext
Overrides:
getCallerIdentity in class EJBContextImpl

isCallerInRole

public boolean isCallerInRole(Identity identity)
Specified by:
isCallerInRole in interface javax.ejb.EJBContext
Overrides:
isCallerInRole in class EJBContextImpl


Copyright © 1999-2006 OpenEJB. All Rights Reserved.