Class EntityEJBMetaData<T extends javax.ejb.EJBObject,H extends javax.ejb.EJBHome>

java.lang.Object
org.jboss.ejb.client.AbstractEJBMetaData<T,H>
org.jboss.ejb.client.EntityEJBMetaData<T,H>
Type Parameters:
T - the remote interface type
H - the home interface type
All Implemented Interfaces:
Serializable, javax.ejb.EJBMetaData

public final class EntityEJBMetaData<T extends javax.ejb.EJBObject,H extends javax.ejb.EJBHome> extends AbstractEJBMetaData<T,H>
Enterprise Beans metadata for entity Enterprise Beans.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • EntityEJBMetaData

      public EntityEJBMetaData(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass)
      Construct a new instance.
      Parameters:
      remoteInterfaceClass - the remote interface class
      homeLocator - the EJB home locator
      primaryKeyClass - the primary key class
  • Method Details

    • create

      public static <T extends javax.ejb.EJBObject, H extends javax.ejb.EJBHome> EntityEJBMetaData<T,H> create(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass)
      Construct a new instance.
      Type Parameters:
      T - the remote interface type
      H - the home interface type
      Parameters:
      remoteInterfaceClass - the remote interface class (must not be null)
      homeLocator - the Enterprise Beans home locator (must not be null)
      primaryKeyClass - the primary key class (must not be null)
      Returns:
      the new instance (not null)
    • isSession

      public boolean isSession()
      Description copied from class: AbstractEJBMetaData
      Determine whether this Enterprise Bean metadata refers to a session Enterprise Bean.
      Specified by:
      isSession in interface javax.ejb.EJBMetaData
      Overrides:
      isSession in class AbstractEJBMetaData<T extends javax.ejb.EJBObject,H extends javax.ejb.EJBHome>
      Returns:
      true if the Enterprise Beans is a session Enterprise Bean, false otherwise
    • getPrimaryKeyClass

      public Class<?> getPrimaryKeyClass()
      Description copied from class: AbstractEJBMetaData
      Get the primary key class.
      Specified by:
      getPrimaryKeyClass in interface javax.ejb.EJBMetaData
      Overrides:
      getPrimaryKeyClass in class AbstractEJBMetaData<T extends javax.ejb.EJBObject,H extends javax.ejb.EJBHome>
      Returns:
      the primary key class