Examples of JDBCQueryCommand


Examples of org.jboss.as.cmp.jdbc.JDBCQueryCommand

    public Object execute(CmpEntityBeanContext ctx, Object[] args) throws FinderException {
        Collection retVal;
        Method method = getMethod();
        try {
            JDBCQueryCommand query = manager.getQueryManager().getQueryCommand(method);
            final CmpEntityBeanComponent selectedComponent = query.getSelectManager().getComponent();
            JDBCQueryCommand.EntityProxyFactory factory = new JDBCQueryCommand.EntityProxyFactory() {
                public Object getEntityObject(Object primaryKey) {
                    return queryMetaData.isResultTypeMappingLocal() && selectedComponent.getLocalHomeClass() != null ?
                            selectedComponent.getEJBLocalObject(primaryKey) : selectedComponent.getEJBObject(primaryKey);
                }
            };
            retVal = query.execute(method, args, null, factory);
        } catch (FinderException e) {
            throw e;
        } catch (EJBException e) {
            throw e;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCQueryCommand

    public Object execute(CmpEntityBeanContext ctx, Object[] args) throws FinderException {
        Collection retVal;
        Method method = getMethod();
        try {
            JDBCQueryCommand query = manager.getQueryManager().getQueryCommand(method);
            final CmpEntityBeanComponent selectedComponent = query.getSelectManager().getComponent();
            JDBCQueryCommand.EntityProxyFactory factory = new JDBCQueryCommand.EntityProxyFactory() {
                public Object getEntityObject(Object primaryKey) {
                    return queryMetaData.isResultTypeMappingLocal() && selectedComponent.getLocalHomeClass() != null ?
                            selectedComponent.getEjbLocalObject(primaryKey) : selectedComponent.getEJBObject(primaryKey);
                }
            };
            retVal = query.execute(method, args, null, factory);
        } catch (FinderException e) {
            throw e;
        } catch (EJBException e) {
            throw e;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCQueryCommand

    public Object execute(CmpEntityBeanContext ctx, Object[] args) throws FinderException {
        Collection retVal;
        Method method = getMethod();
        try {
            JDBCQueryCommand query = manager.getQueryManager().getQueryCommand(method);
            final CmpEntityBeanComponent selectedComponent = query.getSelectManager().getComponent();
            JDBCQueryCommand.EntityProxyFactory factory = new JDBCQueryCommand.EntityProxyFactory() {
                public Object getEntityObject(Object primaryKey) {
                    return queryMetaData.isResultTypeMappingLocal() && selectedComponent.getLocalHomeClass() != null ?
                            selectedComponent.getEJBLocalObject(primaryKey) : selectedComponent.getEJBObject(primaryKey);
                }
            };
            retVal = query.execute(method, args, null, factory);
        } catch (FinderException e) {
            throw e;
        } catch (EJBException e) {
            throw e;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryCommand

   {
      Collection retVal;
      Method method = getMethod();
      try
      {
         JDBCQueryCommand query = manager.getQueryManager().getQueryCommand(method);
         EntityContainer selectedContainer = query.getSelectManager().getContainer();
         GenericEntityObjectFactory factory;
         if(queryMetaData.isResultTypeMappingLocal() && selectedContainer.getLocalHomeClass() != null)
         {
            factory = selectedContainer.getLocalProxyFactory();
         }
         else
         {
            factory = selectedContainer.getProxyFactory();
         }

         retVal = query.execute(method, args, null, factory);
      }
      catch(FinderException e)
      {
         throw e;
      }
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryCommand

/*     */
/*     */   public Object execute(Object[] args) throws FinderException {
/* 106 */     Method method = getMethod();
/*     */     Collection retVal;
/*     */     try {
/* 109 */       JDBCQueryCommand query = this.manager.getQueryManager().getQueryCommand(method);
/* 110 */       EntityContainer selectedContainer = query.getSelectManager().getContainer();
/*     */       GenericEntityObjectFactory factory;
/*     */       GenericEntityObjectFactory factory;
/* 112 */       if ((this.queryMetaData.isResultTypeMappingLocal()) && (selectedContainer.getLocalHomeClass() != null))
/*     */       {
/* 114 */         factory = selectedContainer.getLocalProxyFactory();
/*     */       }
/*     */       else
/*     */       {
/* 118 */         factory = selectedContainer.getProxyFactory();
/*     */       }
/*     */
/* 121 */       retVal = query.execute(method, args, null, factory);
/*     */     }
/*     */     catch (FinderException e)
/*     */     {
/* 125 */       throw e;
/*     */     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.