|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.core.ivm.IntraVmMetaData
public class IntraVmMetaData
IntraVM server implementation of the javax.ejb.EJBMetaData interface.
Field Summary | |
---|---|
static byte |
ENTITY
Constant held by the type member variable to
specify that this MetaData implementation represents
an EntityBean. |
protected java.lang.Class |
homeClass
The Class of the bean's home interface. |
protected javax.ejb.EJBHome |
homeStub
The EJBHome stub/proxy for this bean deployment. |
protected java.lang.Class |
keyClass
The Class of the bean's primary key or null if the bean is of a type that does not require a primary key. |
protected java.lang.Class |
remoteClass
The Class of the bean's remote interface. |
static byte |
STATEFUL
Constant held by the type member variable to
specify that this MetaData implementation represents
a stateful SessionBean. |
static byte |
STATELESS
Constant held by the type member variable to
specify that this MetaData implementation represents
a stateless SessionBean. |
protected byte |
type
The type of bean that this MetaData implementation represents. |
Constructor Summary | |
---|---|
IntraVmMetaData(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
byte typeOfBean)
Constructs a IntraVmMetaData object to represent the MetaData of a bean deployment of the specified type with the specified home and remote interfaces. |
|
IntraVmMetaData(java.lang.Class homeInterface,
java.lang.Class remoteInterface,
java.lang.Class primaryKeyClass,
byte typeOfBean)
Constructs a IntraVmMetaData object to represent the MetaData of a bean deployment of the specified type, with the specified home and remote interfaces and primary key class. |
Method Summary | |
---|---|
javax.ejb.EJBHome |
getEJBHome()
Gets the EJBHome stub/proxy for this bean deployment. |
java.lang.Class |
getHomeInterfaceClass()
Returns the Class of the bean's home interface. |
java.lang.Class |
getPrimaryKeyClass()
Returns the Class of the bean's primary key or null if the bean is of a type that does not require a primary key. |
java.lang.Class |
getRemoteInterfaceClass()
Returns the Class of the bean's remote interface. |
boolean |
isSession()
Returns true if this MetaData represents a bean deployment of type SessionBean. |
boolean |
isStatelessSession()
Returns true if this MetaData represents a bean deployment that is a stateless SessionBean. |
void |
setEJBHome(javax.ejb.EJBHome home)
Sets the EJBHome stub/proxy for this bean deployment. |
protected java.lang.Object |
writeReplace()
If the meta data is being copied between bean instances in a RPC call we use the IntraVmArtifact |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ENTITY
type
member variable to
specify that this MetaData implementation represents
an EntityBean.
type
,
Constant Field Valuespublic static final byte STATEFUL
type
member variable to
specify that this MetaData implementation represents
a stateful SessionBean.
type
,
Constant Field Valuespublic static final byte STATELESS
type
member variable to
specify that this MetaData implementation represents
a stateless SessionBean.
type
,
Constant Field Valuesprotected java.lang.Class homeClass
protected java.lang.Class remoteClass
protected java.lang.Class keyClass
protected javax.ejb.EJBHome homeStub
protected byte type
ENTITY
,
STATEFUL
,
STATELESS
Constructor Detail |
---|
public IntraVmMetaData(java.lang.Class homeInterface, java.lang.Class remoteInterface, byte typeOfBean)
homeInterface
- The Class of the bean's home interface.remoteInterface
- The Class of the bean's remote interface.typeOfBean
- One of the ENTITY
, STATEFUL
or STATELESS
constants that specify the type of bean this MetaData will represent.public IntraVmMetaData(java.lang.Class homeInterface, java.lang.Class remoteInterface, java.lang.Class primaryKeyClass, byte typeOfBean)
homeInterface
- The Class of the bean's home interface.remoteInterface
- The Class of the bean's remote interface.primaryKeyClass
- The primary key class of the bean that this MetaData will represent.typeOfBean
- One of the ENTITY
, STATEFUL
or STATELESS
constants that specify the type of bean this MetaData will represent.Method Detail |
---|
public java.lang.Class getHomeInterfaceClass()
getHomeInterfaceClass
in interface javax.ejb.EJBMetaData
public java.lang.Class getRemoteInterfaceClass()
getRemoteInterfaceClass
in interface javax.ejb.EJBMetaData
public java.lang.Class getPrimaryKeyClass()
getPrimaryKeyClass
in interface javax.ejb.EJBMetaData
public boolean isSession()
isSession
in interface javax.ejb.EJBMetaData
public boolean isStatelessSession()
isStatelessSession
in interface javax.ejb.EJBMetaData
public void setEJBHome(javax.ejb.EJBHome home)
home
- The EJBHome stub/proxy for this bean deployment.public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBMetaData
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
If the meta data is referenced by a stateful bean that is being passivated by the container, we allow this object to be serialized.
If the meta data is serialized outside the core container system, we allow the application server to handle it.
java.io.ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |