public void save (Connection conn) throws BugTrackException, SQLException {
public void save (Connection conn) throws SQLException {
    public void save (Connection conn)        throws BugTrackException, SQLException    {        boolean is_new = isNew();        String query            = (is_new               ? ("insert into " + tableName() + " (" + recordIDColumnName()                  + ",mod_count,date_entered,date_modified,name,status) values (?,?,?,?,?,?)")               : ("update " + tableName() + " set mod_count = ?, date_entered = ?, "                  + "date_modified = ?, name = ?, status = ? where " + recordIDColumnName() + " = ?"));        int idx = 1;        PreparedStatement ps = conn.prepareStatement(query);        if (is_new) {            ps.setInt(idx++, getId().intValue());        }        int new_mod_count = mod_count.intValue() + 1;        ps.setInt(idx++, new_mod_count);        ps.setTimestamp(idx++, date_entered);        ps.setTimestamp(idx++, date_modified); // ---TODO: set to current time        ps.setString(idx++, getName());        ps.setString(idx++, getStatus());        if (!is_new) {            ps.setInt(idx++, getId().intValue());        }        ps.executeUpdate();        ps.close();        // Only increment the mod_count if there was no exception during the save.        setModCount(new Integer(new_mod_count));    }