/* */ }
/* */ }
/* */
/* */ private Object loadField(int i)
/* */ {
/* 1742 */ JDBCCMPFieldBridge2 field = (JDBCCMPFieldBridge2)EntityTable.this.entity.getFields().get(i);
/* */
/* 1744 */ StringBuffer query = new StringBuffer();
/* 1745 */ query.append("select ").append(field.getColumnName()).append(" from ").append(EntityTable.this.tableName).append(" where ");
/* */
/* 1751 */ JDBCCMPFieldBridge2[] pkFields = (JDBCCMPFieldBridge2[])(JDBCCMPFieldBridge2[])EntityTable.this.entity.getPrimaryKeyFields();
/* 1752 */ for (int pkI = 0; pkI < pkFields.length; pkI++)
/* */ {
/* 1754 */ if (pkI > 0)
/* */ {
/* 1756 */ query.append(" and ");
/* */ }
/* 1758 */ query.append(pkFields[pkI].getColumnName()).append("=?");
/* */ }
/* */
/* 1761 */ if (EntityTable.this.log.isDebugEnabled())
/* */ {
/* 1763 */ EntityTable.this.log.debug("executing: " + query.toString());
/* */ }
/* */
/* 1766 */ Object value = null;
/* 1767 */ Connection con = null;
/* 1768 */ PreparedStatement ps = null;
/* 1769 */ ResultSet rs = null;
/* */ try
/* */ {
/* 1773 */ con = EntityTable.this.dataSource.getConnection();
/* 1774 */ ps = con.prepareStatement(query.toString());
/* */
/* 1776 */ for (int pkI = 0; pkI < pkFields.length; pkI++)
/* */ {
/* 1778 */ JDBCCMPFieldBridge2 pkField = pkFields[pkI];
/* 1779 */ Object fieldValue = this.fields[pkField.getRowIndex()];
/* 1780 */ pkField.setArgumentParameters(ps, pkI + 1, fieldValue);
/* */ }
/* */
/* 1783 */ rs = ps.executeQuery();
/* */
/* 1785 */ if (!rs.next())