public static enum JdbcConnectionProperty.Caching extends java.lang.Enum<JdbcConnectionProperty.Caching>
Enum Constant | Description |
---|---|
AS_NEW |
The returned
Connection has no state other than that of a new Connection
modified as specified by the other properties. |
CACHED |
The returned
Connection has the state specified by the other properties
but may have additional state that differs from that of a new Connection . |
NEW |
The returned
Connection is required to be completely new and configured
exactly as specified by the other properties. |
Modifier and Type | Method | Description |
---|---|---|
static JdbcConnectionProperty.Caching |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static JdbcConnectionProperty.Caching[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JdbcConnectionProperty.Caching NEW
Connection
is required to be completely new and 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 JdbcConnectionProperty.Caching AS_NEW
Connection
has no state other than that of a new Connection
modified as specified by the other properties. May not be strictly new
but has the same behavior as a new Connection
. The Connection
may be NEW
. The default.public static final JdbcConnectionProperty.Caching CACHED
Connection
has the state specified by the other properties
but may have additional state that differs from that of a new Connection
.
The Connection
may be AS_NEW
.public static JdbcConnectionProperty.Caching[] values()
for (JdbcConnectionProperty.Caching c : JdbcConnectionProperty.Caching.values()) System.out.println(c);
public static JdbcConnectionProperty.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 EA