Package org.jboss.ejb.plugins.cmp.bridge

Examples of org.jboss.ejb.plugins.cmp.bridge.EntityBridge


            throwUnknownPath("In path cmr field is collection valued",
                  fieldName);
         }
         fieldList.add(cmrField);
      } else {
         EntityBridge entityBridge = idManager.getEntity(fieldName);
         if(entityBridge == null) {
            throwUnknownPath("Unknown initial identifier", fieldName);
         }
         fieldList.add(entityBridge);
      }
View Full Code Here


            throwUnknownPath("In path cmr field is collection valued",
                  fieldName);
         }
         fieldList.add(cmrField);
      } else {
         EntityBridge entityBridge = idManager.getEntity(fieldName);
         if(entityBridge == null) {
            throwUnknownPath("Unknown initial identifier", fieldName);
         }
         fieldList.add(entityBridge);
      }
View Full Code Here

         JDBCAbstractCMRFieldBridge cmrField = cmrFields[i];
         JDBCRelationMetaData relationMetaData = cmrField.getMetaData().getRelationMetaData();
         DataSource dataSource = relationMetaData.getDataSource();

         // if the table for the related entity has been created
         final EntityBridge relatedEntity = cmrField.getRelatedEntity();
         if(relationMetaData.isTableMappingStyle() && createdTables.contains(relatedEntity.getEntityName()))
         {
            boolean relTableExisted = SQLUtil.tableExists(cmrField.getQualifiedTableName(), entity.getDataSource());

            if(relTableExisted)
            {
View Full Code Here

      JDBCAbstractCMRFieldBridge[] cmrFields = entity.getCMRFields();
      for(int i = 0; i < cmrFields.length; ++i)
      {
         JDBCAbstractCMRFieldBridge cmrField = cmrFields[i];
         EntityBridge relatedEntity = cmrField.getRelatedEntity();
         JDBCRelationMetaData relationMetaData = cmrField.getMetaData().getRelationMetaData();

         if(relationMetaData.isForeignKeyMappingStyle() && (createdTables.contains(relatedEntity.getEntityName())))
         {
            createCMRIndex(((JDBCAbstractEntityBridge)relatedEntity).getDataSource(), cmrField);
         }

         // Create fk constraint
View Full Code Here

/*  248 */     for (int i = 0; i < cmrFields.length; i++)
/*      */     {
/*  250 */       JDBCAbstractCMRFieldBridge cmrField = cmrFields[i];
/*  251 */       JDBCRelationMetaData relationMetaData = cmrField.getMetaData().getRelationMetaData();
/*      */
/*  254 */       EntityBridge relatedEntity = cmrField.getRelatedEntity();
/*  255 */       if ((!relationMetaData.isTableMappingStyle()) || (!createdTables.contains(relatedEntity.getEntityName())))
/*      */         continue;
/*  257 */       DataSource dataSource = relationMetaData.getDataSource();
/*      */
/*  259 */       boolean relTableExisted = SQLUtil.tableExists(cmrField.getQualifiedTableName(), this.entity.getDataSource());
/*      */
View Full Code Here

/*  346 */     for (int i = 0; i < cmrFields.length; i++)
/*      */     {
/*  348 */       JDBCAbstractCMRFieldBridge cmrField = cmrFields[i];
/*  349 */       JDBCRelationMetaData relationMetaData = cmrField.getMetaData().getRelationMetaData();
/*      */
/*  352 */       EntityBridge relatedEntity = cmrField.getRelatedEntity();
/*      */
/*  357 */       if ((relationMetaData.isForeignKeyMappingStyle()) && (createdTables.contains(relatedEntity.getEntityName())))
/*      */       {
/*  359 */         createCMRIndex(((JDBCAbstractEntityBridge)relatedEntity).getDataSource(), cmrField);
/*      */       }
/*      */
/*  363 */       addForeignKeyConstraint(cmrField);
View Full Code Here

/*   53 */         throwUnknownPath("In path cmr field is collection valued", fieldName);
/*      */       }
/*      */
/*   56 */       this.fieldList.add(cmrField);
/*      */     } else {
/*   58 */       EntityBridge entityBridge = this.idManager.getEntity(fieldName);
/*   59 */       if (entityBridge == null) {
/*   60 */         throwUnknownPath("Unknown initial identifier", fieldName);
/*      */       }
/*   62 */       this.fieldList.add(entityBridge);
/*      */     }
View Full Code Here

/*   53 */         throwUnknownPath("In path cmr field is collection valued", fieldName);
/*      */       }
/*      */
/*   56 */       this.fieldList.add(cmrField);
/*      */     } else {
/*   58 */       EntityBridge entityBridge = this.idManager.getEntity(fieldName);
/*   59 */       if (entityBridge == null) {
/*   60 */         throwUnknownPath("Unknown initial identifier", fieldName);
/*      */       }
/*   62 */       this.fieldList.add(entityBridge);
/*      */     }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.bridge.EntityBridge

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.