Package io.datarouter.client.mysql.op
Enum Isolation
java.lang.Object
java.lang.Enum<Isolation>
io.datarouter.client.mysql.op.Isolation
- All Implemented Interfaces:
io.datarouter.storage.config.ConfigValue<Isolation>,io.datarouter.util.enums.IntegerEnum<Isolation>,io.datarouter.util.enums.PersistentString,io.datarouter.util.enums.StringEnum<Isolation>,java.io.Serializable,java.lang.Comparable<Isolation>,java.lang.constant.Constable
public enum Isolation extends java.lang.Enum<Isolation> implements io.datarouter.util.enums.IntegerEnum<Isolation>, io.datarouter.util.enums.StringEnum<Isolation>, io.datarouter.storage.config.ConfigValue<Isolation>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description readCommittedreadUncommittedrepeatableReadserializable -
Field Summary
-
Method Summary
Modifier and Type Method Description IsolationfromPersistentInteger(java.lang.Integer persistentInteger)IsolationfromPersistentString(java.lang.String persistentString)java.lang.IntegergetJdbcVal()io.datarouter.storage.config.ConfigKey<Isolation>getKey()java.lang.IntegergetPersistentInteger()java.lang.StringgetPersistentString()static IsolationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Isolation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getJdbcVal
public java.lang.Integer getJdbcVal() -
getPersistentInteger
public java.lang.Integer getPersistentInteger()- Specified by:
getPersistentIntegerin interfaceio.datarouter.util.enums.IntegerEnum<Isolation>
-
fromPersistentInteger
- Specified by:
fromPersistentIntegerin interfaceio.datarouter.util.enums.IntegerEnum<Isolation>
-
getPersistentString
public java.lang.String getPersistentString()- Specified by:
getPersistentStringin interfaceio.datarouter.util.enums.PersistentString
-
fromPersistentString
- Specified by:
fromPersistentStringin interfaceio.datarouter.util.enums.StringEnum<Isolation>
-
getKey
- Specified by:
getKeyin interfaceio.datarouter.storage.config.ConfigValue<Isolation>
-