01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.views;
06:
07: import com.terracottatech.config.LockLevel;
08:
09: public class AutolockWrapper extends LockWrapper {
10: AutolockWrapper(LocksWrapper parent, int index) {
11: super (parent, index);
12: }
13:
14: String getMethodExpression() {
15: return m_parent.getAutolockArray(m_index).getMethodExpression();
16: }
17:
18: void setMethodExpression(String methodExpr) {
19: m_parent.getAutolockArray(m_index).setMethodExpression(
20: methodExpr);
21: }
22:
23: LockLevel getLevel() {
24: return m_parent.getAutolockArray(m_index).xgetLockLevel();
25: }
26:
27: void setLevel(LockLevel.Enum level) {
28: m_parent.getAutolockArray(m_index).setLockLevel(level);
29: }
30:
31: boolean getAutoSynchronized() {
32: return m_parent.getAutolockArray(m_index).getAutoSynchronized();
33: }
34:
35: void setAutoSynchronized(boolean autoSynchronized) {
36: m_parent.getAutolockArray(m_index).setAutoSynchronized(
37: autoSynchronized);
38: }
39:
40: void unsetAutoSynchronized() {
41: m_parent.getAutolockArray(m_index).unsetAutoSynchronized();
42: }
43:
44: void remove() {
45: m_parent.removeAutolock(m_index);
46: }
47: }
|