You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ma...@apache.org on 2007/04/10 21:09:47 UTC
svn commit: r527250 -
/db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java
Author: mamta
Date: Tue Apr 10 12:09:47 2007
New Revision: 527250
URL: http://svn.apache.org/viewvc?view=rev&rev=527250
Log:
The constants declared in StringDataValue should be final because their values should not be allowed to change.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java?view=diff&rev=527250&r1=527249&r2=527250
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/StringDataValue.java Tue Apr 10 12:09:47 2007
@@ -41,11 +41,11 @@
derivation of "none". All the other character string types should have
their collation derivation set to "implicit".
*/
- public static int COLLATION_DERIVATION_NONE = 0;
+ public static final int COLLATION_DERIVATION_NONE = 0;
/** @see StringDataValue#COLLATION_DERIVATION_NONE */
- public static int COLLATION_DERIVATION_IMPLICIT = 1;
+ public static final int COLLATION_DERIVATION_IMPLICIT = 1;
/** @see StringDataValue#COLLATION_DERIVATION_NONE */
- public static int COLLATION_DERIVATION_EXPLICIT = 2;
+ public static final int COLLATION_DERIVATION_EXPLICIT = 2;
/**
* In Derby 10.3, it is possible to have database with one of the following
* two configurations
@@ -55,9 +55,9 @@
* collation type of UCS_BASIC but all the character string columns
* belonging to user tables will have collation type of TERRITORY_BASED.
*/
- public static int COLLATION_TYPE_UCS_BASIC = 0;
+ public static final int COLLATION_TYPE_UCS_BASIC = 0;
/** @see StringDataValue#COLLATION_TYPE_UCS_BASIC */
- public static int COLLATION_TYPE_TERRITORY_BASED = 1;
+ public static final int COLLATION_TYPE_TERRITORY_BASED = 1;
/**
* The SQL concatenation '||' operator.