提交 cb90dfb4 authored 作者: noelgrandin's avatar noelgrandin

the DataHandler interface no longer needs the getLobConnection method

上级 a8983746
...@@ -249,11 +249,6 @@ abstract class ScriptBase extends Prepared implements DataHandler { ...@@ -249,11 +249,6 @@ abstract class ScriptBase extends Prepared implements DataHandler {
return null; return null;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
throw DbException.throwInternalError(); throw DbException.throwInternalError();
......
...@@ -2475,7 +2475,6 @@ public class Database implements DataHandler { ...@@ -2475,7 +2475,6 @@ public class Database implements DataHandler {
return lobStorage; return lobStorage;
} }
@Override
public JdbcConnection getLobConnection() { public JdbcConnection getLobConnection() {
String url = Constants.CONN_URL_INTERNAL; String url = Constants.CONN_URL_INTERNAL;
JdbcConnection conn = new JdbcConnection(systemSession, systemUser.getName(), url); JdbcConnection conn = new JdbcConnection(systemSession, systemUser.getName(), url);
......
...@@ -723,11 +723,6 @@ public class SessionRemote extends SessionWithState implements DataHandler { ...@@ -723,11 +723,6 @@ public class SessionRemote extends SessionWithState implements DataHandler {
return lobStorage; return lobStorage;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public synchronized int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public synchronized int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
for (int i = 0, count = 0; i < transferList.size(); i++) { for (int i = 0, count = 0; i < transferList.size(); i++) {
......
...@@ -93,13 +93,6 @@ public interface DataHandler { ...@@ -93,13 +93,6 @@ public interface DataHandler {
*/ */
LobStorageInterface getLobStorage(); LobStorageInterface getLobStorage();
/**
* Get a database connection to be used for LOB access.
*
* @return the connection or null
*/
Connection getLobConnection();
/** /**
* Read from a lob. * Read from a lob.
* *
......
...@@ -1521,14 +1521,6 @@ public class Recover extends Tool implements DataHandler { ...@@ -1521,14 +1521,6 @@ public class Recover extends Tool implements DataHandler {
return null; return null;
} }
/**
* INTERNAL
*/
@Override
public Connection getLobConnection() {
return null;
}
/** /**
* INTERNAL * INTERNAL
*/ */
......
...@@ -331,11 +331,6 @@ public class TestDataPage extends TestBase implements DataHandler { ...@@ -331,11 +331,6 @@ public class TestDataPage extends TestBase implements DataHandler {
return null; return null;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
return -1; return -1;
......
...@@ -185,11 +185,6 @@ public class TestFile extends TestBase implements DataHandler { ...@@ -185,11 +185,6 @@ public class TestFile extends TestBase implements DataHandler {
return null; return null;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
return -1; return -1;
......
...@@ -162,11 +162,6 @@ public class TestValueHashMap extends TestBase implements DataHandler { ...@@ -162,11 +162,6 @@ public class TestValueHashMap extends TestBase implements DataHandler {
return null; return null;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
return -1; return -1;
......
...@@ -277,11 +277,6 @@ public class TestValueMemory extends TestBase implements DataHandler { ...@@ -277,11 +277,6 @@ public class TestValueMemory extends TestBase implements DataHandler {
return lobStorage; return lobStorage;
} }
@Override
public Connection getLobConnection() {
return null;
}
@Override @Override
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) { public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) {
return -1; return -1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论