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

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


      // Related Entity Name
      String relatedEntityName = metadata.getRelatedRole().getEntity().getName();

      // Related Entity
      Catalog catalog = (Catalog) manager.getApplicationData("CATALOG");
      relatedEntity = (JDBCEntityBridge) catalog.getEntityByEJBName(relatedEntityName);
      if(relatedEntity == null)
      {
         throw new DeploymentException("Related entity not found: " +
            "entity=" +
            entity.getEntityName() +
View Full Code Here


   private static JDBCFieldBridge getCMPField(
      JDBCEntityPersistenceStore manager,
      Class intf,
      String fieldName)
   {
      Catalog catalog = manager.getCatalog();
      JDBCAbstractEntityBridge entityBridge = (JDBCAbstractEntityBridge)catalog.getEntityByInterface(intf);
      if(entityBridge == null)
      {
         throw new IllegalArgumentException("Entity not found in application " +
            "catalog with interface=" + intf.getName());
      }
View Full Code Here

      initStoreManager();


      // If all managers have been started (this is the last manager),
      // complete the other two phases of startup.
      Catalog catalog = getCatalog();
      HashMap managersMap = (HashMap)getApplicationData(CREATED_MANAGERS);
      if(catalog.getEntityCount() == managersMap.size()
         && catalog.getEJBNames().equals(managersMap.keySet()))
      {
         // Make a copy of the managers (for safty)
         ArrayList managers = new ArrayList(managersMap.values());

         //
View Full Code Here

      // create the bridge between java land and this engine (sql land)
      entityBridge = new JDBCEntityBridge(metaData, this);
      entityBridge.init();

      // add the entity bridge to the catalog
      Catalog catalog = getCatalog();
      if(catalog == null)
      {
         catalog = new Catalog();
         putApplicationData(CATALOG, catalog);
      }
      catalog.addEntity(entityBridge);

      // create the read ahead cache
      readAheadCache = new ReadAheadCache(this);
      readAheadCache.create();
View Full Code Here

      // Related Entity Name
      String relatedEntityName = metadata.getRelatedRole().getEntity().getName();

      // Related Entity
      Catalog catalog = (Catalog)manager.getApplicationData("CATALOG");
      relatedEntity = (JDBCEntityBridge2)catalog.getEntityByEJBName(relatedEntityName);
      if(relatedEntity == null)
      {
         throw new DeploymentException("Related entity not found: "
            +
            "entity="
View Full Code Here

      if(entityName == null)
      {
         return;
      }

      Catalog catalog = manager.getCatalog();

      JDBCEntityBridge entity = (JDBCEntityBridge)catalog.getEntityByEJBName(entityName);
      if(entity == null)
      {
         throw new DeploymentException("Unknown entity: " + entityName);
      }
View Full Code Here

      throws DeploymentException
   {
      String entityName = metadata.getEJBName();
      if(entityName != null)
      {
         Catalog catalog = entity.getManager().getCatalog();
         JDBCEntityBridge2 otherEntity = (JDBCEntityBridge2) catalog.getEntityByEJBName(entityName);
         if(otherEntity == null)
         {
            throw new DeploymentException("Unknown entity: " + entityName);
         }
         this.entity = otherEntity;
View Full Code Here

/* 346 */     param.set(ps, index, this.jdbcType, arg, log);
/*     */   }
/*     */
/*     */   private static JDBCFieldBridge getCMPField(JDBCEntityPersistenceStore manager, Class intf, String fieldName)
/*     */   {
/* 355 */     Catalog catalog = manager.getCatalog();
/* 356 */     JDBCAbstractEntityBridge entityBridge = (JDBCAbstractEntityBridge)catalog.getEntityByInterface(intf);
/* 357 */     if (entityBridge == null)
/*     */     {
/* 359 */       throw new IllegalArgumentException("Entity not found in application catalog with interface=" + intf.getName());
/*     */     }
/*     */
View Full Code Here

/*     */   public void start()
/*     */     throws Exception
/*     */   {
/* 368 */     initStoreManager();
/*     */
/* 373 */     Catalog catalog = getCatalog();
/* 374 */     HashMap managersMap = (HashMap)getApplicationData("CREATED_JDBCStoreManagers");
/* 375 */     if ((catalog.getEntityCount() == managersMap.size()) && (catalog.getEJBNames().equals(managersMap.keySet())))
/*     */     {
/* 379 */       ArrayList managers = new ArrayList(managersMap.values());
/*     */
/* 384 */       for (int i = 0; i < managers.size(); i++)
/*     */       {
View Full Code Here

/* 427 */     this.typeFactory = new JDBCTypeFactory(this.metaData.getTypeMapping(), this.metaData.getJDBCApplication().getValueClasses(), this.metaData.getJDBCApplication().getUserTypeMappings());
/*     */
/* 434 */     this.entityBridge = new JDBCEntityBridge(this.metaData, this);
/* 435 */     this.entityBridge.init();
/*     */
/* 438 */     Catalog catalog = getCatalog();
/* 439 */     if (catalog == null)
/*     */     {
/* 441 */       catalog = new Catalog();
/* 442 */       putApplicationData("CATALOG", catalog);
/*     */     }
/* 444 */     catalog.addEntity(this.entityBridge);
/*     */
/* 447 */     this.readAheadCache = new ReadAheadCache(this);
/* 448 */     this.readAheadCache.create();
/*     */
/* 451 */     this.commandFactory = new JDBCCommandFactory(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.