Class AppManagedNoTxVehicleBean
java.lang.Object
com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean
com.sun.ts.tests.common.vehicle.appmanagedNoTx.AppManagedNoTxVehicleBean
- All Implemented Interfaces:
AppManagedNoTxVehicleIF
,EJB3ShareIF
,Serializable
public class AppManagedNoTxVehicleBean
extends EJB3ShareBaseBean
implements AppManagedNoTxVehicleIF, Serializable
- See Also:
-
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
ConstructorsConstructorDescriptionDefault constructor for AppManagedNoTxVehicleBean. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.EntityTransaction
Returns the EntityTransaction.protected String
Returns the type of the vehicle.runTest
(String[] args, Properties props) Runs the test with the given arguments and properties.void
setEntityManager
(jakarta.persistence.EntityManager entityManager) Sets the EntityManager.void
setEntityManagerFactory
(jakarta.persistence.EntityManagerFactory emf) Sets the EntityManagerFactory.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
-
Constructor Details
-
AppManagedNoTxVehicleBean
public AppManagedNoTxVehicleBean()Default constructor for AppManagedNoTxVehicleBean. Calls the superclass constructor.
-
-
Method Details
-
getVehicleType
Returns the type of the vehicle.- Specified by:
getVehicleType
in classEJB3ShareBaseBean
- Returns:
- the vehicle type as a String
-
runTest
Runs the test with the given arguments and properties.- Specified by:
runTest
in interfaceEJB3ShareIF
- Overrides:
runTest
in classEJB3ShareBaseBean
- Parameters:
args
- the arguments for the testprops
- the properties for the test- Returns:
- the RemoteStatus of the test run
-
setSessionContext
public void setSessionContext(jakarta.ejb.SessionContext sessionContext) Sets the session context.- Specified by:
setSessionContext
in classEJB3ShareBaseBean
- Parameters:
sessionContext
- the SessionContext to be set
-
setEntityManagerFactory
public void setEntityManagerFactory(jakarta.persistence.EntityManagerFactory emf) Sets the EntityManagerFactory.- Overrides:
setEntityManagerFactory
in classEJB3ShareBaseBean
- Parameters:
emf
- the EntityManagerFactory to be set
-
setEntityManager
public void setEntityManager(jakarta.persistence.EntityManager entityManager) Sets the EntityManager.- Specified by:
setEntityManager
in classEJB3ShareBaseBean
- Parameters:
entityManager
- the EntityManager to be set
-
getEntityTransaction
protected jakarta.persistence.EntityTransaction getEntityTransaction()Returns the EntityTransaction.- Specified by:
getEntityTransaction
in classEJB3ShareBaseBean
- Returns:
- the EntityTransaction
-