Examples of JDBCAbstractEntityBridge


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

/*  817 */     return buf;
/*      */   }
/*      */
/*      */   public static StringBuffer getRelationTableJoinClause(JDBCAbstractCMRFieldBridge cmrField, String parentAlias, String relationTableAlias, StringBuffer buf)
/*      */   {
/*  825 */     JDBCAbstractEntityBridge parentEntity = cmrField.getEntity();
/*      */
/*  830 */     JDBCFieldBridge[] parentFields = cmrField.getTableKeyFields();
/*  831 */     int i = 0;
/*  832 */     while (i < parentFields.length)
/*      */     {
/*  834 */       JDBCFieldBridge relationField = parentFields[(i++)];
/*  835 */       JDBCFieldBridge parentField = (JDBCFieldBridge)parentEntity.getFieldByName(relationField.getFieldName());
/*  836 */       getJoinClause(parentField, parentAlias, relationField, relationTableAlias, buf);
/*  837 */       if (i < parentFields.length)
/*  838 */         buf.append(" AND ");
/*      */     }
/*  840 */     return buf;
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.