/** Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.*********************/package java.sql;/*** An interface that must be implemented when a {@linkplain Driver} wants to be* notified by {@code DriverManager}.*<P>* A {@code DriverAction} implementation is not intended to be used* directly by applications. A JDBC Driver may choose* to create its {@code DriverAction} implementation in a private class* to avoid it being called directly.* <p>* The JDBC driver's static initialization block must call* {@linkplain DriverManager#registerDriver(java.sql.Driver, java.sql.DriverAction) } in order* to inform {@code DriverManager} which {@code DriverAction} implementation to* call when the JDBC driver is de-registered.* @since 1.8*/public interface DriverAction {/*** Method called by* {@linkplain DriverManager#deregisterDriver(Driver) }* to notify the JDBC driver that it was de-registered.* <p>* The {@code deregister} method is intended only to be used by JDBC Drivers* and not by applications. JDBC drivers are recommended to not implement* {@code DriverAction} in a public class. If there are active* connections to the database at the time that the {@code deregister}* method is called, it is implementation specific as to whether the* connections are closed or allowed to continue. Once this method is* called, it is implementation specific as to whether the driver may* limit the ability to create new connections to the database, invoke* other {@code Driver} methods or throw a {@code SQLException}.* Consult your JDBC driver's documentation for additional information* on its behavior.* @see DriverManager#registerDriver(java.sql.Driver, java.sql.DriverAction)* @see DriverManager#deregisterDriver(Driver)* @since 1.8*/void deregister();}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。