T
- the remote interface typeH
- the home interface typepublic final class EntityEJBMetaData<T extends EJBObject,H extends EJBHome> extends AbstractEJBMetaData<T,H>
Constructor and Description |
---|
EntityEJBMetaData(Class<T> remoteInterfaceClass,
EJBHomeLocator<H> homeLocator,
Class<?> primaryKeyClass)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static <T extends EJBObject,H extends EJBHome> |
create(Class<T> remoteInterfaceClass,
EJBHomeLocator<H> homeLocator,
Class<?> primaryKeyClass)
Construct a new instance.
|
Class<?> |
getPrimaryKeyClass()
Get the primary key class.
|
boolean |
isSession()
Determine whether this EJB metadata refers to a session EJB.
|
getEJBHome, getHomeInterfaceClass, getHomeLocator, getRemoteInterfaceClass, isStatelessSession
public EntityEJBMetaData(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass)
remoteInterfaceClass
- the remote interface classhomeLocator
- the EJB home locatorprimaryKeyClass
- the primary key classpublic static <T extends EJBObject,H extends EJBHome> EntityEJBMetaData<T,H> create(Class<T> remoteInterfaceClass, EJBHomeLocator<H> homeLocator, Class<?> primaryKeyClass)
T
- the remote interface typeH
- the home interface typeremoteInterfaceClass
- the remote interface class (must not be null
)homeLocator
- the EJB home locator (must not be null
)primaryKeyClass
- the primary key class (must not be null
)null
)public boolean isSession()
AbstractEJBMetaData
isSession
in interface EJBMetaData
isSession
in class AbstractEJBMetaData<T extends EJBObject,H extends EJBHome>
true
if the EJB is a session EJB, false
otherwisepublic Class<?> getPrimaryKeyClass()
AbstractEJBMetaData
getPrimaryKeyClass
in interface EJBMetaData
getPrimaryKeyClass
in class AbstractEJBMetaData<T extends EJBObject,H extends EJBHome>
Copyright © 2017 JBoss by Red Hat. All rights reserved.