|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.AbstractComponentContext cuba.wired.WiredComponentContext
public class WiredComponentContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface cuba.ContextI |
---|
ContextI.Type |
Method Summary | |
---|---|
void |
addToEnvironment(java.lang.String name,
java.lang.Object value)
|
java.lang.String |
getCallerName()
|
ClientContextI |
getClientContext()
Create a client context from a component context which provides external access to the same container which the current component resides in. |
java.lang.Object |
getComponent(java.lang.String localName)
Looks up a component refered to by a symbolic name. |
javax.sql.DataSource |
getDataSource(java.lang.String localName)
Looks up an SQL database refered to by a symbolic name. |
CubaEntityManager |
getEntityManager(java.lang.String name)
|
java.lang.Object |
getEnvironment(java.lang.String name)
Looks up an environment entry refered to by a symbolic name. |
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()
|
void |
pushCall()
|
void |
setRollbackOnly()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getType()
ContextI
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 localName) throws ConstructionException, ReferenceException
ContextI
localName
- 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.public java.lang.Object getComponent(java.lang.String localName) throws ConstructionException, ReferenceException
ContextI
localName
- 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 ClientContextI getClientContext()
ComponentContextI
public java.lang.Object getEnvironment(java.lang.String name) throws ReferenceException
ComponentContextI
name
- The symbolic name of the environment entry to look up
ReferenceException
- if the provided symbolic name cannot
be resolved.public void addToEnvironment(java.lang.String name, java.lang.Object value) throws ReferenceException
ReferenceException
public CubaEntityManager getEntityManager(java.lang.String name) throws ConstructionException, ReferenceException
ConstructionException
ReferenceException
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 |