提交 7b1ed627 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting, javadocs.

上级 7a2fba10
...@@ -850,6 +850,11 @@ public class Session extends SessionWithState { ...@@ -850,6 +850,11 @@ public class Session extends SessionWithState {
firstUncommittedPos = Session.LOG_WRITTEN; firstUncommittedPos = Session.LOG_WRITTEN;
} }
/**
* Whether the session contains any uncommitted changes.
*
* @return true if yes
*/
public boolean containsUncommitted() { public boolean containsUncommitted() {
return firstUncommittedLog != Session.LOG_WRITTEN; return firstUncommittedLog != Session.LOG_WRITTEN;
} }
...@@ -1390,10 +1395,11 @@ public class Session extends SessionWithState { ...@@ -1390,10 +1395,11 @@ public class Session extends SessionWithState {
startStatement = -1; startStatement = -1;
closeTemporaryResults(); closeTemporaryResults();
} }
@Override
public void addTemporaryLob(Value v) { public void addTemporaryLob(Value v) {
if (temporaryLobs == null) { if (temporaryLobs == null) {
temporaryLobs = new ArrayList<Value>(); temporaryLobs = new ArrayList<Value>();
} }
temporaryLobs.add(v); temporaryLobs.add(v);
} }
......
...@@ -117,7 +117,12 @@ public interface SessionInterface extends Closeable { ...@@ -117,7 +117,12 @@ public interface SessionInterface extends Closeable {
* @param autoCommit the new value * @param autoCommit the new value
*/ */
void setAutoCommit(boolean autoCommit); void setAutoCommit(boolean autoCommit);
/**
* Add a temporary LOB, which is closed when the session commits.
*
* @param v the value
*/
void addTemporaryLob(Value v); void addTemporaryLob(Value v);
} }
...@@ -805,7 +805,7 @@ public class SessionRemote extends SessionWithState implements DataHandler { ...@@ -805,7 +805,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
} }
return javaObjectSerializerFQN; return javaObjectSerializerFQN;
} }
@Override @Override
public void addTemporaryLob(Value v) { public void addTemporaryLob(Value v) {
// do nothing // do nothing
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论