org.objectweb.jonas_ejb.svc
Class JMetaData
java.lang.Object
org.objectweb.jonas_ejb.svc.JMetaData
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EJBMetaData
public class JMetaData
- extends java.lang.Object
- implements javax.ejb.EJBMetaData, java.io.Serializable
This class is a Serializable class that allows a client to obtain the
enterprise Bean's meta-data information.
- Author:
- Philippe Coq
- See Also:
- Serialized Form
Constructor Summary |
JMetaData(javax.ejb.EJBHome home,
java.lang.Class homeClass,
java.lang.Class remoteClass,
boolean isSession,
boolean isStatelessSession,
java.lang.Class primaryKeyClass)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMetaData
public JMetaData(javax.ejb.EJBHome home,
java.lang.Class homeClass,
java.lang.Class remoteClass,
boolean isSession,
boolean isStatelessSession,
java.lang.Class primaryKeyClass)
- Constructor
- Parameters:
home
- The EJBHomehomeClass
- EJB Home classremoteClass
- EJB Remote classisSession
- true if is a Session BeanisStatelessSession
- true if is a StatelessSessionBeanprimaryKeyClass
- primary key class
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHome
in interface javax.ejb.EJBMetaData
- Returns:
- the home interface of the enterprise Bean.
getHomeInterfaceClass
public java.lang.Class getHomeInterfaceClass()
- Specified by:
getHomeInterfaceClass
in interface javax.ejb.EJBMetaData
- Returns:
- the Class object for the enterprise Bean's home interface.
getPrimaryKeyClass
public java.lang.Class getPrimaryKeyClass()
- Specified by:
getPrimaryKeyClass
in interface javax.ejb.EJBMetaData
- Returns:
- the Class object for the enterprise Bean's primary key class.
getRemoteInterfaceClass
public java.lang.Class getRemoteInterfaceClass()
- Specified by:
getRemoteInterfaceClass
in interface javax.ejb.EJBMetaData
- Returns:
- the Class object for the enterprise Bean's remote interface.
isSession
public boolean isSession()
- Specified by:
isSession
in interface javax.ejb.EJBMetaData
- Returns:
- True if the enterprise Bean's type is "session".
isStatelessSession
public boolean isStatelessSession()
- Specified by:
isStatelessSession
in interface javax.ejb.EJBMetaData
- Returns:
- True if the type of the enterprise Bean is stateless session.