|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.AbstractComponentContext cuba.ejb.AbstractEJBComponentContext
public abstract class AbstractEJBComponentContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface cuba.ContextI |
---|
ContextI.Type |
Field Summary | |
---|---|
protected javax.ejb.SessionContext |
context
|
Constructor Summary | |
---|---|
AbstractEJBComponentContext(javax.ejb.SessionContext context)
|
Method Summary | |
---|---|
java.lang.String |
getCallerName()
|
abstract java.lang.Object |
getComponent(java.lang.String name)
Looks up a component refered to by a symbolic name. |
javax.sql.DataSource |
getDataSource(java.lang.String name)
Looks up an SQL database refered to by a symbolic name. |
java.lang.Object |
getEnvironment(java.lang.String name)
Looks up an environment entry refered to by a symbolic name. |
protected javax.naming.Context |
getLocalContext()
|
boolean |
getRollbackOnly()
|
javax.transaction.UserTransaction |
getTransaction()
Provide access to a user transaction |
int |
getType()
Returns the type of context, to let the context holder perform operations depending on the environment it is working in. |
boolean |
isCallerInRole(java.lang.String roleName)
|
void |
popCall()
Nothing to do here. |
void |
pushCall()
Nothing to do here. |
void |
setRollbackOnly()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cuba.ComponentContextI |
---|
getClientContext |
Field Detail |
---|
protected javax.ejb.SessionContext context
Constructor Detail |
---|
public AbstractEJBComponentContext(javax.ejb.SessionContext context)
Method Detail |
---|
public int getType()
ContextI
public abstract java.lang.Object getComponent(java.lang.String name) throws ConstructionException, ReferenceException
ContextI
name
- The symbolic name of the component to look up
ConstructionException
- if the container failed to provide
the required component
ReferenceException
- if the provided symbolic name cannot
be resolved.public javax.transaction.UserTransaction getTransaction()
ContextI
public void setRollbackOnly() throws javax.transaction.SystemException
javax.transaction.SystemException
public boolean getRollbackOnly() throws javax.transaction.SystemException
javax.transaction.SystemException
public boolean isCallerInRole(java.lang.String roleName)
public java.lang.String getCallerName()
public javax.sql.DataSource getDataSource(java.lang.String name) throws ConstructionException, ReferenceException
ContextI
name
- The symbolic name of the SQL source to look up
ConstructionException
- if the container failed to provide
the required SQL database
ReferenceException
- if the provided symbolic name cannot
be resolved.protected javax.naming.Context getLocalContext() throws javax.naming.NamingException
javax.naming.NamingException
public java.lang.Object getEnvironment(java.lang.String name) throws ReferenceException
name
- The symbolic name of the environment entry to look up
ReferenceException
- if the provided symbolic name cannot be resolved.public void pushCall() throws ComponentException
pushCall
in class AbstractComponentContext
ComponentException
public void popCall() throws ComponentException
popCall
in class AbstractComponentContext
ComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |