提交 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;
} }
...@@ -1391,6 +1396,7 @@ public class Session extends SessionWithState { ...@@ -1391,6 +1396,7 @@ public class Session extends SessionWithState {
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>();
......
...@@ -118,6 +118,11 @@ public interface SessionInterface extends Closeable { ...@@ -118,6 +118,11 @@ public interface SessionInterface extends Closeable {
*/ */
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);
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论