提交 5f06183a authored 作者: Thomas Mueller's avatar Thomas Mueller

Avoid synthetic access methods

上级 18a1449c
...@@ -59,13 +59,14 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -59,13 +59,14 @@ public class LobStorageBackend implements LobStorageInterface {
*/ */
private static final int HASH_CACHE_SIZE = 4 * 1024; private static final int HASH_CACHE_SIZE = 4 * 1024;
private JdbcConnection conn; JdbcConnection conn;
final Database database;
private final HashMap<String, PreparedStatement> prepared = New.hashMap(); private final HashMap<String, PreparedStatement> prepared = New.hashMap();
private long nextBlock; private long nextBlock;
private final CompressTool compress = CompressTool.getInstance(); private final CompressTool compress = CompressTool.getInstance();
private long[] hashBlocks; private long[] hashBlocks;
private final Database database;
private boolean init; private boolean init;
public LobStorageBackend(Database database) { public LobStorageBackend(Database database) {
...@@ -243,7 +244,7 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -243,7 +244,7 @@ public class LobStorageBackend implements LobStorageInterface {
} }
} }
private PreparedStatement prepare(String sql) throws SQLException { PreparedStatement prepare(String sql) throws SQLException {
if (SysProperties.CHECK2) { if (SysProperties.CHECK2) {
if (!Thread.holdsLock(database)) { if (!Thread.holdsLock(database)) {
throw DbException.throwInternalError(); throw DbException.throwInternalError();
...@@ -256,7 +257,7 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -256,7 +257,7 @@ public class LobStorageBackend implements LobStorageInterface {
return prep; return prep;
} }
private void reuse(String sql, PreparedStatement prep) { void reuse(String sql, PreparedStatement prep) {
if (SysProperties.CHECK2) { if (SysProperties.CHECK2) {
if (!Thread.holdsLock(database)) { if (!Thread.holdsLock(database)) {
throw DbException.throwInternalError(); throw DbException.throwInternalError();
...@@ -575,7 +576,7 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -575,7 +576,7 @@ public class LobStorageBackend implements LobStorageInterface {
/** /**
* index into the lobMapBlocks array. * index into the lobMapBlocks array.
*/ */
private int lobMapIndex = 0; private int lobMapIndex;
/** /**
* The remaining bytes in the lob. * The remaining bytes in the lob.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论