org.ow2.jonas.lib.svc
Class JMetaData
java.lang.Object
org.ow2.jonas.lib.svc.JMetaData
- All Implemented Interfaces:
- Serializable, EJBMetaData
public class JMetaData
- extends Object
- implements EJBMetaData, 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(EJBHome home,
Class homeClass,
Class remoteClass,
boolean isSession,
boolean isStatelessSession,
Class primaryKeyClass)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMetaData
public JMetaData(EJBHome home,
Class homeClass,
Class remoteClass,
boolean isSession,
boolean isStatelessSession,
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 EJBHome getEJBHome()
- Specified by:
getEJBHome
in interface EJBMetaData
- Returns:
- the home interface of the enterprise Bean.
getHomeInterfaceClass
public Class getHomeInterfaceClass()
- Specified by:
getHomeInterfaceClass
in interface EJBMetaData
- Returns:
- the Class object for the enterprise Bean's home interface.
getPrimaryKeyClass
public Class getPrimaryKeyClass()
- Specified by:
getPrimaryKeyClass
in interface EJBMetaData
- Returns:
- the Class object for the enterprise Bean's primary key class.
getRemoteInterfaceClass
public Class getRemoteInterfaceClass()
- Specified by:
getRemoteInterfaceClass
in interface EJBMetaData
- Returns:
- the Class object for the enterprise Bean's remote interface.
isSession
public boolean isSession()
- Specified by:
isSession
in interface EJBMetaData
- Returns:
- True if the enterprise Bean's type is "session".
isStatelessSession
public boolean isStatelessSession()
- Specified by:
isStatelessSession
in interface EJBMetaData
- Returns:
- True if the type of the enterprise Bean is stateless session.
Copyright © 2010 OW2 Consortium. All Rights Reserved.