- java.lang.Object
-
- java.lang.Enum<AdbaSessionProperty.Caching>
-
- jdk.incubator.sql2.AdbaSessionProperty.Caching
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AdbaSessionProperty.Caching>
- Enclosing class:
- AdbaSessionProperty
public static enum AdbaSessionProperty.Caching extends java.lang.Enum<AdbaSessionProperty.Caching>
Specifies how much flexibility theDataSource
has in satisfying a request for aSession
possibly by using cached data source resources.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdbaSessionProperty.Caching
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AdbaSessionProperty.Caching[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final AdbaSessionProperty.Caching NEW
The returnedSession
is required to be backed by a completely new data source resource configured exactly as specified by the other properties. Use this with caution and only when absolutely necessary. UseAS_NEW
instead if at all possible. This should be used only to work around some limitation of the database or the implementation.
-
AS_NEW
public static final AdbaSessionProperty.Caching AS_NEW
-
CACHED
public static final AdbaSessionProperty.Caching CACHED
-
-
Method Detail
-
values
public static AdbaSessionProperty.Caching[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AdbaSessionProperty.Caching c : AdbaSessionProperty.Caching.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdbaSessionProperty.Caching valueOf(java.lang.String name)
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
-
-