Package org.jboss.ejb.plugins.cmp.ejbql

Examples of org.jboss.ejb.plugins.cmp.ejbql.Catalog


/*     */     throws DeploymentException
/*     */   {
/*  63 */     String entityName = metadata.getEJBName();
/*  64 */     if (entityName != null)
/*     */     {
/*  66 */       Catalog catalog = entity.getManager().getCatalog();
/*  67 */       JDBCEntityBridge2 otherEntity = (JDBCEntityBridge2)catalog.getEntityByEJBName(entityName);
/*  68 */       if (otherEntity == null)
/*     */       {
/*  70 */         throw new DeploymentException("Unknown entity: " + entityName);
/*     */       }
/*  72 */       this.entity = otherEntity;
View Full Code Here


/*  90 */     if (entityName == null)
/*     */     {
/*  92 */       return;
/*     */     }
/*     */
/*  95 */     Catalog catalog = manager.getCatalog();
/*     */
/*  97 */     JDBCEntityBridge entity = (JDBCEntityBridge)catalog.getEntityByEJBName(entityName);
/*  98 */     if (entity == null)
/*     */     {
/* 100 */       throw new DeploymentException("Unknown entity: " + entityName);
/*     */     }
/*     */
View Full Code Here

/*      */   public void resolveRelationship()
/*      */     throws DeploymentException
/*      */   {
/*  243 */     String relatedEntityName = this.metadata.getRelatedRole().getEntity().getName();
/*      */
/*  246 */     Catalog catalog = (Catalog)this.manager.getApplicationData("CATALOG");
/*  247 */     this.relatedEntity = ((JDBCEntityBridge)catalog.getEntityByEJBName(relatedEntityName));
/*  248 */     if (this.relatedEntity == null)
/*      */     {
/*  250 */       throw new DeploymentException("Related entity not found: entity=" + this.entity.getEntityName() + ", " + "cmrField=" + getFieldName() + ", " + "relatedEntity=" + relatedEntityName);
/*      */     }
/*      */
View Full Code Here

/*      */   public void resolveRelationship()
/*      */     throws DeploymentException
/*      */   {
/*  130 */     String relatedEntityName = this.metadata.getRelatedRole().getEntity().getName();
/*      */
/*  133 */     Catalog catalog = (Catalog)this.manager.getApplicationData("CATALOG");
/*  134 */     this.relatedEntity = ((JDBCEntityBridge2)catalog.getEntityByEJBName(relatedEntityName));
/*  135 */     if (this.relatedEntity == null)
/*      */     {
/*  137 */       throw new DeploymentException("Related entity not found: entity=" + this.entity.getEntityName() + ", " + "cmrField=" + getFieldName() + ", " + "relatedEntity=" + relatedEntityName);
/*      */     }
/*      */
View Full Code Here

/* 106 */     return this.schema;
/*     */   }
/*     */
/*     */   public Catalog getCatalog()
/*     */   {
/* 111 */     Catalog catalog = (Catalog)getApplicationData("CATALOG");
/* 112 */     if (catalog == null)
/*     */     {
/* 114 */       catalog = new Catalog();
/* 115 */       putApplicationData("CATALOG", catalog);
/*     */     }
/* 117 */     return catalog;
/*     */   }
View Full Code Here

/*     */   public void start() throws Exception
/*     */   {
/* 175 */     initStoreManager();
/*     */
/* 177 */     HashMap managersMap = (HashMap)getApplicationData("CREATED_JDBCStoreManagers");
/* 178 */     Catalog catalog = getCatalog();
/* 179 */     if ((catalog.getEntityCount() == managersMap.size()) && (catalog.getEJBNames().equals(managersMap.keySet())))
/*     */     {
/* 182 */       List managers = new ArrayList(managersMap.values());
/*     */
/* 185 */       for (int i = 0; i < managers.size(); i++)
/*     */       {
View Full Code Here

/* 432 */     this.typeFactory = new JDBCTypeFactory(this.metaData.getTypeMapping(), this.metaData.getJDBCApplication().getValueClasses(), this.metaData.getJDBCApplication().getUserTypeMappings());
/*     */
/* 437 */     this.entityBridge = new JDBCEntityBridge2(this, this.metaData);
/* 438 */     this.entityBridge.init();
/*     */
/* 440 */     Catalog catalog = getCatalog();
/* 441 */     catalog.addEntity(this.entityBridge);
/*     */
/* 443 */     this.stop = new JDBCStopCommand(this);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.ejbql.Catalog

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.