|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.client.EJBMetaDataImpl
------------------------------------------------- EJB 1.1 9.3.6 Meta-data class The deployment tools are responsible for implementing the class that provides meta-data information to the client view contract. The class must be a valid RMI-IIOP Value Type, and must implement the javax.ejb.EJBMetaData interface. Because the meta-data class is not entity bean specific, the container may, but is not required to, use a single class for all deployed enterprise beans. ------------------------------------------------- The OpenEJB implementation of the javax.ejb.EJBMetaData interface.
Field Summary | |
static byte |
BMP_ENTITY
The constant that will be returned from the getComponentType
method if this bean is an enitity bean with bean-managed persistence. |
static byte |
CMP_ENTITY
The constant that will be returned from the getComponentType
method if this bean is a enitity bean with container-managed persistence. |
protected int |
deploymentCode
|
protected String |
deploymentID
|
protected EJBHomeProxy |
ejbHomeProxy
|
protected Class |
homeClass
The home interface of the enterprise Bean. |
protected Class |
keyClass
The Class object for the enterprise Bean's primary key class. |
protected Class |
remoteClass
The Class object for the enterprise Bean's remote interface. |
static byte |
STATEFUL
The constant that will be returned from the getComponentType
method if this bean is a stateful session bean. |
static byte |
STATELESS
The constant that will be returned from the getComponentType
method if this bean is a stateless session bean. |
protected byte |
type
|
Constructor Summary | |
EJBMetaDataImpl()
Public no-arg constructor required by Externalizable API |
|
EJBMetaDataImpl(Class homeInterface,
Class remoteInterface,
byte typeOfBean)
|
|
EJBMetaDataImpl(Class homeInterface,
Class remoteInterface,
Class primaryKeyClass,
byte typeOfBean)
|
|
EJBMetaDataImpl(Class homeInterface,
Class remoteInterface,
Class primaryKeyClass,
byte typeOfBean,
String deploymentID)
|
|
EJBMetaDataImpl(Class homeInterface,
Class remoteInterface,
Class primaryKeyClass,
byte typeOfBean,
String deploymentID,
int deploymentCode)
|
Method Summary | |
javax.ejb.EJBHome |
getEJBHome()
Obtain the home interface of the enterprise Bean. |
Class |
getHomeInterfaceClass()
Obtain the Class object for the enterprise Bean's home interface. |
Class |
getPrimaryKeyClass()
Obtain the Class object for the enterprise Bean's primary key class. |
Class |
getRemoteInterfaceClass()
Obtain the Class object for the enterprise Bean's remote interface. |
boolean |
isSession()
Test if the enterprise Bean's type is "session". |
boolean |
isStatelessSession()
Test if the enterprise Bean's type is "stateless session". |
void |
readExternal(ObjectInput in)
|
protected void |
setEJBHomeProxy(EJBHomeProxy home)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte STATEFUL
getComponentType
method if this bean is a stateful session bean.
public static final byte STATELESS
getComponentType
method if this bean is a stateless session bean.
public static final byte BMP_ENTITY
getComponentType
method if this bean is an enitity bean with bean-managed persistence.
public static final byte CMP_ENTITY
getComponentType
method if this bean is a enitity bean with container-managed persistence.
protected transient byte type
protected transient String deploymentID
protected transient int deploymentCode
protected transient Class homeClass
protected transient Class remoteClass
protected transient Class keyClass
protected transient EJBHomeProxy ejbHomeProxy
Constructor Detail |
public EJBMetaDataImpl()
public EJBMetaDataImpl(Class homeInterface, Class remoteInterface, byte typeOfBean)
public EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, byte typeOfBean)
public EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, byte typeOfBean, String deploymentID)
public EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, byte typeOfBean, String deploymentID, int deploymentCode)
Method Detail |
public Class getPrimaryKeyClass()
getPrimaryKeyClass
in interface javax.ejb.EJBMetaData
public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBMetaData
public Class getHomeInterfaceClass()
getHomeInterfaceClass
in interface javax.ejb.EJBMetaData
public boolean isStatelessSession()
isStatelessSession
in interface javax.ejb.EJBMetaData
public Class getRemoteInterfaceClass()
getRemoteInterfaceClass
in interface javax.ejb.EJBMetaData
public boolean isSession()
isSession
in interface javax.ejb.EJBMetaData
protected void setEJBHomeProxy(EJBHomeProxy home)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |