Package org.jboss.metadata.ejb.spec

Examples of org.jboss.metadata.ejb.spec.RelationRoleMetaData


    * @return the related role
    * @throws IllegalArgumentException if the reference role is not a role in this relationship
    */
   public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)
   {
      RelationRoleMetaData delegateRole = role.getDelegate();
      return new RelationshipRoleMetaData(getDelegate().getRelatedRole(delegateRole));
   }
View Full Code Here


    public boolean isIndexed() {
        return genIndex;
    }

    private static String generateNonNavigableCMRName(final RelationRoleMetaData role) {
        RelationRoleMetaData relatedRole = role.getRelatedRole();
        return relatedRole.getRoleSource().getEjbName() + "_" + relatedRole.getCmrField().getCmrFieldName();
    }
View Full Code Here

     * @param jdbcApplication  used to retrieve the entities of this relation
     * @param relationMetaData relation meta data loaded from the ejb-jar.xml
     *                         file
     */
    public JDBCRelationMetaData(final JDBCApplicationMetaData jdbcApplication, final RelationMetaData relationMetaData) {
        final RelationRoleMetaData leftRole = relationMetaData.getLeftRole();
        final RelationRoleMetaData rightRole = relationMetaData.getRightRole();

        // set the default mapping style
        if (leftRole.isMultiplicityMany() && rightRole.isMultiplicityMany()) {
            mappingStyle = MappingStyle.TABLE;
        } else {
            mappingStyle = MappingStyle.FOREIGN_KEY;
        }

View Full Code Here

    public boolean isIndexed() {
        return genIndex;
    }

    private static String generateNonNavigableCMRName(final RelationRoleMetaData role) {
        RelationRoleMetaData relatedRole = role.getRelatedRole();
        return relatedRole.getRoleSource().getEjbName() + "_" + relatedRole.getCmrField().getCmrFieldName();
    }
View Full Code Here

/* 107 */     return new RelationshipRoleMetaData(((org.jboss.metadata.ejb.spec.RelationMetaData)getDelegate()).getRightRole());
/*     */   }
/*     */
/*     */   public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)
/*     */   {
/* 119 */     RelationRoleMetaData delegateRole = (RelationRoleMetaData)role.getDelegate();
/* 120 */     return new RelationshipRoleMetaData(((org.jboss.metadata.ejb.spec.RelationMetaData)getDelegate()).getRelatedRole(delegateRole));
/*     */   }
View Full Code Here

    public boolean isIndexed() {
        return genIndex;
    }

    private static String generateNonNavigableCMRName(final RelationRoleMetaData role) {
        RelationRoleMetaData relatedRole = role.getRelatedRole();
        return relatedRole.getRoleSource().getEjbName() + "_" + relatedRole.getCmrField().getCmrFieldName();
    }
View Full Code Here

     * @param jdbcApplication  used to retrieve the entities of this relation
     * @param relationMetaData relation meta data loaded from the ejb-jar.xml
     *                         file
     */
    public JDBCRelationMetaData(final JDBCApplicationMetaData jdbcApplication, final RelationMetaData relationMetaData) {
        final RelationRoleMetaData leftRole = relationMetaData.getLeftRole();
        final RelationRoleMetaData rightRole = relationMetaData.getRightRole();

        // set the default mapping style
        if (leftRole.isMultiplicityMany() && rightRole.isMultiplicityMany()) {
            mappingStyle = MappingStyle.TABLE;
        } else {
            mappingStyle = MappingStyle.FOREIGN_KEY;
        }

View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.RelationRoleMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.