db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1379244 - in /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform: PlatformDefaultImpl.java PlatformHsqldbImpl.java PlatformMysqlImpl.java PlatformOracleImpl.java
Date Fri, 31 Aug 2012 01:05:23 GMT
Author: tfischer
Date: Fri Aug 31 01:05:22 2012
New Revision: 1379244

URL: http://svn.apache.org/viewvc?rev=1379244&view=rev
Log:
make format string constants final in platforms

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformDefaultImpl.java
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformHsqldbImpl.java
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformDefaultImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformDefaultImpl.java?rev=1379244&r1=1379243&r2=1379244&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformDefaultImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformDefaultImpl.java
Fri Aug 31 01:05:22 2012
@@ -40,7 +40,7 @@ import org.apache.torque.templates.typem
 public class PlatformDefaultImpl implements Platform
 {
     /** The date format for formatting database timestamps. */
-    private static String TIMESTAMP_FORMAT = "''yyyy-MM-dd HH:mm:ss''";
+    private static final String TIMESTAMP_FORMAT = "''yyyy-MM-dd HH:mm:ss''";
 
     /**
      * Maps the Torque schema types to sql types.

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformHsqldbImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformHsqldbImpl.java?rev=1379244&r1=1379243&r2=1379244&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformHsqldbImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformHsqldbImpl.java
Fri Aug 31 01:05:22 2012
@@ -35,10 +35,10 @@ import org.apache.torque.templates.typem
 public class PlatformHsqldbImpl extends PlatformDefaultImpl
 {
     /** The date format for formatting database dates. */
-    private static String DATE_FORMAT = "''yyyy-MM-dd''";
+    private static final String DATE_FORMAT = "''yyyy-MM-dd''";
 
     /** The date format for formatting database times. */
-    private static String TIME_FORMAT = "''HH:mm:ss''";
+    private static final String TIME_FORMAT = "''HH:mm:ss''";
 
     /**
      * Default constructor.

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java?rev=1379244&r1=1379243&r2=1379244&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java
Fri Aug 31 01:05:22 2012
@@ -35,7 +35,7 @@ import org.apache.torque.templates.typem
 public class PlatformMysqlImpl extends PlatformDefaultImpl
 {
     /** The date format for formatting database dates. */
-    private static String DATE_FORMAT = "''yyyy-MM-dd''";
+    private static final String DATE_FORMAT = "''yyyy-MM-dd''";
 
     /**
      * Default constructor.

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java?rev=1379244&r1=1379243&r2=1379244&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
Fri Aug 31 01:05:22 2012
@@ -36,15 +36,15 @@ import org.apache.torque.templates.typem
 public class PlatformOracleImpl extends PlatformDefaultImpl
 {
     /** The date format for formatting database dates. */
-    private static String DATE_FORMAT
+    private static final String DATE_FORMAT
         = "'to_date('''yyyy-MM-dd''',''yyyy-mm-dd'')'";
 
     /** The date format for formatting database dates. */
-    private static String TIME_FORMAT
+    private static final String TIME_FORMAT
         = "'to_date('''1970-01-01 HH:mm:ss''',''yyyy-mm-dd hh24:mi:ss'')'";
 
     /** The date format for formatting database dates. */
-    private static String TIMESTAMP_FORMAT
+    private static final String TIMESTAMP_FORMAT
         = "'to_timestamp('''yyyy-MM-dd HH:mm:ss''',''yyyy-mm-dd hh24:mi:ss'')'";
 
     /**



---------------------------------------------------------------------
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