org.jboss.ejb.plugins.cmp.jdbc.metadata
Class JDBCApplicationMetaData

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData

public final class JDBCApplicationMetaData
extends java.lang.Object

This immutable class contains information about the application


Constructor Summary
JDBCApplicationMetaData(ApplicationMetaData (src)  applicationMetaData, java.lang.ClassLoader classLoader)
          Constructs jdbc application meta data with the data from the applicationMetaData.
JDBCApplicationMetaData(org.w3c.dom.Element element, JDBCApplicationMetaData (src)  defaultValues)
          Constructs application meta data with the data contained in the jboss-cmp xml element from a jbosscmp-jdbc xml file.
 
Method Summary
 JDBCEntityMetaData (src) getBeanByEjbName(java.lang.String name)
          Gets the metadata for an entity bean by name.
 java.lang.ClassLoader getClassLoader()
          Gets the classloader for this application which is used to load all classes.
 JDBCEntityCommandMetaData (src) getEntityCommandByName(java.lang.String name)
          Gets the entity command with the specified name
 java.util.Collection getRolesForEntity(java.lang.String entityName)
          Gets the relationship roles for the entity with the specified name.
 JDBCTypeMappingMetaData (src) getTypeMappingByName(java.lang.String name)
          Gets the type mapping with the specified name
 java.util.Map getUserTypeMappings()
           
 java.util.Collection getValueClasses()
          Gets dependent value classes that are directly managed by the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCApplicationMetaData

public JDBCApplicationMetaData(ApplicationMetaData (src)  applicationMetaData,
                               java.lang.ClassLoader classLoader)
                        throws DeploymentException (src) 
Constructs jdbc application meta data with the data from the applicationMetaData.

Parameters:
applicationMetaData - the application data loaded from the ejb-jar.xml file
classLoader - the ClassLoader used to load the classes of the application
Throws:
DeploymentException (src) - if an problem occures while loading the classes or if data in the ejb-jar.xml is inconsistent with data from jbosscmp-jdbc.xml file

JDBCApplicationMetaData

public JDBCApplicationMetaData(org.w3c.dom.Element element,
                               JDBCApplicationMetaData (src)  defaultValues)
                        throws DeploymentException (src) 
Constructs application meta data with the data contained in the jboss-cmp xml element from a jbosscmp-jdbc xml file. Optional values of the xml element that are not present are loaded from the defalutValues parameter.

Parameters:
element - the xml Element which contains the metadata about this application
defaultValues - the JDBCApplicationMetaData which contains the values for optional elements of the element
Throws:
DeploymentException (src) - if the xml element is not semantically correct
Method Detail

getTypeMappingByName

public JDBCTypeMappingMetaData (src)  getTypeMappingByName(java.lang.String name)
Gets the type mapping with the specified name

Parameters:
name - the name for the type mapping
Returns:
the matching type mapping or null if not found

getRolesForEntity

public java.util.Collection getRolesForEntity(java.lang.String entityName)
Gets the relationship roles for the entity with the specified name.

Parameters:
entityName - the name of the entity whos roles are returned
Returns:
an unmodifiable collection of JDBCRelationshipRoles of the specified entity

getValueClasses

public java.util.Collection getValueClasses()
Gets dependent value classes that are directly managed by the container.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Gets the classloader for this application which is used to load all classes.

Returns:
the ClassLoader for the application

getBeanByEjbName

public JDBCEntityMetaData (src)  getBeanByEjbName(java.lang.String name)
Gets the metadata for an entity bean by name.

Parameters:
name - the name of the entity meta data to return
Returns:
the entity meta data for the specified name

getEntityCommandByName

public JDBCEntityCommandMetaData (src)  getEntityCommandByName(java.lang.String name)
Gets the entity command with the specified name

Parameters:
name - the name for the entity-command
Returns:
the matching entity command or null if not found

getUserTypeMappings

public java.util.Map getUserTypeMappings()