コード例 #1
0
ファイル: Session.java プロジェクト: fengshao0907/jdbc_shard
 /**
  * Remember that the given LOB value must be un-linked (disconnected from the table) at commit.
  *
  * @param v the value
  */
 public void unlinkAtCommit(Value v) {
   if (SysProperties.CHECK && !v.isLinked()) {
     DbException.throwInternalError();
   }
   if (unlinkLobMap == null) {
     unlinkLobMap = New.hashMap();
   }
   unlinkLobMap.put(v.toString(), v);
 }
コード例 #2
0
ファイル: Session.java プロジェクト: fengshao0907/jdbc_shard
 /**
  * Do not unlink this LOB value at commit any longer.
  *
  * @param v the value
  */
 public void unlinkAtCommitStop(Value v) {
   if (unlinkLobMap != null) {
     unlinkLobMap.remove(v.toString());
   }
 }