|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.property.SchemaManagerBean
SchemaManager
handles the intricacies of retrieving schemas.
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. |
java.util.Map |
getDefaultValues(java.lang.String schemaName,
java.lang.String schemaGroupName)
Returns a Map of property name/default values for all
properties in the given schema. |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaManagerBean()
Method Detail |
public void ejbCreate()
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public final void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- Context for sessionpublic SchemaHome getSchemaHome(java.lang.String schemaGroupName) throws java.rmi.RemoteException, SchemaManagerException
SchemaHome
for a given schema group.schemaGroupName
- the name of the schema groupSchemaHome
for a given schema groupRemoteException
- EJB errorSchemaManagerException
- general errorpublic Schema getSchema(java.lang.String schemaName, java.lang.String schemaGroupName) throws java.rmi.RemoteException, SchemaManagerException
schemaName
- the name of the schema (property set)schemaGroupName
- the name of the schema group in which the schema
existsRemoteException
- EJB errorSchemaManagerException
- general errorpublic java.util.Enumeration getSchemas(java.lang.String schemaGroupName) throws java.rmi.RemoteException, SchemaManagerException
Enumeration
containing all the schemas found
for a particular schema group.schemaGroupName
- the name of the schema group in which the schema
existsEnumeration
containing all the schemas found
for a particular schema groupRemoteException
- EJB errorSchemaManagerException
- general errorpublic java.util.Map getDefaultValues(java.lang.String schemaName, java.lang.String schemaGroupName) throws java.rmi.RemoteException, SchemaManagerException
Map
of property name/default values for all
properties in the given schema. If a property does not have a default
value, the property name will be a key with a null value.schemaName
- the name of the schema (property set)schemaGroupName
- the name of the schema group in which the schema
exists
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |