db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r520546 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java
Date Tue, 20 Mar 2007 20:03:16 GMT
Author: arminw
Date: Tue Mar 20 13:03:15 2007
New Revision: 520546

URL: http://svn.apache.org/viewvc?view=rev&rev=520546
Log:
deprecate methods, use class AttributeTokenizer instead

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java?view=diff&rev=520546&r1=520545&r2=520546
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/SqlHelper.java Tue
Mar 20 13:03:15 2007
@@ -24,14 +24,15 @@
 /**
  * Helper class for all SQL related stuff.
  * 
- * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel </a>
  * @version $Id$
  */
 public class SqlHelper
 {
-    /** delimiters to tokenize attributes. */
+    /**
+     * Delimiters used to tokenize attributes.
+     */
     private static final String DELIMITERS = "( ),+-/*";
-    
+
     /** do not try to reslve these. */
     private static final String NO_ATTRIBUTES = "count,min,max,avg,sum,upper,lower,distinct,as";
 
@@ -45,20 +46,22 @@
      * Answer a StringTokenizer for anAttribute.
      * @param anAttribute the attribute to tokenize
      * @return StringTokenizer
+     * @deprecated will be removed, use {@link AttributeTokenizer} instead
      */
     public static StringTokenizer tokenizeAttribute(String anAttribute)
     {
         return new StringTokenizer(anAttribute, DELIMITERS, true);
     }
-    
+
     /**
      * Answer <em>true</em> if anAttribute is not a token or a 'function'.
      * @param anAttribute the attribute to check
      * @return The result of the attribute check.
+     * @deprecated will be removed, use {@link AttributeTokenizer} instead
      */
     public static boolean isAttribute(String anAttribute)
     {
-        // look for delimiters       
+        // look for delimiters
         if (DELIMITERS.indexOf(anAttribute) >= 0)
         {
             return false;
@@ -72,14 +75,15 @@
      * ie: avg(amount) -> amount <br>
      * ie: sum (accounts.amount) -> accounts.amount <br>
      * ie: count(distinct id) as theCount-> id <br>
-     * 
+     *
      * @param aPath the path to the attribute
+     * @deprecated will be removed, use {@link AttributeTokenizer} instead
      */
     public static String cleanPath(String aPath)
     {
         StringTokenizer st = new StringTokenizer(aPath, DELIMITERS, false);
         String result = aPath;
-        
+
         while (st.hasMoreTokens())
         {
             String token = st.nextToken();
@@ -95,7 +99,7 @@
 
     /**
      * Returns the name of the class to be instantiated.
-     * @param rs the Resultset
+     * @param rsAndStmt the Resultset
      * @return null if the column is not available
      */
     public static String getOjbClassName(ResultSetAndStatement rsAndStmt)



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message