PreparedStatement pStmt = this.conn.prepareStatement(insertTreeNodeRelationshipSQL);  pStmt.setString(1, child.getTree().getId()); pStmt.setString(2, child.getId()); pStmt.setString(3, parent.getId()); pStmt.executeUpdate();
PreparedStatement pStmt = null; try { pStmt = this.conn.prepareStatement(insertTreeNodeRelationshipSQL); pStmt.setString(1, child.getTree().getId()); pStmt.setString(2, child.getId()); pStmt.setString(3, parent.getId()); pStmt.executeUpdate(); } finally { if (pStmt != null) { pStmt.close(); } }
  private void newTreeNodeRelationship    (TreeNode child,     TreeNode parent)  throws    SQLException  {    PreparedStatement pStmt      = this.conn.prepareStatement(insertTreeNodeRelationshipSQL);      pStmt.setString(1, child.getTree().getId());    pStmt.setString(2, child.getId());    pStmt.setString(3, parent.getId());    pStmt.executeUpdate();    parent.addChild(child);        this.treeNodeRelationshipsAdded++;  }