oracle.toplink.tools.ejb11
Class EJBXmlSessionBeanDefinition
java.lang.Object
|
+--oracle.toplink.tools.ejb11.EJBXmlBeanDefinition
|
+--oracle.toplink.tools.ejb11.EJBXmlSessionBeanDefinition
- public class EJBXmlSessionBeanDefinition
- extends EJBXmlBeanDefinition
This type defines the session fields used by the EJB XML deployment descriptor
| Fields inherited from class oracle.toplink.tools.ejb11.EJBXmlBeanDefinition |
BEAN, CONTAINER, ejbClass,
ejbName, FALSE, home,
MANDATORY, NEVER, NOT_SUPPORTED,
remote, REQUIRED, REQUIRES_NEW,
SUPPORTS, transAttribute, TRUE |
| Type | Method |
java.lang.String |
getSessionType()
Get the type of session bean (whether it is stateful or stateless). |
java.lang.String |
getTransactionType()
Get how transactions will be managed in the session bean
(whether they are managed by the container or by the bean). |
void |
initializeToDefaults()
Initialize this object to contain the default values. |
void |
setSessionType(java.lang.String sType)
Set the type of session bean (whether it is stateful or stateless). |
void |
setTransactionType(java.lang.String transType)
Set how transactions will be managed in the session bean
(whether they are managed by the container or by the bean). |
oracle.toplink.tools.ejb11.Element |
storeBeanProperties(oracle.toplink.tools.ejb11.Element parentElement,
oracle.toplink.tools.ejb11.Document xmlDoc)
Store the properties in the element passed in and using the XML document. |
| Methods inherited from class oracle.toplink.tools.ejb11.EJBXmlBeanDefinition |
getEjbClass, getEjbName, getHomeClass,
getRemoteClass, getTransAttribute, setEjbClass,
setEjbName, setHomeClass, setRemoteClass,
setTransAttribute, storeAssemblyProperties |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionType
public java.lang.String sessionType
transactionType
public java.lang.String transactionType
STATEFUL
public static final java.lang.String STATEFUL
STATELESS
public static final java.lang.String STATELESS
EJBXmlSessionBeanDefinition
public EJBXmlSessionBeanDefinition(java.lang.String beanName)
- EJBXmlSessionBeanDefinition constructor
- Parameters:
String - name The ejbName to use for the bean
getSessionType
public java.lang.String getSessionType()
- Get the type of session bean (whether it is stateful or stateless).
This applies to session beans only.
- Returns:
- String The type of session bean, may be one of STATEFUL or STATELESS
getTransactionType
public java.lang.String getTransactionType()
- Get how transactions will be managed in the session bean
(whether they are managed by the container or by the bean).
This applies to session beans only.
- Returns:
- String The type of transaction management, may be one of CONTAINER or BEAN
initializeToDefaults
public void initializeToDefaults()
- Initialize this object to contain the default values.
- Overrides:
initializeToDefaults in class EJBXmlBeanDefinition
setSessionType
public void setSessionType(java.lang.String sType)
- Set the type of session bean (whether it is stateful or stateless).
This applies to session beans only.
- Parameters:
sType - The type of session bean, may be one of STATEFUL or STATELESS
setTransactionType
public void setTransactionType(java.lang.String transType)
- Set how transactions will be managed in the session bean
(whether they are managed by the container or by the bean).
This applies to session beans only.
- Parameters:
transType - The type of transaction management, may be one of CONTAINER or BEAN
storeBeanProperties
public oracle.toplink.tools.ejb11.Element storeBeanProperties(oracle.toplink.tools.ejb11.Element parentElement,
oracle.toplink.tools.ejb11.Document xmlDoc)
- Store the properties in the element passed in and using the XML document.
- Overrides:
storeBeanProperties in class EJBXmlBeanDefinition
- Returns:
- Element The parent element