Class Stateful3VehicleBean

java.lang.Object
com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean
com.sun.ts.tests.common.vehicle.stateful3.Stateful3VehicleBean
All Implemented Interfaces:
EJB3ShareIF, Stateful3VehicleIF, Serializable

public class Stateful3VehicleBean extends EJB3ShareBaseBean implements Stateful3VehicleIF, Serializable
See Also:
  • Constructor Details

    • Stateful3VehicleBean

      public Stateful3VehicleBean()
  • Method Details

    • getVehicleType

      protected String getVehicleType()
      Description copied from class: EJB3ShareBaseBean
      Returns the type of the vehicle.
      Specified by:
      getVehicleType in class EJB3ShareBaseBean
      Returns:
      the vehicle type as a String
    • init

      @PostConstruct public void init()
    • runTest

      public RemoteStatus runTest(String[] args, Properties props)
      Description copied from class: EJB3ShareBaseBean
      Runs the test with the given arguments and properties.
      Specified by:
      runTest in interface EJB3ShareIF
      Overrides:
      runTest in class EJB3ShareBaseBean
      Parameters:
      args - the arguments for the test
      props - the properties for the test
      Returns:
      the RemoteStatus of the test run
    • setSessionContext

      public void setSessionContext(jakarta.ejb.SessionContext sessionContext)
      Description copied from class: EJB3ShareBaseBean
      Sets the session context.
      Specified by:
      setSessionContext in class EJB3ShareBaseBean
      Parameters:
      sessionContext - the SessionContext to be set
    • setEntityManager

      public void setEntityManager(jakarta.persistence.EntityManager entityManager)
      Description copied from class: EJB3ShareBaseBean
      Sets the entity manager.
      Specified by:
      setEntityManager in class EJB3ShareBaseBean
      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 class EJB3ShareBaseBean
      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 class EJB3ShareBaseBean
      Returns:
      the EntityTransaction