Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 96906 invoked from network); 22 Nov 2010 00:05:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 00:05:04 -0000 Received: (qmail 65432 invoked by uid 500); 22 Nov 2010 00:05:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 65404 invoked by uid 500); 22 Nov 2010 00:05:35 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 65395 invoked by uid 99); 22 Nov 2010 00:05:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 00:05:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 00:05:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAM05EHe001518 for ; Mon, 22 Nov 2010 00:05:14 GMT Message-ID: <18029432.225921290384314451.JavaMail.jira@thor> Date: Sun, 21 Nov 2010 19:05:14 -0500 (EST) From: "Brian Topping (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-3145) Refactor toSQL method as visitor pattern In-Reply-To: <2375411.225901290384074443.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brian Topping updated CXF-3145: ------------------------------- Attachment: cxf3145.patch > Refactor toSQL method as visitor pattern > ---------------------------------------- > > Key: CXF-3145 > URL: https://issues.apache.org/jira/browse/CXF-3145 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 2.3.0 > Reporter: Brian Topping > Priority: Minor > Attachments: cxf3145.patch > > > In doing some work with the FIQL parser, I needed to generate a different output than SQL. By using a visitor pattern for rendering the SQL, any visitor can be applied to the SearchCondition object graph. > The attached patch provides that refactoring. > As a part of that, SearchCondition.toSql() is deprecated, but I maintained the interface for maximum compatibility. > There was also a change to SearchCondition.getSearchConditions(). There were no callers to that code except test code, and it was set up to return null if there was only one condition. That wasn't clear to me, hopefully that change is not unreasonable. > This may not be formatted properly, please adjust to suit. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.