avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server AbstractSQLParser.java
Date Wed, 28 Nov 2001 15:26:30 GMT
froehlich    01/11/28 07:26:30

  Modified:    apps/db/src/java/org/apache/avalon/db/server
                        AbstractSQLParser.java
  Log:
  starting javacc implementation
  
  Revision  Changes    Path
  1.2       +13 -16    jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server/AbstractSQLParser.java
  
  Index: AbstractSQLParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server/AbstractSQLParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractSQLParser.java	2001/11/07 12:01:14	1.1
  +++ AbstractSQLParser.java	2001/11/28 15:26:30	1.2
  @@ -1,4 +1,3 @@
  -
   /*
    * Copyright (C) The Apache Software Foundation. All rights reserved.
    *
  @@ -9,25 +8,23 @@
   package org.apache.avalon.db.server;
   
   /**
  - * Class BCELSQLParser
  + * Class AbstractSQLParser
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  + * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
    * @version $Revision: 1.13 $
    */
   public abstract class AbstractSQLParser extends AbstractParser {
  -
  -    protected String getBracketedExpr(String str) {
  -
  -        int ix0 = str.indexOf('(');
  -        int ix1 = str.lastIndexOf(')');
  -
  -        System.out.println("str=" + str);
  -        System.out.println("ix0=" + ix0);
  -        System.out.println("ix1=" + ix1);
  -
  -        return str.substring(ix0 + 1, ix1);
  -    }
  -
  -
  +    public abstract void parseSQLString(String str); 
  +    public abstract void Select(String str);
  +    public abstract void Update(String sql);
  +    public abstract void Rollback(String sql);
  +    public abstract void Insert(String sql);
  +    public abstract void Grant(String sql);
  +    public abstract void Drop(String sql);
  +    public abstract void Delete(String sql);
  +    public abstract void Commit(String sql);
  +    public abstract void Alter(String sql);
   }
  +
  
  
  

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


Mime
View raw message