This class represents one ejb-relation element in the ejb-jar.xml file. Most
properties of this class are immutable. The mutable properties have set
methods.
author: Dain Sundstrom author: Heiko W. Rupp version: $Revision: 57209 $
getOtherRelationshipRole(JDBCRelationshipRoleMetaData role) Gets the relationship role related to the specified role.
Parameters: role - the relationship role that the related role is desired the relationship role related to the specified role.
isTableCreated() Does the table exist yet? This does not mean that table has been created
by the appilcation, or the the database metadata has been checked for the
existance of the table, but that at this point the table is assumed to
exist.
Constructs jdbc relation meta data with the data from the relation
metadata loaded from the ejb-jar.xml file.
Parameters: jdbcApplication - used to retrieve the entities of this relation Parameters: relationMetaData - relation meta data loaded from the ejb-jar.xmlfile
Constructs relation meta data with the data contained in the ejb-relation
element or the defaults element from a jbosscmp-jdbc xml file. Optional
values of the xml element that are not present are loaded from the
defaultValues parameter.
Parameters: jdbcApplication - used to retrieve type mappings in table mappingstyle Parameters: element - the xml Element which contains the metadata about thisrelation Parameters: defaultValues - the JDBCApplicationMetaData which contains thevalues for optional elements of the element throws: DeploymentException - if the xml element is not semanticallycorrect
Gets the left jdbc relationship role. The relationship role is loaded
from an ejb-relationship-role. Left/right assignment is completely
arbitrary.
the left JDBCRelationshipRoleMetaData
Gets the relationship role related to the specified role.
Parameters: role - the relationship role that the related role is desired the relationship role related to the specified role. right roleof this relation
Gets the right jdbc relationship role. The relationship role is loaded
from an ejb-relationship-role. Left/right assignment is completely
arbitrary.
the right JDBCRelationshipRoleMetaData
When the relation table is created, should it have a primary key
constraint.
true if the store mananager should add a primary key constraintto the the create table sql statement
Does the table exist yet? This does not mean that table has been created
by the appilcation, or the the database metadata has been checked for the
existance of the table, but that at this point the table is assumed to
exist.
true if the table exists