You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2001/10/30 20:35:56 UTC

cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport AlterRequest.java GrantRequest.java Request.java

hammant     01/10/30 11:35:56

  Modified:    apps/db/src/java/org/apache/avalon/db/transport Request.java
  Added:       apps/db/src/java/org/apache/avalon/db/actions Alter.java
                        Grant.java
               apps/db/src/java/org/apache/avalon/db/transport
                        AlterRequest.java GrantRequest.java
  Log:
  New actions and commands from Gerhard Froehlich
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/actions/Alter.java
  
  Index: Alter.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.db.actions;
  
  
  
  /**
   * Interface Alter
   *
   *
   * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
   */
  public interface Alter extends WriteAction {}
  
  
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/actions/Grant.java
  
  Index: Grant.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.db.actions;
  
  
  
  /**
   * Interface Grant
   *
   *
   * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
   */
  public interface Grant extends WriteAction {}
  
  
  1.5       +3 -1      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/Request.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Request.java	2001/10/29 15:18:16	1.4
  +++ Request.java	2001/10/30 19:35:56	1.5
  @@ -18,7 +18,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    */
   public abstract class Request implements Serializable {
   
  @@ -40,6 +40,8 @@
       public static final int DELETE = 125;
       public static final int UPDATE = 126;
       public static final int RESULTSETCLOSE = 127;
  +    public static final int ALTER = 128;
  +    public static final int GRANT = 129;
   
       private int mRequestCode;
   
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/AlterRequest.java
  
  Index: AlterRequest.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.db.transport;
  
  
  
  /**
   * Class AlterRequest
   *
   *
   * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
   */
  public class AlterRequest extends WriteRequest {
  
      /**
       * Constructor InsertRequest
       *
       *
       * @param sql
       *
       */
      public AlterRequest(String sql) {
          super(Request.ALTER, sql);
      }
  }
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/GrantRequest.java
  
  Index: GrantRequest.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.db.transport;
  
  
  
  /**
   * Class GrantRequest
   *
   *
   * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
   */
  public class GrantRequest extends WriteRequest {
  
      /**
       * Constructor GrantRequest
       *
       *
       * @param sql
       *
       */
      public GrantRequest(String sql) {
          super(Request.GRANT, sql);
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>