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 SummaryFields inherited from class com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBeanAPPMANAGED, APPMANAGEDNOTX, entityManager, entityManagerFactory, FINDER_TEST_NAME_KEY, sessionContext, STATEFUL3, STATELESS3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected jakarta.persistence.EntityTransactionReturns the entity transaction.protected StringReturns the type of the vehicle.voidinit()voidsetEntityManager(jakarta.persistence.EntityManager entityManager) Sets the entity manager.voidsetEntityManagerFactory(jakarta.persistence.EntityManagerFactory emf) Sets the entity manager factory.voidsetSessionContext(jakarta.ejb.SessionContext sessionContext) Sets the session context.Methods inherited from class com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBeangetEntityManager, getEntityManagerFactory, getSessionContext, getTestName, runTestMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareIFrunTest
- 
Constructor Details- 
Stateless3VehicleBeanpublic Stateless3VehicleBean()
 
- 
- 
Method Details- 
getVehicleTypeDescription copied from class:EJB3ShareBaseBeanReturns the type of the vehicle.- Specified by:
- getVehicleTypein class- EJB3ShareBaseBean
- Returns:
- the vehicle type as a String
 
- 
setSessionContextpublic void setSessionContext(jakarta.ejb.SessionContext sessionContext) Description copied from class:EJB3ShareBaseBeanSets the session context.- Specified by:
- setSessionContextin class- EJB3ShareBaseBean
- Parameters:
- sessionContext- the SessionContext to be set
 
- 
init@PostConstruct public void init()
- 
setEntityManagerpublic void setEntityManager(jakarta.persistence.EntityManager entityManager) Description copied from class:EJB3ShareBaseBeanSets the entity manager.- Specified by:
- setEntityManagerin class- EJB3ShareBaseBean
- Parameters:
- entityManager- the EntityManager to be set
 
- 
setEntityManagerFactorypublic void setEntityManagerFactory(jakarta.persistence.EntityManagerFactory emf) Description copied from class:EJB3ShareBaseBeanSets the entity manager factory.- Overrides:
- setEntityManagerFactoryin class- EJB3ShareBaseBean
- Parameters:
- emf- the EntityManagerFactory to be set
 
- 
getEntityTransactionprotected jakarta.persistence.EntityTransaction getEntityTransaction()Description copied from class:EJB3ShareBaseBeanReturns the entity transaction.- Specified by:
- getEntityTransactionin class- EJB3ShareBaseBean
- Returns:
- the EntityTransaction
 
 
-