📄 threadtransactioncontext.java
字号:
package org.garret.perst.impl;
import org.garret.perst.*;
import java.util.*;
/**
* This class store transaction context associated with thread.
* Content of this class is opaque for application, but it can use
* this context to share the single transaction between multiple threads
*/
public class ThreadTransactionContext {
static class Proxy {
Object obj;
Proxy(Object o) {
obj = o;
}
public int hashCode() {
return System.identityHashCode(obj);
}
public boolean equals(Object o) {
return obj == o;
}
}
int nested;
Hashtable locked = new Hashtable();
ArrayList modified = new ArrayList();
ArrayList deleted = new ArrayList();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -