org.apache.openejb.core.entity
Class EntityContext.ContextEntityState

java.lang.Object
  extended by org.apache.openejb.core.BaseContext.State
      extended by org.apache.openejb.core.entity.EntityContext.ContextEntityState
Enclosing class:
EntityContext

protected static class EntityContext.ContextEntityState
extends BaseContext.State


Constructor Summary
protected EntityContext.ContextEntityState()
           
 
Method Summary
 java.security.Principal getCallerPrincipal(SecurityService securityService)
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 java.lang.Object getPrimaryKey()
           
 boolean getRollbackOnly()
           
 javax.ejb.TimerService getTimerService()
           
 javax.transaction.UserTransaction getUserTransaction(javax.transaction.UserTransaction userTransaction)
           
 boolean isCallerInRole(SecurityService securityService, java.lang.String roleName)
           
 boolean isEntityManagerAccessAllowed()
           
 boolean isEntityManagerFactoryAccessAllowed()
           
 boolean isMessageContextAccessAllowed()
           
 boolean isTimerAccessAllowed()
           
 boolean isUserTransactionAccessAllowed()
           
 void setRollbackOnly()
           
 
Methods inherited from class org.apache.openejb.core.BaseContext.State
getEJBHome, getEJBLocalHome, isJNDIAccessAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityContext.ContextEntityState

protected EntityContext.ContextEntityState()
Method Detail

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getCallerPrincipal

public java.security.Principal getCallerPrincipal(SecurityService securityService)
Overrides:
getCallerPrincipal in class BaseContext.State

isCallerInRole

public boolean isCallerInRole(SecurityService securityService,
                              java.lang.String roleName)
Overrides:
isCallerInRole in class BaseContext.State

getUserTransaction

public javax.transaction.UserTransaction getUserTransaction(javax.transaction.UserTransaction userTransaction)
                                                     throws java.lang.IllegalStateException
Overrides:
getUserTransaction in class BaseContext.State
Throws:
java.lang.IllegalStateException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException
Overrides:
setRollbackOnly in class BaseContext.State
Throws:
java.lang.IllegalStateException

getRollbackOnly

public boolean getRollbackOnly()
                        throws java.lang.IllegalStateException
Overrides:
getRollbackOnly in class BaseContext.State
Throws:
java.lang.IllegalStateException

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws java.lang.IllegalStateException
Overrides:
getTimerService in class BaseContext.State
Throws:
java.lang.IllegalStateException

isUserTransactionAccessAllowed

public boolean isUserTransactionAccessAllowed()
Overrides:
isUserTransactionAccessAllowed in class BaseContext.State

isMessageContextAccessAllowed

public boolean isMessageContextAccessAllowed()
Overrides:
isMessageContextAccessAllowed in class BaseContext.State

isEntityManagerFactoryAccessAllowed

public boolean isEntityManagerFactoryAccessAllowed()
Overrides:
isEntityManagerFactoryAccessAllowed in class BaseContext.State

isEntityManagerAccessAllowed

public boolean isEntityManagerAccessAllowed()
Overrides:
isEntityManagerAccessAllowed in class BaseContext.State

isTimerAccessAllowed

public boolean isTimerAccessAllowed()
Overrides:
isTimerAccessAllowed in class BaseContext.State


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.