db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1443712 - in /db/derby/code/trunk/java: client/org/apache/derby/client/am/ engine/org/apache/derby/iapi/reference/ engine/org/apache/derby/impl/jdbc/ testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/
Date Thu, 07 Feb 2013 20:39:35 GMT
Author: rhillegas
Date: Thu Feb  7 20:39:35 2013
New Revision: 1443712

URL: http://svn.apache.org/r1443712
Log:
DERBY-6000: Rename DatabaseMetaData.getMaxLogicalLOBSize() to getMaxLogicalLobSize().

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java
    db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalDatabaseMetaData40.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Limits.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Wrapper42DBMD.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java Thu Feb
 7 20:39:35 2013
@@ -2889,7 +2889,7 @@ public abstract class DatabaseMetaData i
     // ------------------- JDBC 4.2 -------------------------
 
     /** See DatabaseMetaData javadoc and Limits.DB2_LOB_MAXWIDTH */
-    public  long getMaxLogicalLOBSize() { return ((long) Integer.MAX_VALUE) * 2; }
+    public  long getMaxLogicalLobSize() { return ((long) Integer.MAX_VALUE) * 2; }
 
     /** Derby does not support the Types.REF_CURSOR type. */
     public boolean supportsRefCursors() { return false; }

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalDatabaseMetaData40.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalDatabaseMetaData40.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalDatabaseMetaData40.java
(original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalDatabaseMetaData40.java
Thu Feb  7 20:39:35 2013
@@ -138,9 +138,9 @@ public class LogicalDatabaseMetaData40
     /////////////////////////////////////////////////////////////////////////
 
     /** See DatabaseMetaData javadoc */
-    public  long getMaxLogicalLOBSize() throws SQLException
+    public  long getMaxLogicalLobSize() throws SQLException
     {
-        return ((org.apache.derby.client.am.DatabaseMetaData) getRealMetaDataObject()).getMaxLogicalLOBSize();
+        return ((org.apache.derby.client.am.DatabaseMetaData) getRealMetaDataObject()).getMaxLogicalLobSize();
     }
     public  boolean supportsRefCursors() throws SQLException
     {

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Limits.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Limits.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Limits.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Limits.java Thu Feb  7
20:39:35 2013
@@ -57,7 +57,7 @@ public interface Limits
 
 	public static final int	DB2_CHAR_MAXWIDTH = 254;
 	public static final int	DB2_VARCHAR_MAXWIDTH = 32672;
-	public static final int DB2_LOB_MAXWIDTH = 2147483647; // If you change this value, consider
whether you need to change DatabaseMetaData.getMaxLogicalLOBSize().
+	public static final int DB2_LOB_MAXWIDTH = 2147483647; // If you change this value, consider
whether you need to change DatabaseMetaData.getMaxLogicalLobSize().
 	public static final int	DB2_LONGVARCHAR_MAXWIDTH = 32700;
     public static final int DB2_CONCAT_VARCHAR_LENGTH = 4000;
 	public static final int DB2_MAX_FLOATINGPOINT_LITERAL_LENGTH = 30; // note, this value 30
is also contained in err msg 42820

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
Thu Feb  7 20:39:35 2013
@@ -1229,11 +1229,11 @@ public class EmbedDatabaseMetaData exten
      * CLOB can have DB2_LOB_MAXWIDTH characters, the
      * maximum number of bytes is 2 * DB2_LOB_MAXWIDTH.
      * If you change this value, consider whether you need to change
-     * DatabaseMetaData.getMaxLogicalLOBSize().
+     * DatabaseMetaData.getMaxLogicalLobSize().
      *
      * @return max index length in bytes
      */
-	public long getMaxLogicalLOBSize() { return ((long) Limits.DB2_LOB_MAXWIDTH) * 2; }
+	public long getMaxLogicalLobSize() { return ((long) Limits.DB2_LOB_MAXWIDTH) * 2; }
 
     /**
      * What's the maximum length allowed for a schema name?

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Thu Feb  7 20:39:35 2013
@@ -5027,9 +5027,9 @@ public class DatabaseMetaDataTest extend
         Wrapper42DBMD wrapper = new Wrapper42DBMD( dmd );
 
         //
-        // getMaxLogicalLOBSize()
+        // getMaxLogicalLobSize()
         //
-        assertEquals( ((long) Integer.MAX_VALUE) * 2, wrapper.getMaxLogicalLOBSize() );
+        assertEquals( ((long) Integer.MAX_VALUE) * 2, wrapper.getMaxLogicalLobSize() );
 
         //
         // supportsRefCursors()

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Wrapper42DBMD.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Wrapper42DBMD.java?rev=1443712&r1=1443711&r2=1443712&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Wrapper42DBMD.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/Wrapper42DBMD.java
Thu Feb  7 20:39:35 2013
@@ -51,10 +51,10 @@ public  class   Wrapper42DBMD   extends 
     //
     ///////////////////////////////////////////////////////////////////////
 
-    public  long getMaxLogicalLOBSize() throws SQLException
+    public  long getMaxLogicalLobSize() throws SQLException
     {
-        if ( _embedded != null ) { return _embedded.getMaxLogicalLOBSize(); }
-        else if ( _netclient != null ) { return _netclient.getMaxLogicalLOBSize(); }
+        if ( _embedded != null ) { return _embedded.getMaxLogicalLobSize(); }
+        else if ( _netclient != null ) { return _netclient.getMaxLogicalLobSize(); }
         else { throw nothingWrapped(); }
     }
 



Mime
View raw message