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 2013/05/18 01:05:49 UTC
svn commit: r1484026 -
/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
Author: tfischer
Date: Fri May 17 23:05:49 2013
New Revision: 1484026
URL: http://svn.apache.org/r1484026
Log:
use final modifier where possible
Modified:
db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java?rev=1484026&r1=1484025&r2=1484026&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java (original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java Fri May 17 23:05:49 2013
@@ -161,7 +161,7 @@ public final class TypeMap
/**
* The result set getter methods for a given schema type.
*/
- private static Map<SchemaType, ResultSetGetter>
+ private static final Map<SchemaType, ResultSetGetter>
SCHEMA_TYPE_TO_RESULT_SET_GETTER;
// fill SCHEMA_TYPE_TO_INIT_VALUE_MAP
@@ -307,7 +307,7 @@ public final class TypeMap
* @param jdbcType the JDBC type
* @return name of the Object
*/
- public static String getJavaObject(SchemaType jdbcType)
+ public static String getJavaObject(final SchemaType jdbcType)
{
return SCHEMA_TYPE_TO_INIT_VALUE_MAP.get(jdbcType);
}
@@ -319,7 +319,7 @@ public final class TypeMap
* @param schemaType the schema type.
* @return name of the native java type
*/
- public static JavaType getJavaPrimitiveType(SchemaType schemaType)
+ public static JavaType getJavaPrimitiveType(final SchemaType schemaType)
{
return SCHEMA_TYPE_TO_JAVA_PRIMITIVE_TYPE_MAP.get(schemaType);
}
@@ -331,7 +331,7 @@ public final class TypeMap
* @param schemaType the schema type.
* @return the corresponding java Type.
*/
- public static JavaType getJavaObjectType(SchemaType schemaType)
+ public static JavaType getJavaObjectType(final SchemaType schemaType)
{
return SCHEMA_TYPE_TO_JAVA_OBJECT_TYPE_MAP.get(schemaType);
}
@@ -343,7 +343,7 @@ public final class TypeMap
* @param schemaType the schema type
* @return the result set getter method.
*/
- public static ResultSetGetter getResultSetGetter(SchemaType schemaType)
+ public static ResultSetGetter getResultSetGetter(final SchemaType schemaType)
{
return SCHEMA_TYPE_TO_RESULT_SET_GETTER.get(schemaType);
}
@@ -355,7 +355,7 @@ public final class TypeMap
* @param type The type to check.
* @return true if the type is BOOLEANINT
*/
- public static boolean isBooleanInt(SchemaType type)
+ public static boolean isBooleanInt(final SchemaType type)
{
return SchemaType.BOOLEANINT.equals(type);
}
@@ -367,7 +367,7 @@ public final class TypeMap
* @param type The type to check.
* @return true if the type is BOOLEANCHAR
*/
- public static boolean isBooleanChar(SchemaType type)
+ public static boolean isBooleanChar(final SchemaType type)
{
return SchemaType.BOOLEANCHAR.equals(type);
}
@@ -379,7 +379,7 @@ public final class TypeMap
* @param type The type to check.
* @return true if the type is BIT
*/
- public static boolean isBit(SchemaType type)
+ public static boolean isBit(final SchemaType type)
{
return SchemaType.BIT.equals(type);
}
@@ -390,7 +390,7 @@ public final class TypeMap
* @param type The type to check.
* @return true if values for the type need to be quoted.
*/
- public static boolean isTextType(SchemaType type)
+ public static boolean isTextType(final SchemaType type)
{
return TEXT_TYPES.contains(type);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org