mpoeschl    01/05/16 19:42:01

  Modified:    src/java/org/apache/turbine/torque
                        TorqueJDBCTransformTask.java
  Log:
  added getter methods
  it works for me (still needs work, but saved me a lot of typing ;-)
  
  Revision  Changes    Path
  1.6       +33 -7     
jakarta-turbine/src/java/org/apache/turbine/torque/TorqueJDBCTransformTask.java
  
  Index: TorqueJDBCTransformTask.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/torque/TorqueJDBCTransformTask.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TorqueJDBCTransformTask.java      2001/05/05 13:19:11     1.5
  +++ TorqueJDBCTransformTask.java      2001/05/17 02:42:00     1.6
  @@ -25,13 +25,13 @@
    *    Alternately, this acknowledgment may appear in the software itself,
    *    if and wherever such third-party acknowledgments normally appear.
    *
  - * 4. The names "Apache" and "Apache Software Foundation" and 
  - *    "Apache Turbine" must not be used to endorse or promote products 
  - *    derived from this software without prior written permission. For 
  + * 4. The names "Apache" and "Apache Software Foundation" and
  + *    "Apache Turbine" must not be used to endorse or promote products
  + *    derived from this software without prior written permission. For
    *    written permission, please contact [EMAIL PROTECTED]
    *
    * 5. Products derived from this software may not be called "Apache",
  - *    "Apache Turbine", nor may "Apache" appear in their name, without 
  + *    "Apache Turbine", nor may "Apache" appear in their name, without
    *    prior written permission of the Apache Software Foundation.
    *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  @@ -87,7 +87,7 @@
    * JDBC metadata.
    *
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
  - *  @version $Id: TorqueJDBCTransformTask.java,v 1.5 2001/05/05 13:19:11 jvanzyl 
Exp $
  + *  @version $Id: TorqueJDBCTransformTask.java,v 1.6 2001/05/17 02:42:00 mpoeschl 
Exp $
    */
   public class TorqueJDBCTransformTask extends Task
   {
  @@ -126,6 +126,32 @@
   
       XMLSerializer xmlSerializer;
   
  +
  +    public void setDbUrl(String v)
  +    {
  +        dbUrl = v;
  +    }
  +
  +    public void setDbDriver(String v)
  +    {
  +        dbDriver = v;
  +    }
  +
  +    public void setDbUser(String v)
  +    {
  +        dbUser = v;
  +    }
  +
  +    public void setDbPassword(String v)
  +    {
  +        dbPassword = v;
  +    }
  +
  +    public void setOutputFile (String v)
  +    {
  +        xmlSchema = v;
  +    }
  +
       /**
        * Default constructor.
        */
  @@ -133,13 +159,13 @@
       {
           props = new Properties();
           sqlTypes = new Properties();
  -        
  +/*
           xmlSchema = props.getProperty("jdbcXMLSchema");
           dbUrl = props.getProperty("dbUrl");
           dbDriver = props.getProperty("dbDriver");
           dbUser = props.getProperty("dbUser");
           dbPassword = props.getProperty("dbPassword");
  -
  +*/
           System.err.println("Torque - JDBCToXMLSchema starting\n");
           System.err.println("Your DB settings are:");
           System.err.println("driver : "+dbDriver);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to