org.ow2.jonas.lib.svc
Class JMetaData

java.lang.Object
  extended by 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
 
Method Summary
 EJBHome getEJBHome()
           
 Class getHomeInterfaceClass()
           
 Class getPrimaryKeyClass()
           
 Class getRemoteInterfaceClass()
           
 boolean isSession()
           
 boolean isStatelessSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMetaData

public JMetaData(EJBHome home,
                 Class homeClass,
                 Class remoteClass,
                 boolean isSession,
                 boolean isStatelessSession,
                 Class primaryKeyClass)
Constructor

Parameters:
home - The EJBHome
homeClass - EJB Home class
remoteClass - EJB Remote class
isSession - true if is a Session Bean
isStatelessSession - true if is a StatelessSessionBean
primaryKeyClass - primary key class
Method Detail

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.