01: /*
02: * Created on 17-Jun-2005
03: *
04: */
05: package com.jofti.core;
06:
07: /**
08: *
09: *
10: * Transaction levels for JBossCache Support
11: *
12: * @author Steve Woodcock (steve@jofti.com)
13: * @version 1.0
14: */
15: public class TransactionLevel {
16:
17: public static final TransactionLevel NONE = new TransactionLevel(
18: "NONE");
19: public static final TransactionLevel SERIALIZABLE = new TransactionLevel(
20: "SERIALIZABLE");
21: public static final TransactionLevel REPEATABLE_READ = new TransactionLevel(
22: "REPEATABLE_READ");
23: public static final TransactionLevel READ_COMMITTED = new TransactionLevel(
24: "READ_COMMITTED");
25: public static final TransactionLevel READ_UNCOMMITTED = new TransactionLevel(
26: "READ_UNCOMMITTED");
27: public static final TransactionLevel OPTIMISTIC = new TransactionLevel(
28: "OPTIMISTIC");
29:
30: private String level = null;
31:
32: private TransactionLevel(String level) {
33: this .level = level;
34: }
35:
36: public String toString() {
37: return level;
38: }
39: }
|