BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class SchemaManagerBean

java.lang.Object
  |
  +--com.beasys.commerce.foundation.property.SchemaManagerBean

public class SchemaManagerBean
extends java.lang.Object
implements javax.ejb.SessionBean

SchemaManager handles the intricacies of retrieving schemas.

See Also:
Serialized Form

Constructor Summary
SchemaManagerBean()
           
 
Method Summary
 void ejbActivate()
          This method is required by the EJB Specification, but is not used by this example.
 void ejbCreate()
          Creates the session bean.
 void ejbPassivate()
          This method is required by the EJB Specification, but is not used by this example.
 void ejbRemove()
          This method is required by the EJB Specification, but is not used by this example.
 Schema getSchema(java.lang.String schemaName, java.lang.String schemaGroupName)
          Returns a schema given a schema name and a schema group name.
 SchemaHome getSchemaHome(java.lang.String schemaGroupName)
          Convenience method for returning the appropriate SchemaHome for a given schema group.
 java.util.Enumeration getSchemas(java.lang.String schemaGroupName)
          Returns an Enumeration containing all the schemas found for a particular schema group.
 void setSessionContext(javax.ejb.SessionContext ctx)
          Sets the session context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaManagerBean

public SchemaManagerBean()
Method Detail

ejbCreate

public void ejbCreate()
Creates the session bean.

ejbActivate

public void ejbActivate()
This method is required by the EJB Specification, but is not used by this example.
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
This method is required by the EJB Specification, but is not used by this example.
Specified by:
ejbRemove in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
This method is required by the EJB Specification, but is not used by this example.
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

setSessionContext

public final void setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context.
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Parameters:
ctx - Context for session

getSchemaHome

public SchemaHome getSchemaHome(java.lang.String schemaGroupName)
                         throws java.rmi.RemoteException,
                                SchemaManagerException
Convenience method for returning the appropriate SchemaHome for a given schema group.
Parameters:
schemaGroupName - the name of the schema group
Returns:
the SchemaHome for a given schema group
Throws:
RemoteException - EJB error
SchemaManagerException - general error

getSchema

public Schema getSchema(java.lang.String schemaName,
                        java.lang.String schemaGroupName)
                 throws java.rmi.RemoteException,
                        SchemaManagerException
Returns a schema given a schema name and a schema group name.
Parameters:
schemaName - the name of the schema (property set)
schemaGroupName - the name of the schema group in which the schema exists
Returns:
a schema given a schema name and a schema group name
Throws:
RemoteException - EJB error
SchemaManagerException - general error

getSchemas

public java.util.Enumeration getSchemas(java.lang.String schemaGroupName)
                                 throws java.rmi.RemoteException,
                                        SchemaManagerException
Returns an Enumeration containing all the schemas found for a particular schema group.
Parameters:
schemaGroupName - the name of the schema group in which the schema exists
Returns:
an Enumeration containing all the schemas found for a particular schema group
Throws:
RemoteException - EJB error
SchemaManagerException - general error

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved