You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2011/05/14 21:09:49 UTC
svn commit: r1103188 -
/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java
Author: tfischer
Date: Sat May 14 19:09:48 2011
New Revision: 1103188
URL: http://svn.apache.org/viewvc?rev=1103188&view=rev
Log:
- make class final as all constructors are private
Modified:
db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java
Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java?rev=1103188&r1=1103187&r2=1103188&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java (original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/functions/FunctionFactory.java Sat May 14 19:09:48 2011
@@ -40,7 +40,7 @@ import org.apache.torque.adapter.DB;
* @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
* @version $Id
*/
-public class FunctionFactory
+public final class FunctionFactory
{
/**
* This class only has static methods and shouldn't be created.
@@ -62,7 +62,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction avg (String dbName, Object expr1,
+ public static SQLFunction avg (String dbName, Object expr1,
boolean distinct)
throws Exception
{
@@ -80,7 +80,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction avg (Object expr1)
+ public static SQLFunction avg (Object expr1)
throws Exception
{
return avg (null, expr1, false);
@@ -99,7 +99,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction count (String dbName, Object expr1,
+ public static SQLFunction count (String dbName, Object expr1,
boolean distinct)
throws Exception
{
@@ -117,7 +117,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction count (Object expr1)
+ public static SQLFunction count (Object expr1)
throws Exception
{
return count(null, expr1, false);
@@ -136,7 +136,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction max(String dbName, Object expr1,
+ public static SQLFunction max(String dbName, Object expr1,
boolean distinct)
throws Exception
{
@@ -154,7 +154,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction max(Object expr1)
+ public static SQLFunction max(Object expr1)
throws Exception
{
return max(null, expr1, false);
@@ -173,7 +173,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction min(String dbName, Object expr1,
+ public static SQLFunction min(String dbName, Object expr1,
boolean distinct)
throws Exception
{
@@ -191,7 +191,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction min (Object expr1)
+ public static SQLFunction min (Object expr1)
throws Exception
{
return min (null, expr1, false);
@@ -210,7 +210,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction sum (String dbName, Object expr1,
+ public static SQLFunction sum (String dbName, Object expr1,
boolean distinct)
throws Exception
{
@@ -228,7 +228,7 @@ public class FunctionFactory
* @return The function object to use.
* @throws Exception
*/
- public static final SQLFunction sum (Object expr1)
+ public static SQLFunction sum (Object expr1)
throws Exception
{
return sum (null, expr1, false);
@@ -244,7 +244,7 @@ public class FunctionFactory
* @return A SQLFunction implementation that for the specified DB server.
* @throws Exception
*/
- public static final SQLFunction functionInstance (String dbName,
+ public static SQLFunction functionInstance (String dbName,
FunctionEnum function,
Object[] arguments)
throws Exception
@@ -288,7 +288,7 @@ public class FunctionFactory
return func;
}
- public static final SQLFunction functionInstance (FunctionEnum function,
+ public static SQLFunction functionInstance (FunctionEnum function,
Object[] arguments)
throws Exception
{
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org