|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EjbEntityAction
Invokes a method on an EJB entity bean home interface, which is responsible for returning one or more remote references. Afterwards, a method on each remote reference is invoked.
The EJB Entity Action returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.Flow Context Variable | Java Type | Description |
---|---|---|
RESULT | java.util.List | A List containing the return value for each method call on the remote references for this EJB action. The List may be empty, but it will never be null. |
Method Summary | |
---|---|
DynamicMethod |
getHomeMethod()
Returns a method on an EJB home interface, which is responsible for returning one or more remote references. |
void |
setHomeMethod(DynamicMethod homeMethod)
Sets a method on an EJB home interface, which is responsible for returning one or more remote references. |
void |
setListener(java.lang.String jndiName,
java.lang.Class home)
Sets the JNDI name and class of an EJB home interface. |
Methods inherited from interface flux.j2ee.EjbListener |
---|
getListenerHome, getListenerHomeAsString, getListenerJndiName, setListener |
Methods inherited from interface flux.j2ee.J2eeKeyAction |
---|
getKey, setKey |
Methods inherited from interface flux.j2ee.J2eeAction |
---|
getExtraInitialContextProperties, getInitialContextFactory, getPassword, getProviderUrl, getUsername, setExtraInitialContextProperties, setInitialContextFactory, setPassword, setProviderUrl, setUsername |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
DynamicMethod getHomeMethod() throws EngineException
EngineException
- If a system error occurs.setHomeMethod(flux.DynamicMethod)
,
RemoteActionListener
void setListener(java.lang.String jndiName, java.lang.Class home)
setListener
in interface EjbListener
jndiName
- The JNDI name for the EJB's home interface.home
- The class name of the EJB's home interface.EjbListener.setListener(String, String)
void setHomeMethod(DynamicMethod homeMethod) throws EngineException
For example, to create an EJB entity bean, set a create() home method. It can be the default create() method or a custom create() method. After the entity bean is created, the actionFired() method in flux.RemoteActionListener is invoked on it.
As another example, to call a finder on a home interface and invoke a method on each remote reference in the the entire collection that is returned, set a findByMyCriteria() home method. After the entity beans are returned, the actionFired() method in flux.RemoteActionListener is invoked on each bean.
homeMethod
- A method on an EJB home interface.
EngineException
- If a system error occurs.getHomeMethod()
,
RemoteActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |