Package org.jboss.ejb.client
Class EntityEJBMetaData<T extends jakarta.ejb.EJBObject,H extends jakarta.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 typeH- the home interface type
- All Implemented Interfaces:
jakarta.ejb.EJBMetaData,Serializable
public final class EntityEJBMetaData<T extends jakarta.ejb.EJBObject,H extends jakarta.ejb.EJBHome>
extends AbstractEJBMetaData<T,H>
Enterprise Beans metadata for entity Enterprise Beans.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityEJBMetaData(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends jakarta.ejb.EJBObject,H extends jakarta.ejb.EJBHome>
EntityEJBMetaData<T,H> create(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass) Construct a new instance.Class<?>Get the primary key class.booleanDetermine whether this Enterprise Bean metadata refers to a session Enterprise Bean.Methods inherited from class org.jboss.ejb.client.AbstractEJBMetaData
getEJBHome, getHomeInterfaceClass, getHomeLocator, getRemoteInterfaceClass, isStatelessSession
-
Constructor Details
-
EntityEJBMetaData
public EntityEJBMetaData(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass) Construct a new instance.- Parameters:
remoteInterfaceClass- the remote interface classhomeLocator- the EJB home locatorprimaryKeyClass- the primary key class
-
-
Method Details
-
create
public static <T extends jakarta.ejb.EJBObject,H extends jakarta.ejb.EJBHome> EntityEJBMetaData<T,H> create(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass) Construct a new instance.- Type Parameters:
T- the remote interface typeH- the home interface type- Parameters:
remoteInterfaceClass- the remote interface class (must not benull)homeLocator- the Enterprise Beans home locator (must not benull)primaryKeyClass- the primary key class (must not benull)- Returns:
- the new instance (not
null)
-
isSession
public boolean isSession()Description copied from class:AbstractEJBMetaDataDetermine whether this Enterprise Bean metadata refers to a session Enterprise Bean.- Specified by:
isSessionin interfacejakarta.ejb.EJBMetaData- Overrides:
isSessionin classAbstractEJBMetaData<T extends jakarta.ejb.EJBObject,H extends jakarta.ejb.EJBHome> - Returns:
trueif the Enterprise Beans is a session Enterprise Bean,falseotherwise
-
getPrimaryKeyClass
Description copied from class:AbstractEJBMetaDataGet the primary key class.- Specified by:
getPrimaryKeyClassin interfacejakarta.ejb.EJBMetaData- Overrides:
getPrimaryKeyClassin classAbstractEJBMetaData<T extends jakarta.ejb.EJBObject,H extends jakarta.ejb.EJBHome> - Returns:
- the primary key class
-