empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r693127 - in /incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column: DBAbstractFuncExpr.java DBCaseExpr.java DBConvertExpr.java DBCountExpr.java DBDecodeExpr.java DBFuncExpr.java
Date Mon, 08 Sep 2008 15:10:32 GMT
Author: doebele
Date: Mon Sep  8 08:10:31 2008
New Revision: 693127

URL: http://svn.apache.org/viewvc?rev=693127&view=rev
Log:
EMPIREDB-10

Modified:
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBAbstractFuncExpr.java
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCaseExpr.java
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBConvertExpr.java
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCountExpr.java
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBDecodeExpr.java
    incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBFuncExpr.java

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBAbstractFuncExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBAbstractFuncExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBAbstractFuncExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBAbstractFuncExpr.java
Mon Sep  8 08:10:31 2008
@@ -45,11 +45,7 @@
      * Constructs a new DBFuncExpr object set the specified parameters to this object.
      * Do not use directly - use any of the DBColumnExpr.??? factory functions instead!
      * 
-     * The sql function string is built from a string template.
-     * The template string must contain a ? which is a placeholder for the column expression.
-     * 
      * @param expr the DBColumnExpr object
-     * @param template specifies a template for the expression. The template must contain
a ? placeholder for the column expression
      * @param updateColumn optional update column if any. This parameter may be null
      * @param isAggregate indicates whether the function is an aggregate function (sum, min,
max, avg, ...)
      * @param dataType indicates the data type of the function result 
@@ -146,7 +142,12 @@
     /**
      * Creates the SQL-Command adds a function to the SQL-Command.
      * 
-     * @param buf the SQL-Command
+     * The sql function string is built from a string template.
+     * The template string must contain a ? which is a placeholder for the column expression.
+     * 
+     * @param sql the SQL-Command
+     * @param template the function template string. 
+     * @param params an array of function parameters 
      * @param context the current SQL-Command context
      */
     public final void addSQL(StringBuilder sql, String template, Object[] params, long context)

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCaseExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCaseExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCaseExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCaseExpr.java
Mon Sep  8 08:10:31 2008
@@ -32,7 +32,7 @@
  * This class is used to add the "case when ?=A then X else Y end" statement to the SQL-Command.
  * <P>
  * There is no need to explicitly create instances of this class.<BR>
- * Instead use {@link DBColumnExpr#when() }
+ * Instead use {@link DBColumnExpr#when(DBCompareExpr, Object) }
  * <P>
  * @author doebele
  */

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBConvertExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBConvertExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBConvertExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBConvertExpr.java
Mon Sep  8 08:10:31 2008
@@ -27,7 +27,7 @@
  * This function uses the DBDatabaseDriver.getConvertPhrase function to obtain a conversion
template.
  * <P>
  * There is no need to explicitly create instances of this class.<BR>
- * Instead use {@link DBColumnExpr#convertTo() }
+ * Instead use {@link DBColumnExpr#convertTo(DataType) }
  * <P>
  * @author doebele
  */
@@ -37,9 +37,9 @@
     
     /**
      * Constructs a DBDecodeExpr
-     * @param compExpr the condition to be evaluated
-     * @param expr the expression returned if the condition is true
-     * @param elseExpr the expression returned if the condition is false (may be null)
+     * @param expr the expression to be converted
+     * @param dataType the target data type
+     * @param format optional formatting information
      */
     public DBConvertExpr(DBColumnExpr expr, DataType dataType, Object format)
     {

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCountExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCountExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCountExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBCountExpr.java
Mon Sep  8 08:10:31 2008
@@ -137,7 +137,7 @@
     /**
      * Creates the SQL-Command adds the String "count(*)" to the SQL-Command.
      * 
-     * @param buf the SQL-Command
+     * @param sql the SQL-Command
      * @param context the current SQL-Command context
      */
     @Override

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBDecodeExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBDecodeExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBDecodeExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBDecodeExpr.java
Mon Sep  8 08:10:31 2008
@@ -28,13 +28,14 @@
 import org.apache.empire.db.DBColumnExpr;
 import org.apache.empire.db.DBDatabaseDriver;
 import org.apache.empire.db.DBExpr;
+import org.apache.empire.db.expr.compare.DBCompareExpr;
 
 /**
  * This class is used to decode a set of keys to the corresponding target values.
  * For most drivers this will be performed by the "case ? when A then X else Y end" statement.
  * <P>
  * There is no need to explicitly create instances of this class.<BR>
- * Instead use {@link DBColumnExpr#when() }
+ * Instead use {@link DBColumnExpr#when(DBCompareExpr, Object) }
  * <P>
  * @author doebele
  */
@@ -45,9 +46,10 @@
     
     /**
      * Constructs a DBDecodeExpr
-     * @param compExpr the condition to be evaluated
-     * @param expr the expression returned if the condition is true
+     * @param expr the expression to be decoded
+     * @param valueMap a map of keys and values used for decoding
      * @param elseExpr the expression returned if the condition is false (may be null)
+     * @param dataType the target data type
      */
     public DBDecodeExpr(DBColumnExpr expr, Map<?,?> valueMap, Object elseExpr, DataType
dataType)
     {

Modified: incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBFuncExpr.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBFuncExpr.java?rev=693127&r1=693126&r2=693127&view=diff
==============================================================================
--- incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBFuncExpr.java
(original)
+++ incubator/empire-db/trunk/core/Empire-db/src/org/apache/empire/db/expr/column/DBFuncExpr.java
Mon Sep  8 08:10:31 2008
@@ -112,7 +112,7 @@
     /**
      * Creates the SQL-Command adds a function to the SQL-Command.
      * 
-     * @param buf the SQL-Command
+     * @param sql the SQL-Command
      * @param context the current SQL-Command context
      */
     @Override



Mime
View raw message