KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jofti > core > TransactionLevel


1 /*
2  * Created on 17-Jun-2005
3  *
4  */

5 package com.jofti.core;
6
7
8 /**
9  *
10  *
11  * Transaction levels for JBossCache Support
12  *
13  * @author Steve Woodcock (steve@jofti.com)
14  * @version 1.0
15  */

16 public class TransactionLevel {
17
18        public static final TransactionLevel NONE = new TransactionLevel("NONE");
19        public static final TransactionLevel SERIALIZABLE = new TransactionLevel("SERIALIZABLE");
20        public static final TransactionLevel REPEATABLE_READ = new TransactionLevel("REPEATABLE_READ");
21        public static final TransactionLevel READ_COMMITTED = new TransactionLevel("READ_COMMITTED");
22        public static final TransactionLevel READ_UNCOMMITTED = new TransactionLevel("READ_UNCOMMITTED");
23        public static final TransactionLevel OPTIMISTIC = new TransactionLevel("OPTIMISTIC");
24         
25         
26     
27
28     private String JavaDoc level = null;
29     
30     private TransactionLevel(String JavaDoc level){
31         this.level = level;
32     }
33     
34     public String JavaDoc toString(){
35         return level;
36     }
37 }
38
Popular Tags