|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData
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.
Constructor Summary | |
JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication,
Element element,
JDBCRelationMetaData defaultValues)
Constructs relation meta data with the data contained in the ejb-relation element or the defaults element from a jbosscmp-jdbc xml file. |
|
JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication,
RelationMetaData relationMetaData)
Constructs jdbc relation meta data with the data from the relation metadata loaded from the ejb-jar.xml file. |
Method Summary | |
boolean |
getAlterTable()
Should the relation table be altered on deploy. |
boolean |
getCreateTable()
Should the relation table be created on startup. |
DataSource |
getDataSource()
|
String |
getDefaultTableName()
Gets the name of the relation table. |
JDBCRelationshipRoleMetaData |
getLeftRelationshipRole()
Gets the left jdbc relationship role. |
JDBCRelationshipRoleMetaData |
getOtherRelationshipRole(JDBCRelationshipRoleMetaData role)
Gets the relationship role related to the specified role. |
int |
getReadTimeOut()
Gets the read time out length. |
String |
getRelationName()
Gets the relation name. |
boolean |
getRemoveTable()
Should the relation table be removed on shutdown. |
JDBCRelationshipRoleMetaData |
getRightRelationshipRole()
Gets the right jdbc relationship role. |
JDBCTypeMappingMetaData |
getTypeMapping()
Gets the jdbc type mapping for this entity |
boolean |
hasPrimaryKeyConstraint()
When the relation table is created, should it have a primary key constraint. |
boolean |
hasRowLocking()
Should select queries do row locking |
boolean |
isForeignKeyMappingStyle()
Should this relation use foreign keys for storage. |
boolean |
isReadOnly()
Is this relation read-only? |
boolean |
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. |
boolean |
isTableDropped()
|
boolean |
isTableMappingStyle()
Should this relation be mapped to a relation table. |
void |
setTableCreated()
|
void |
setTableDropped()
Sets table dropped flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, RelationMetaData relationMetaData) throws org.jboss.deployment.DeploymentException
jdbcApplication
- used to retrieve the entities of this relationrelationMetaData
- relation meta data loaded from the ejb-jar.xml
filepublic JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, Element element, JDBCRelationMetaData defaultValues) throws org.jboss.deployment.DeploymentException
jdbcApplication
- used to retrieve type mappings in table mapping
styleelement
- the xml Element which contains the metadata about this
relationdefaultValues
- the JDBCApplicationMetaData which contains the
values for optional elements of the element
org.jboss.deployment.DeploymentException
- if the xml element is not semantically
correctMethod Detail |
public String getRelationName()
public JDBCRelationshipRoleMetaData getLeftRelationshipRole()
public JDBCRelationshipRoleMetaData getRightRelationshipRole()
public JDBCRelationshipRoleMetaData getOtherRelationshipRole(JDBCRelationshipRoleMetaData role)
role
- the relationship role that the related role is desired
public boolean isTableMappingStyle()
public boolean isForeignKeyMappingStyle()
public JDBCTypeMappingMetaData getTypeMapping() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public String getDefaultTableName()
public boolean isTableCreated()
public void setTableCreated()
public void setTableDropped()
public boolean isTableDropped()
public boolean getCreateTable()
public boolean getRemoveTable()
public boolean getAlterTable()
public boolean hasPrimaryKeyConstraint()
public boolean isReadOnly()
public int getReadTimeOut()
public boolean hasRowLocking()
public DataSource getDataSource()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |