public static interface Session.Builder
Session.Builder property(SessionProperty p, java.lang.Object v)
SessionPropertyto set. Not
v- value for the property
p.validate(v)does not return true, if this method has already been called with the property
p, or the implementation does not support the
Sessionwith the attributes specified. Note that the
Sessionmay not be attached to a server. Call one of the
Session.attach()convenience methods to attach the
Sessionto a server. The lifecycle of the new
Session.Lifecycle.NEW. This method cannot block. If the DataSource is unable to support a new Session when this method is called, this method throws SqlException. Note that the implementation does not have to allocate scarce resources to the new
Sessionwhen this method is called so limiting the number of
Sessions is not required to limit the use of scarce resources. It may be appropriate to limit the number of
Sessions for other reasons, but that is implementation dependent.
java.lang.IllegalStateException- if this method has already been called or if the implementation cannot create a Session with the specified
java.lang.IllegalStateException- if the
DataSourcethat created this
SqlException- if creating a
Sessionwould exceed some limit
Report 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