db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1103186 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java
Date Sat, 14 May 2011 19:05:21 GMT
Author: tfischer
Date: Sat May 14 19:05:20 2011
New Revision: 1103186

URL: http://svn.apache.org/viewvc?rev=1103186&view=rev
Log:
- make class final as all constructors are private
- add javadoc 

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java?rev=1103186&r1=1103185&r2=1103186&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SqlEnum.java
Sat May 14 19:05:20 2011
@@ -29,13 +29,14 @@ package org.apache.torque.util;
  * @version $Id$
  * @since 3.0
  */
-public class SqlEnum implements java.io.Serializable
+public final class SqlEnum implements java.io.Serializable
 {
     /**
      * Serial version
      */
     private static final long serialVersionUID = 5963149836513364800L;
 
+    /** The SQL expression. */
     private final String s;
 
     private SqlEnum(String s)
@@ -43,67 +44,96 @@ public class SqlEnum implements java.io.
         this.s = s;
     }
 
-    public final String toString()
+    public String toString()
     {
         return s;
     }
 
+    /** SQL Expression "=". */
     public static final SqlEnum EQUAL =
         new SqlEnum("=");
+    /** SQL Expression "<>". */
     public static final SqlEnum NOT_EQUAL =
             new SqlEnum("<>");
+    /** SQL Expression "!=". */
     public static final SqlEnum ALT_NOT_EQUAL =
         new SqlEnum("!=");
+    /** SQL Expression ">". */
     public static final SqlEnum GREATER_THAN =
         new SqlEnum(">");
+    /** SQL Expression "<". */
     public static final SqlEnum LESS_THAN =
         new SqlEnum("<");
+    /** SQL Expression ">=". */
     public static final SqlEnum GREATER_EQUAL =
         new SqlEnum(">=");
+    /** SQL Expression "<=". */
     public static final SqlEnum LESS_EQUAL =
         new SqlEnum("<=");
+    /** SQL Expression " LIKE ". */
     public static final SqlEnum LIKE =
         new SqlEnum(" LIKE ");
+    /** SQL Expression " NOT LIKE ". */
     public static final SqlEnum NOT_LIKE =
         new SqlEnum(" NOT LIKE ");
+    /** SQL Expression " ILIKE ". */
     public static final SqlEnum ILIKE =
         new SqlEnum(" ILIKE ");
+    /** SQL Expression " NOT ILIKE ". */
     public static final SqlEnum NOT_ILIKE =
         new SqlEnum(" NOT ILIKE ");
+    /** SQL Expression " IN ". */
     public static final SqlEnum IN =
         new SqlEnum(" IN ");
+    /** SQL Expression " NOT IN ". */
     public static final SqlEnum NOT_IN =
         new SqlEnum(" NOT IN ");
+    /** Constant for "CUSTOM". */
     public static final SqlEnum CUSTOM =
         new SqlEnum("CUSTOM");
+    /** SQL Expression "JOIN". */
     public static final SqlEnum JOIN =
         new SqlEnum("JOIN");
+    /** SQL Expression "DISTINCT ". */
     public static final SqlEnum DISTINCT =
         new SqlEnum("DISTINCT ");
+    /** SQL Expression "ALL ". */
     public static final SqlEnum ALL =
         new SqlEnum("ALL ");
+    /** SQL Expression "ASC". */
     public static final SqlEnum ASC =
         new SqlEnum("ASC");
+    /** SQL Expression "DESC". */
     public static final SqlEnum DESC =
         new SqlEnum("DESC");
+    /** SQL Expression " IS NULL ". */
     public static final SqlEnum ISNULL =
         new SqlEnum(" IS NULL ");
+    /** SQL Expression " IS NOT NULL ". */
     public static final SqlEnum ISNOTNULL =
         new SqlEnum(" IS NOT NULL ");
+    /** SQL Expression "CURRENT_DATE". */
     public static final SqlEnum CURRENT_DATE =
         new SqlEnum("CURRENT_DATE");
+    /** SQL Expression "CURRENT_TIME". */
     public static final SqlEnum CURRENT_TIME =
         new SqlEnum("CURRENT_TIME");
+    /** SQL Expression " LEFT JOIN ". */
     public static final SqlEnum LEFT_JOIN =
         new SqlEnum(" LEFT JOIN ");
+    /** SQL Expression " RIGHT JOIN ". */
     public static final SqlEnum RIGHT_JOIN =
         new SqlEnum(" RIGHT JOIN ");
+    /** SQL Expression " INNER JOIN ". */
     public static final SqlEnum INNER_JOIN =
         new SqlEnum(" INNER JOIN ");
+    /** SQL Expression " ON ". */
     public static final SqlEnum ON =
         new SqlEnum(" ON ");
+    /** SQL Expression " AS ". */
     public static final SqlEnum AS =
         new SqlEnum(" AS ");
+    /** SQL Expression " ESCAPE ". */
     public static final SqlEnum ESCAPE =
         new SqlEnum(" ESCAPE ");
 



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


Mime
View raw message