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 ka...@apache.org on 2013/04/10 17:00:48 UTC
svn commit: r1466504 - in /db/derby/code/trunk/java/engine/org/apache/derby:
iapi/jdbc/BrokeredConnection.java iapi/jdbc/EngineConnection.java
impl/jdbc/EmbedConnection.java
Author: kahatlen
Date: Wed Apr 10 15:00:48 2013
New Revision: 1466504
URL: http://svn.apache.org/r1466504
Log:
DERBY-6161: Simplify code that handles LOB files
Remove unused method in EngineConnection and BrokeredConnection,
and reduce the visibility of the method with the same name in
EmbedConnection.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java
db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java?rev=1466504&r1=1466503&r2=1466504&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java Wed Apr 10 15:00:48 2013
@@ -742,17 +742,6 @@ public class BrokeredConnection implemen
return holdability;
}
-
- /**
- * Clear the HashMap of all entries.
- * Called when a commit or rollback of the transaction
- * happens.
- */
- public void clearLOBMapping() throws SQLException {
- //Forward the methods implementation to the implementation in the
- //underlying EmbedConnection object.
- getRealConnection().clearLOBMapping();
- }
/**
* Get the LOB reference corresponding to the locator.
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java?rev=1466504&r1=1466503&r2=1466504&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java Wed Apr 10 15:00:48 2013
@@ -86,13 +86,6 @@ public interface EngineConnection extend
throws SQLException;
/**
- * Clear the HashTable of all entries.
- * Called when a commit or rollback of the transaction
- * happens.
- */
- public void clearLOBMapping() throws SQLException;
-
- /**
* Get the LOB reference corresponding to the locator.
* @param key the integer that represents the LOB locator value.
* @return the LOB Object corresponding to this locator.
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java?rev=1466504&r1=1466503&r2=1466504&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java Wed Apr 10 15:00:48 2013
@@ -3322,7 +3322,7 @@ public class EmbedConnection implements
* Called when a commit or rollback of the transaction
* happens.
*/
- public void clearLOBMapping() throws SQLException {
+ private void clearLOBMapping() throws SQLException {
//free all the lob resources in the HashMap
Map map = rootConnection.lobReferences;