jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hor...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/rt/sql TransactionTag.java UpdateTag.java
Date Thu, 04 Apr 2002 02:21:14 GMT
horwat      02/04/03 18:21:14

  Modified:    standard/src/org/apache/taglibs/standard/tag/rt/sql
                        TransactionTag.java UpdateTag.java
  Log:
  The runtime DataSource setter for the Update and Transaction actions should accept either
a DataSource or String type.
  
  Bugzilla 7736
  
  Revision  Changes    Path
  1.2       +10 -2     jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/rt/sql/TransactionTag.java
  
  Index: TransactionTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/rt/sql/TransactionTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransactionTag.java	11 Dec 2001 22:13:51 -0000	1.1
  +++ TransactionTag.java	4 Apr 2002 02:21:14 -0000	1.2
  @@ -65,7 +65,15 @@
    */
   public class TransactionTag extends TransactionTagSupport {
       
  -    public void setDataSource(DataSource dataSource) {
  -	this.dataSource = dataSource;
  +    //*********************************************************************
  +    // Accessor methods
  +
  +
  +    /**
  +     * Setter method for the SQL DataSource. DataSource can be
  +     * a String or a DataSource object.
  +     */
  +    public void setDataSource(Object dataSource) {
  +	this.rawDataSource = dataSource;
       }
   }
  
  
  
  1.2       +10 -2     jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/rt/sql/UpdateTag.java
  
  Index: UpdateTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/rt/sql/UpdateTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UpdateTag.java	11 Dec 2001 22:13:52 -0000	1.1
  +++ UpdateTag.java	4 Apr 2002 02:21:14 -0000	1.2
  @@ -65,9 +65,17 @@
    * @author Hans Bergsten
    */
   public class UpdateTag extends UpdateTagSupport {
  +
  +    //*********************************************************************
  +    // Accessor methods
  +
       
  -    public void setDataSource(DataSource dataSource) {
  -	this.dataSource = dataSource;
  +    /**
  +     * Setter method for the SQL DataSource. DataSource can be
  +     * a String or a DataSource object.
  +     */
  +    public void setDataSource(Object dataSource) {
  +	this.rawDataSource = dataSource;
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message