Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 12058 invoked from network); 28 Oct 2008 21:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 21:15:25 -0000 Received: (qmail 19905 invoked by uid 500); 28 Oct 2008 21:15:29 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 19850 invoked by uid 500); 28 Oct 2008 21:15:29 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 19841 invoked by uid 99); 28 Oct 2008 21:15:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 14:15:29 -0700 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 21:14:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F1B562388961; Tue, 28 Oct 2008 14:14:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r708671 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java Date: Tue, 28 Oct 2008 21:14:25 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081028211425.F1B562388961@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: oheger Date: Tue Oct 28 14:14:25 2008 New Revision: 708671 URL: http://svn.apache.org/viewvc?rev=708671&view=rev Log: Let DatabaseConfiguration extend AbstractFlatConfiguration rather than AbstractConfiguration. Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java?rev=708671&r1=708670&r2=708671&view=diff ============================================================================== --- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java (original) +++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java Tue Oct 28 14:14:25 2008 @@ -31,6 +31,8 @@ import javax.sql.DataSource; +import org.apache.commons.configuration2.flat.AbstractFlatConfiguration; + /** * Configuration stored in a database. The properties are retrieved from a * table containing at least one column for the keys, and one column for the @@ -80,7 +82,7 @@ * @author Emmanuel Bourg * @version $Revision$, $Date$ */ -public class DatabaseConfiguration extends AbstractConfiguration +public class DatabaseConfiguration extends AbstractFlatConfiguration { /** Constant for the statement used by getProperty.*/ private static final String SQL_GET_PROPERTY = "SELECT * FROM %s WHERE %s =?";