org.openejb.client
Class EJBMetaDataImpl

java.lang.Object
  extended by org.openejb.client.EJBMetaDataImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.ejb.EJBMetaData

public class EJBMetaDataImpl
extends java.lang.Object
implements javax.ejb.EJBMetaData, java.io.Externalizable

------------------------------------------------- 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.

Since:
11/25/2001
Author:
David Blevins
See Also:
Serialized Form

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

STATEFUL

public static final byte STATEFUL
The constant that will be returned from the getComponentType method if this bean is a stateful session bean.

See Also:
Constant Field Values

STATELESS

public static final byte STATELESS
The constant that will be returned from the getComponentType method if this bean is a stateless session bean.

See Also:
Constant Field Values

BMP_ENTITY

public static final byte BMP_ENTITY
The constant that will be returned from the getComponentType method if this bean is an enitity bean with bean-managed persistence.

See Also:
Constant Field Values

CMP_ENTITY

public static final byte CMP_ENTITY
The constant that will be returned from the getComponentType method if this bean is a enitity bean with container-managed persistence.

See Also:
Constant Field Values

type

protected transient byte type

deploymentID

protected transient java.lang.String deploymentID

deploymentCode

protected transient int deploymentCode

homeClass

protected transient java.lang.Class homeClass
The home interface of the enterprise Bean.


remoteClass

protected transient java.lang.Class remoteClass
The Class object for the enterprise Bean's remote interface.


keyClass

protected transient java.lang.Class keyClass
The Class object for the enterprise Bean's primary key class.


ejbHomeProxy

protected transient EJBHomeProxy ejbHomeProxy
Constructor Detail

EJBMetaDataImpl

public EJBMetaDataImpl()
Public no-arg constructor required by Externalizable API


EJBMetaDataImpl

public EJBMetaDataImpl(java.lang.Class homeInterface,
                       java.lang.Class remoteInterface,
                       byte typeOfBean)

EJBMetaDataImpl

public EJBMetaDataImpl(java.lang.Class homeInterface,
                       java.lang.Class remoteInterface,
                       java.lang.Class primaryKeyClass,
                       byte typeOfBean)

EJBMetaDataImpl

public EJBMetaDataImpl(java.lang.Class homeInterface,
                       java.lang.Class remoteInterface,
                       java.lang.Class primaryKeyClass,
                       byte typeOfBean,
                       java.lang.String deploymentID)

EJBMetaDataImpl

public EJBMetaDataImpl(java.lang.Class homeInterface,
                       java.lang.Class remoteInterface,
                       java.lang.Class primaryKeyClass,
                       byte typeOfBean,
                       java.lang.String deploymentID,
                       int deploymentCode)
Method Detail

getPrimaryKeyClass

public java.lang.Class getPrimaryKeyClass()
Obtain the Class object for the enterprise Bean's primary key class.

Specified by:
getPrimaryKeyClass in interface javax.ejb.EJBMetaData

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Obtain the home interface of the enterprise Bean.

Specified by:
getEJBHome in interface javax.ejb.EJBMetaData

getHomeInterfaceClass

public java.lang.Class getHomeInterfaceClass()
Obtain the Class object for the enterprise Bean's home interface.

Specified by:
getHomeInterfaceClass in interface javax.ejb.EJBMetaData

isStatelessSession

public boolean isStatelessSession()
Test if the enterprise Bean's type is "stateless session".

Specified by:
isStatelessSession in interface javax.ejb.EJBMetaData
Returns:
True if the type of the enterprise Bean is stateless session.

getRemoteInterfaceClass

public java.lang.Class getRemoteInterfaceClass()
Obtain the Class object for the enterprise Bean's remote interface.

Specified by:
getRemoteInterfaceClass in interface javax.ejb.EJBMetaData

isSession

public boolean isSession()
Test if the enterprise Bean's type is "session".

Specified by:
isSession in interface javax.ejb.EJBMetaData
Returns:
True if the type of the enterprise Bean is session bean.

setEJBHomeProxy

protected void setEJBHomeProxy(EJBHomeProxy home)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.