java.io.Serializable
, java.lang.Comparable<Examples.ExampleSessionProperty>
, SessionProperty
public static enum Examples.ExampleSessionProperty extends java.lang.Enum<Examples.ExampleSessionProperty> implements SessionProperty
Enum Constant | Description |
---|---|
LANGUAGE |
Modifier and Type | Method | Description |
---|---|---|
boolean |
configureOperation(OperationGroup<?,?> group,
java.lang.Object value) |
|
java.lang.Object |
defaultValue() |
Return the value for this property to use if no other value is set.
|
boolean |
isSensitive() |
Returns true if this
SessionProperty contains sensitive information
such as a password or encryption key. |
java.lang.Class<?> |
range() |
Return the type of the value of this
SessionProperty . |
static Examples.ExampleSessionProperty |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Examples.ExampleSessionProperty[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name, validate
public static final Examples.ExampleSessionProperty LANGUAGE
public static Examples.ExampleSessionProperty[] values()
for (Examples.ExampleSessionProperty c : Examples.ExampleSessionProperty.values()) System.out.println(c);
public static Examples.ExampleSessionProperty 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 nullpublic java.lang.Class<?> range()
SessionProperty
SessionProperty
. Any value
set for this property must be assignable to this type.range
in interface SessionProperty
SessionProperty
public java.lang.Object defaultValue()
SessionProperty
DataSource
by calling
DataSource.Builder.registerSessionProperty(jdk.incubator.sql2.SessionProperty)
.defaultValue
in interface SessionProperty
null
if there is no default valuepublic boolean isSensitive()
SessionProperty
SessionProperty
contains sensitive information
such as a password or encryption key.isSensitive
in interface SessionProperty
public boolean configureOperation(OperationGroup<?,?> group, java.lang.Object value)
SessionProperty
Operation
s that will configure the
Session
to have the specified property value. Returns true
if any Operation
s were submitted. false
otherwise.
Called by Session.Builder.build()
to configure a Session
as
specified in the Session.Builder.property(jdk.incubator.sql2.SessionProperty, java.lang.Object)
method. SessionProperties
known to the implementation may return false
and rely on the
implementation to do the right thing.configureOperation
in interface SessionProperty
group
- an OperationGroup
which will be the container of the
submitted Operation
s, if anyvalue
- the value to which the property is to be set. May be null if
SessionProperty.range()
is Void
.Operation
s were submitted, false otherwiseReport 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