db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util SqlHelper.java
Date Sun, 25 May 2003 12:06:32 GMT
brj         2003/05/25 05:06:32

  Modified:    src/java/org/apache/ojb/broker/util SqlHelper.java
  Log:
  use old version of cleanPath
  
  Revision  Changes    Path
  1.14      +2 -30     db-ojb/src/java/org/apache/ojb/broker/util/SqlHelper.java
  
  Index: SqlHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/SqlHelper.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SqlHelper.java	25 May 2003 00:00:20 -0000	1.13
  +++ SqlHelper.java	25 May 2003 12:06:31 -0000	1.14
  @@ -102,35 +102,7 @@
        */
       public static String cleanPath(String aPath)
       {
  -        int braceBegin;
  -        int braceEnd;
  -        int colBegin;
  -        String betweenBraces;
  -        String colName = aPath;
  -
  -        if (aPath == null) return null;
  -
  -        braceBegin = aPath.indexOf("(");
  -        if (braceBegin >= 0)
  -        {
  -            braceEnd = aPath.lastIndexOf(")");
  -            if (braceEnd >= 0)
  -            {
  -                betweenBraces = aPath.substring(braceBegin + 1, braceEnd).trim();
  -                // look for ie 'distinct name'
  -                colBegin = betweenBraces.lastIndexOf(" ");
  -                if (colBegin >= 0)
  -                {
  -                    colName = betweenBraces.substring(colBegin + 1).trim();
  -                }
  -                else
  -                {
  -                    colName = betweenBraces;
  -                }
  -            }
  -        }
  -
  -        return colName;
  +        return splitPath(aPath).column;
       }
   
   
  
  
  

Mime
View raw message