org.openejb.client
Class EJBMetaDataImpl

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

public class EJBMetaDataImpl
extends Object
implements javax.ejb.EJBMetaData, 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
See Also:
Serialized Form

Field Summary
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.
protected  int type
           
 
Constructor Summary
EJBMetaDataImpl()
          Public no-arg constructor required by Externalizable API
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, int typeOfBean)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, int typeOfBean, String deploymentID)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, int typeOfBean, String deploymentID, int deploymentCode)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, int typeOfBean)
           
 
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)
           
 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

type

protected transient int type

deploymentID

protected transient String deploymentID

deploymentCode

protected transient int deploymentCode

homeClass

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


remoteClass

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


keyClass

protected transient 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(Class homeInterface,
                       Class remoteInterface,
                       int typeOfBean)

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       Class primaryKeyClass,
                       int typeOfBean)

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       Class primaryKeyClass,
                       int typeOfBean,
                       String deploymentID)

EJBMetaDataImpl

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

getPrimaryKeyClass

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

public void setEJBHomeProxy(EJBHomeProxy home)

writeExternal

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

readExternal

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


Copyright © 1999-2006 OpenEJB. All Rights Reserved.