/* */ }
/* */ }
/* */
/* */ public void load(EntityEnterpriseContext ctx, JDBCCMRFieldBridge2.FieldState state)
/* */ {
/* 1347 */ EntityTable relatedTable = JDBCCMRFieldBridge2.this.relatedEntity.getTable();
/* */
/* 1349 */ Connection con = null;
/* 1350 */ PreparedStatement ps = null;
/* 1351 */ ResultSet rs = null;
/* */ try
/* */ {
/* 1354 */ if (JDBCCMRFieldBridge2.this.log.isDebugEnabled())
/* */ {
/* 1356 */ JDBCCMRFieldBridge2.this.log.debug("executing: " + this.loadSql);
/* */ }
/* */
/* 1359 */ con = relatedTable.getDataSource().getConnection();
/* 1360 */ ps = con.prepareStatement(this.loadSql);
/* */
/* 1362 */ JDBCCMPFieldBridge2[] relatedFkFields = JDBCCMRFieldBridge2.access$300(JDBCCMRFieldBridge2.this).foreignKeyFields;
/* 1363 */ JDBCCMPFieldBridge2[] myPkFields = JDBCCMRFieldBridge2.access$300(JDBCCMRFieldBridge2.this).relatedPKFields;
/* */
/* 1365 */ Object myPk = ctx.getId();
/* 1366 */ int paramInd = 1;
/* 1367 */ for (int i = 0; i < relatedFkFields.length; i++)
/* */ {
/* 1369 */ JDBCCMPFieldBridge2 myPkField = myPkFields[i];
/* 1370 */ Object fieldValue = myPkField.getPrimaryKeyValue(myPk);
/* */
/* 1372 */ JDBCCMPFieldBridge2 relatedFkField = relatedFkFields[i];
/* 1373 */ relatedFkField.setArgumentParameters(ps, paramInd++, fieldValue);
/* */ }
/* */
/* 1376 */ rs = ps.executeQuery();
/* */
/* 1378 */ while (rs.next())
/* */ {
/* 1380 */ Object value = relatedTable.loadRow(rs, false);
/* 1381 */ state.addLoadedPk(value);
/* */ }
/* */ }
/* */ catch (SQLException e)
/* */ {