java.io.Serializable
, java.lang.Comparable<AdbaSessionProperty.Caching>
public static enum AdbaSessionProperty.Caching extends java.lang.Enum<AdbaSessionProperty.Caching>
DataSource
has in satisfying a
request for a Session
possibly by using cached data source resources.Enum Constant | Description |
---|---|
AS_NEW |
|
CACHED |
|
NEW |
The returned
Session is required to be backed by a completely new
data source resource configured exactly as specified by the other properties. |
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.
|
public static final AdbaSessionProperty.Caching NEW
Session
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. Use AS_NEW
instead if at all possible.
This should be used only to work around some limitation of the database
or the implementation.public static final AdbaSessionProperty.Caching AS_NEW
public static final AdbaSessionProperty.Caching CACHED
public static AdbaSessionProperty.Caching[] values()
for (AdbaSessionProperty.Caching c : AdbaSessionProperty.Caching.values()) System.out.println(c);
public static AdbaSessionProperty.Caching valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullReport a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA5