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

Examples of org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge


         // copy pk [JBAS-1361]
         Object pk = null;
         JDBCFieldBridge[] pkFields = manager.getEntityBridge().getPrimaryKeyFields();
         for(int i = 0; i < pkFields.length; ++i)
         {
            JDBCAbstractCMPFieldBridge pkField = ((JDBCAbstractCMPFieldBridge)pkFields[i]);
            Object fieldValue = pkField.getPrimaryKeyValue(args[0]);
            pk = pkField.setPrimaryKeyValue(pk, fieldValue);
         }

         final Object ejbObject = factory.getEntityEJBObject(pk);
         return Collections.singletonList(ejbObject);
      }
View Full Code Here


/*     */     {
/* 143 */       Object pk = null;
/* 144 */       JDBCFieldBridge[] pkFields = this.manager.getEntityBridge().getPrimaryKeyFields();
/* 145 */       for (int i = 0; i < pkFields.length; i++)
/*     */       {
/* 147 */         JDBCAbstractCMPFieldBridge pkField = (JDBCAbstractCMPFieldBridge)pkFields[i];
/* 148 */         Object fieldValue = pkField.getPrimaryKeyValue(args[0]);
/* 149 */         pk = pkField.setPrimaryKeyValue(pk, fieldValue);
/*     */       }
/*     */
/* 152 */       Object ejbObject = factory.getEntityEJBObject(pk);
/* 153 */       return Collections.singletonList(ejbObject);
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge

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.