Class Stateless3VehicleBean
java.lang.Object
com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean
com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleBean
- All Implemented Interfaces:
EJB3ShareIF
,Stateless3VehicleIF
-
Field Summary
Fields inherited from class com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean
APPMANAGED, APPMANAGEDNOTX, entityManager, entityManagerFactory, FINDER_TEST_NAME_KEY, sessionContext, STATEFUL3, STATELESS3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.EntityTransaction
Returns the entity transaction.protected String
Returns the type of the vehicle.void
init()
void
setEntityManager
(jakarta.persistence.EntityManager entityManager) Sets the entity manager.void
setEntityManagerFactory
(jakarta.persistence.EntityManagerFactory emf) Sets the entity manager factory.void
setSessionContext
(jakarta.ejb.SessionContext sessionContext) Sets the session context.Methods inherited from class com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean
getEntityManager, getEntityManagerFactory, getSessionContext, getTestName, runTest
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareIF
runTest
-
Constructor Details
-
Stateless3VehicleBean
public Stateless3VehicleBean()
-
-
Method Details
-
getVehicleType
Description copied from class:EJB3ShareBaseBean
Returns the type of the vehicle.- Specified by:
getVehicleType
in classEJB3ShareBaseBean
- Returns:
- the vehicle type as a String
-
setSessionContext
public void setSessionContext(jakarta.ejb.SessionContext sessionContext) Description copied from class:EJB3ShareBaseBean
Sets the session context.- Specified by:
setSessionContext
in classEJB3ShareBaseBean
- Parameters:
sessionContext
- the SessionContext to be set
-
init
@PostConstruct public void init() -
setEntityManager
public void setEntityManager(jakarta.persistence.EntityManager entityManager) Description copied from class:EJB3ShareBaseBean
Sets the entity manager.- Specified by:
setEntityManager
in classEJB3ShareBaseBean
- Parameters:
entityManager
- the EntityManager to be set
-
setEntityManagerFactory
public void setEntityManagerFactory(jakarta.persistence.EntityManagerFactory emf) Description copied from class:EJB3ShareBaseBean
Sets the entity manager factory.- Overrides:
setEntityManagerFactory
in classEJB3ShareBaseBean
- Parameters:
emf
- the EntityManagerFactory to be set
-
getEntityTransaction
protected jakarta.persistence.EntityTransaction getEntityTransaction()Description copied from class:EJB3ShareBaseBean
Returns the entity transaction.- Specified by:
getEntityTransaction
in classEJB3ShareBaseBean
- Returns:
- the EntityTransaction
-