Return-Path: Mailing-List: contact turbine-torque-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-dev@jakarta.apache.org Received: (qmail 27055 invoked by uid 97); 11 Dec 2002 18:03:29 -0000 Received: (qmail 27051 invoked by uid 98); 11 Dec 2002 18:03:28 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 26625 invoked from network); 11 Dec 2002 18:03:25 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 11 Dec 2002 18:03:25 -0000 Received: (qmail 95958 invoked by uid 500); 11 Dec 2002 18:02:13 -0000 Received: (qmail 95950 invoked from network); 11 Dec 2002 18:02:13 -0000 Received: from icarus.apache.org (63.251.56.143) by daedalus.apache.org with SMTP; 11 Dec 2002 18:02:13 -0000 Received: (qmail 23998 invoked by uid 1280); 11 Dec 2002 18:02:12 -0000 Date: 11 Dec 2002 18:02:12 -0000 Message-ID: <20021211180212.23997.qmail@icarus.apache.org> From: mpoeschl@apache.org To: jakarta-turbine-torque-cvs@apache.org Subject: cvs commit: jakarta-turbine-torque/src/java/org/apache/torque Torque.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mpoeschl 2002/12/11 10:02:12 Modified: src/java/org/apache/torque Torque.java Log: remove deprecated methods Revision Changes Path 1.74 +4 -56 jakarta-turbine-torque/src/java/org/apache/torque/Torque.java Index: Torque.java =================================================================== RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/Torque.java,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- Torque.java 28 Nov 2002 18:52:02 -0000 1.73 +++ Torque.java 11 Dec 2002 18:02:12 -0000 1.74 @@ -103,8 +103,7 @@ Disposable { /** - * Name of property that specifies the default - * map builder and map. + * Name of property that specifies the default map builder and map. */ public static final String DATABASE_DEFAULT = "database.default"; @@ -130,7 +129,6 @@ */ public static final String CACHE_KEY = "manager.useCache"; - /** * The db name that is specified as the default in the property file */ @@ -159,8 +157,8 @@ /** * The logging category. */ - private static Category category = - Category.getInstance(Torque.class.getName()); + private static Category category + = Category.getInstance(Torque.class.getName()); /** * Torque-specific configuration. @@ -874,47 +872,6 @@ } /** - * This method returns a Connecton using the given parameters. - * - * @param name The database name. - * @param username The name of the database user. - * @param password The password of the database user. - * @return A Connection. - * @throws TorqueException Any exceptions caught during processing will be - * rethrown wrapped into a TorqueException. - * - * @deprecated Database parameters should not be specified each - * time a Connection is fetched from the service. - */ - public static Connection getConnection(String name, - String username, - String password) - throws TorqueException - { - Connection con = null; - DataSourceFactory dsf = null; - try - { - dsf = (DataSourceFactory) dsFactoryMap.get(name); - con = dsf.getDataSource().getConnection(username, password); - } - catch (Exception e) - { - if (dsf == null && e instanceof NullPointerException) - { - throw new NullPointerException( - "There was no DataSourceFactory " - + "configured for the connection " + name); - } - else - { - throw new TorqueException(e); - } - } - return con; - } - - /** * * @param name The database name. * @return a database connection @@ -981,15 +938,6 @@ } return defaultDBName; - } - - /** - * @return name of the default Map - * @deprecated Use getDefaultDB() instead. - */ - public static String getDefaultMap() - { - return getDefaultDB(); } /**