PreparedStatement pStmt = this.conn.prepareStatement(insertTreeSQL);  pStmt.setString(1, id); pStmt.setString(2, name); pStmt.setString(3, adapterClassName); pStmt.setDate(4, new Date(new java.util.Date().getTime())); pStmt.executeUpdate();
PreparedStatement pStmt = null; try { pStmt = this.conn.prepareStatement(insertTreeSQL); pStmt.setString(1, id); pStmt.setString(2, name); pStmt.setString(3, adapterClassName); pStmt.setDate(4, new Date(new java.util.Date().getTime())); pStmt.executeUpdate(); } finally { if (pStmt != null) { pStmt.close(); } }
  public Tree newTree    (String id,     String name,     String adapterClassName)  throws    SQLException  {    PreparedStatement pStmt      = this.conn.prepareStatement(insertTreeSQL);      pStmt.setString(1, id);    pStmt.setString(2, name);    pStmt.setString(3, adapterClassName);    pStmt.setDate(4, new Date(new java.util.Date().getTime()));    pStmt.executeUpdate();        Tree tree = new TreeImpl(id, name, adapterClassName);    this.treesAdded++;    return tree;  }