|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.client.EJBMetaDataImpl
public class 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 java.lang.String |
deploymentID
|
protected EJBHomeProxy |
ejbHomeProxy
|
protected java.lang.Class |
homeClass
The home interface of the enterprise Bean. |
protected java.lang.Class |
keyClass
The Class object for the enterprise Bean's primary key class. |
protected java.lang.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(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
byte typeOfBean)
|
|
EJBMetaDataImpl(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
java.lang.Class primaryKeyClass,
byte typeOfBean)
|
|
EJBMetaDataImpl(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
java.lang.Class primaryKeyClass,
byte typeOfBean,
java.lang.String deploymentID)
|
|
EJBMetaDataImpl(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
java.lang.Class primaryKeyClass,
byte typeOfBean,
java.lang.String deploymentID,
int deploymentCode)
|
Method Summary | |
---|---|
javax.ejb.EJBHome |
getEJBHome()
Obtain the home interface of the enterprise Bean. |
java.lang.Class |
getHomeInterfaceClass()
Obtain the Class object for the enterprise Bean's home interface. |
java.lang.Class |
getPrimaryKeyClass()
Obtain the Class object for the enterprise Bean's primary key class. |
java.lang.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(java.io.ObjectInput in)
|
protected void |
setEJBHomeProxy(EJBHomeProxy home)
|
void |
writeExternal(java.io.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 java.lang.String deploymentID
protected transient int deploymentCode
protected transient java.lang.Class homeClass
protected transient java.lang.Class remoteClass
protected transient java.lang.Class keyClass
protected transient EJBHomeProxy ejbHomeProxy
Constructor Detail |
---|
public EJBMetaDataImpl()
public EJBMetaDataImpl(java.lang.Class homeInterface, java.lang.Class remoteInterface, byte typeOfBean)
public EJBMetaDataImpl(java.lang.Class homeInterface, java.lang.Class remoteInterface, java.lang.Class primaryKeyClass, byte typeOfBean)
public EJBMetaDataImpl(java.lang.Class homeInterface, java.lang.Class remoteInterface, java.lang.Class primaryKeyClass, byte typeOfBean, java.lang.String deploymentID)
public EJBMetaDataImpl(java.lang.Class homeInterface, java.lang.Class remoteInterface, java.lang.Class primaryKeyClass, byte typeOfBean, java.lang.String deploymentID, int deploymentCode)
Method Detail |
---|
public java.lang.Class getPrimaryKeyClass()
getPrimaryKeyClass
in interface javax.ejb.EJBMetaData
public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBMetaData
public java.lang.Class getHomeInterfaceClass()
getHomeInterfaceClass
in interface javax.ejb.EJBMetaData
public boolean isStatelessSession()
isStatelessSession
in interface javax.ejb.EJBMetaData
public java.lang.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(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |