org.apache.openejb.client
Class EJBMetaDataImpl

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

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

See Also:
Serialized Form

Field Summary
static byte BMP_ENTITY
           
protected  List<Class> businessClasses
           
static byte CMP_ENTITY
           
protected  int deploymentCode
           
protected  String deploymentID
           
protected  javax.ejb.EJBHome ejbHomeProxy
           
protected  Class homeClass
           
protected  InterfaceType interfaceType
           
protected  Class keyClass
           
protected  Object primaryKey
           
protected  Properties properties
           
protected  Class remoteClass
           
static byte SINGLETON
           
static byte STATEFUL
           
static byte STATELESS
           
protected  byte type
           
 
Constructor Summary
EJBMetaDataImpl()
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, String typeOfBean, InterfaceType interfaceType, List<Class> businessInterfaces)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, String typeOfBean, String deploymentID, InterfaceType interfaceType, List<Class> businessInterfaces)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, Class primaryKeyClass, String typeOfBean, String deploymentID, int deploymentCode, InterfaceType interfaceType, List<Class> businessInterfaces)
           
EJBMetaDataImpl(Class homeInterface, Class remoteInterface, String typeOfBean, InterfaceType interfaceType, List<Class> businessInterfaces)
           
 
Method Summary
 List<Class> getBusinessClasses()
           
 String getDeploymentID()
           
 javax.ejb.EJBHome getEJBHome()
           
 Class getHomeClass()
           
 Class getHomeInterfaceClass()
           
 Object getPrimaryKey()
           
 Class getPrimaryKeyClass()
           
 Properties getProperties()
           
 Class getRemoteInterfaceClass()
           
 boolean isSession()
           
 boolean isSingletonSession()
           
 boolean isStatefulSession()
           
 boolean isStatelessSession()
           
 void loadProperties(Properties properties)
           
 void readExternal(ObjectInput in)
           
protected  void setEJBHomeProxy(EJBHomeProxy home)
           
 void setPrimaryKey(Object primaryKey)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATEFUL

public static final byte STATEFUL
See Also:
Constant Field Values

STATELESS

public static final byte STATELESS
See Also:
Constant Field Values

BMP_ENTITY

public static final byte BMP_ENTITY
See Also:
Constant Field Values

CMP_ENTITY

public static final byte CMP_ENTITY
See Also:
Constant Field Values

SINGLETON

public static final byte SINGLETON
See Also:
Constant Field Values

type

protected transient byte type

deploymentID

protected transient String deploymentID

deploymentCode

protected transient int deploymentCode

homeClass

protected transient Class homeClass

remoteClass

protected transient Class remoteClass

businessClasses

protected final transient List<Class> businessClasses

properties

protected final transient Properties properties

keyClass

protected transient Class keyClass

ejbHomeProxy

protected transient javax.ejb.EJBHome ejbHomeProxy

interfaceType

protected transient InterfaceType interfaceType

primaryKey

protected transient Object primaryKey
Constructor Detail

EJBMetaDataImpl

public EJBMetaDataImpl()

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       String typeOfBean,
                       InterfaceType interfaceType,
                       List<Class> businessInterfaces)

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       Class primaryKeyClass,
                       String typeOfBean,
                       InterfaceType interfaceType,
                       List<Class> businessInterfaces)

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       Class primaryKeyClass,
                       String typeOfBean,
                       String deploymentID,
                       InterfaceType interfaceType,
                       List<Class> businessInterfaces)

EJBMetaDataImpl

public EJBMetaDataImpl(Class homeInterface,
                       Class remoteInterface,
                       Class primaryKeyClass,
                       String typeOfBean,
                       String deploymentID,
                       int deploymentCode,
                       InterfaceType interfaceType,
                       List<Class> businessInterfaces)
Method Detail

getPrimaryKeyClass

public Class getPrimaryKeyClass()
Specified by:
getPrimaryKeyClass in interface javax.ejb.EJBMetaData

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Specified by:
getEJBHome in interface javax.ejb.EJBMetaData

getHomeInterfaceClass

public Class getHomeInterfaceClass()
Specified by:
getHomeInterfaceClass in interface javax.ejb.EJBMetaData

isStatelessSession

public boolean isStatelessSession()
Specified by:
isStatelessSession in interface javax.ejb.EJBMetaData

isStatefulSession

public boolean isStatefulSession()

isSingletonSession

public boolean isSingletonSession()

getRemoteInterfaceClass

public Class getRemoteInterfaceClass()
Specified by:
getRemoteInterfaceClass in interface javax.ejb.EJBMetaData

isSession

public boolean isSession()
Specified by:
isSession in interface javax.ejb.EJBMetaData

setEJBHomeProxy

protected void setEJBHomeProxy(EJBHomeProxy home)

getDeploymentID

public String getDeploymentID()

getHomeClass

public Class getHomeClass()

getBusinessClasses

public List<Class> getBusinessClasses()

getProperties

public Properties getProperties()

getPrimaryKey

public Object getPrimaryKey()

setPrimaryKey

public void setPrimaryKey(Object primaryKey)

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

toString

public String toString()
Overrides:
toString in class Object

loadProperties

public void loadProperties(Properties properties)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.