|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.enumerations.Enumeration
org.jcreme.sql.IsolationLevel
This class represents the IsolationLevel of a database transaction. The value associated to the objects can be used in the java.sql.Connection interface to set the transactions isolation level.
Field Summary | |
static java.lang.Integer |
I_NONE
The value for the 'NONE' isolation level. |
static java.lang.Integer |
I_READ_COMMITTED
The value for the 'READ_COMMITTED' isolation level. |
static java.lang.Integer |
I_READ_UNCOMMITTED
The value for the 'READ_UNCOMMITTED' isolation level. |
static java.lang.Integer |
I_REPEATABLE_READ
The value for the 'REPEATABLE_READ' isolation level. |
static java.lang.Integer |
I_SERIALIZABLE
The value for the 'SERIALIZABLE' isolation level. |
static IsolationLevel |
NONE
The 'NONE' isolation level. |
static IsolationLevel |
READ_COMMITTED
The 'READ_COMMITTED' isolation level. |
static IsolationLevel |
READ_UNCOMMITTED
The 'READ_UNCOMMITTED' isolation level. |
static IsolationLevel |
REPEATABLE_READ
The 'REPEATABLE_READ' isolation level. |
static java.lang.String |
S_NONE
The name for the 'NONE' isolation level. |
static java.lang.String |
S_READ_COMMITTED
The name for the 'READ_COMMITTED' isolation level. |
static java.lang.String |
S_READ_UNCOMMITTED
The name for the 'READ_UNCOMMITTED' isolation level. |
static java.lang.String |
S_REPEATABLE_READ
The name for the 'REPEATABLE_READ' isolation level. |
static java.lang.String |
S_SERIALIZABLE
The name for the 'SERIALIZABLE' isolation level. |
static IsolationLevel |
SERIALIZABLE
The 'SERIALIZABLE' isolation level. |
protected java.lang.Integer |
value
The value of the IsolationLevel as defined in the java.sql.Connection interface. |
Fields inherited from class org.jcreme.enumerations.Enumeration |
|
Constructor Summary | |
protected |
IsolationLevel(java.lang.String name,
java.lang.Integer value)
Creates a new instance of IsolationLevel |
Method Summary | |
static IsolationLevel |
get(java.lang.Integer value)
Retrieves the IsolationLevel that corresponds to the given id. |
static IsolationLevel |
get(java.lang.String name)
Retrieves the IsolationLevel that corresponds to the given name. |
protected java.util.Hashtable |
getFromName()
This method is for internal use only. |
protected java.util.Hashtable |
getFromValue()
This method is for internal use only. |
java.lang.Integer |
getValue()
Gives access to the value of the IsolationLevel. |
Methods inherited from class org.jcreme.enumerations.Enumeration |
compareTo, getName, getValues, readResolve, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Integer value
public static final java.lang.String S_NONE
public static final java.lang.Integer I_NONE
public static final IsolationLevel NONE
public static final java.lang.String S_READ_COMMITTED
public static final java.lang.Integer I_READ_COMMITTED
public static final IsolationLevel READ_COMMITTED
public static final java.lang.String S_READ_UNCOMMITTED
public static final java.lang.Integer I_READ_UNCOMMITTED
public static final IsolationLevel READ_UNCOMMITTED
public static final java.lang.String S_REPEATABLE_READ
public static final java.lang.Integer I_REPEATABLE_READ
public static final IsolationLevel REPEATABLE_READ
public static final java.lang.String S_SERIALIZABLE
public static final java.lang.Integer I_SERIALIZABLE
public static final IsolationLevel SERIALIZABLE
Constructor Detail |
protected IsolationLevel(java.lang.String name, java.lang.Integer value) throws java.security.InvalidParameterException
name
- the name of this enumerated value. It cannot be null.value
- the id for this enmerated value. It cannot be null.
java.security.InvalidParameterException
- if one of the parameters is null.Method Detail |
protected java.util.Hashtable getFromName()
getFromName
in class Enumeration
protected java.util.Hashtable getFromValue()
public static IsolationLevel get(java.lang.String name)
name
- the name of the IsolationLevel to retrieve.
public static IsolationLevel get(java.lang.Integer value)
value
- the id of the IsolationLevel to retrieve.
public java.lang.Integer getValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |