Package org.jboss.ejb

Examples of org.jboss.ejb.LocalProxyFactory


      {
         Set value = state.getLoadedValue(ctx);

         Object[] result = (Object[])Array.newInstance(relatedEntity.getLocalInterface(), value.size());

         LocalProxyFactory relatedPF = relatedContainer.getLocalProxyFactory();
         int i = 0;
         for(Iterator iter = value.iterator(); iter.hasNext();)
         {
            Object id = iter.next();
            result[i++] = relatedPF.getEntityEJBLocalObject(id);
         }

         return result;
      }
View Full Code Here


         if(a == null || a.length < value.size())
         {
            a = (Object[])Array.newInstance(entity.getLocalInterface(), value.size());
         }

         LocalProxyFactory relatedPF = relatedContainer.getLocalProxyFactory();
         int i = 0;
         for(Iterator iter = value.iterator(); iter.hasNext();)
         {
            Object id = iter.next();
            a[i++] = relatedPF.getEntityEJBLocalObject(id);
         }

         return a;
      }
View Full Code Here

/*      */     public Object[] toArray() {
/* 1666 */       Set value = JDBCCMRFieldBridge2.CollectionValuedFieldState.access$1800(this.state, this.ctx);
/*      */
/* 1668 */       Object[] result = (Object[])(Object[])Array.newInstance(JDBCCMRFieldBridge2.this.relatedEntity.getLocalInterface(), value.size());
/*      */
/* 1670 */       LocalProxyFactory relatedPF = JDBCCMRFieldBridge2.this.relatedContainer.getLocalProxyFactory();
/* 1671 */       int i = 0;
/* 1672 */       for (Iterator iter = value.iterator(); iter.hasNext(); )
/*      */       {
/* 1674 */         Object id = iter.next();
/* 1675 */         result[(i++)] = relatedPF.getEntityEJBLocalObject(id);
/*      */       }
/*      */
/* 1678 */       return result;
/*      */     }
View Full Code Here

/* 1684 */       if ((a == null) || (a.length < value.size()))
/*      */       {
/* 1686 */         a = (Object[])(Object[])Array.newInstance(JDBCCMRFieldBridge2.this.entity.getLocalInterface(), value.size());
/*      */       }
/*      */
/* 1689 */       LocalProxyFactory relatedPF = JDBCCMRFieldBridge2.this.relatedContainer.getLocalProxyFactory();
/* 1690 */       int i = 0;
/* 1691 */       for (Iterator iter = value.iterator(); iter.hasNext(); )
/*      */       {
/* 1693 */         Object id = iter.next();
/* 1694 */         a[(i++)] = relatedPF.getEntityEJBLocalObject(id);
/*      */       }
/*      */
/* 1697 */       return a;
/*      */     }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.LocalProxyFactory

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.