public class Driver
extends java.lang.Object
implements java.sql.Driver
| Constructor and Description |
|---|
Driver() |
Driver(CoreServicesContainer coreServicesContainer) |
public Driver()
public Driver(CoreServicesContainer coreServicesContainer)
public static void register()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void deregister()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean isRegistered()
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
connect in interface java.sql.Driverjava.sql.SQLExceptionpublic boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
acceptsURL in interface java.sql.Driverjava.sql.SQLExceptionpublic java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
getPropertyInfo in interface java.sql.Driverpublic int getMajorVersion()
getMajorVersion in interface java.sql.Driverpublic int getMinorVersion()
getMinorVersion in interface java.sql.Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface java.sql.Driverpublic java.util.logging.Logger getParentLogger()
getParentLogger in interface java.sql.Driverpublic static void setResetSessionStateOnCloseFunc(@NonNull ResetSessionStateOnCloseCallable func)
public static void resetResetSessionStateOnCloseFunc()
public static ResetSessionStateOnCloseCallable getResetSessionStateOnCloseFunc()
public static void setTransferSessionStateOnSwitchFunc(@NonNull TransferSessionStateOnSwitchCallable func)
public static void resetTransferSessionStateOnSwitchFunc()
public static TransferSessionStateOnSwitchCallable getTransferSessionStateOnSwitchFunc()
public static void setPrepareHostFunc(java.util.function.Function<java.lang.String,java.lang.String> func)
public static void resetPrepareHostFunc()
public static void setCustomExceptionHandler(ExceptionHandler exceptionHandler)
public static ExceptionHandler getCustomExceptionHandler()
public static void resetCustomExceptionHandler()
public static void setCustomDialect(@NonNull Dialect dialect)
public static Dialect getCustomDialect()
public static void resetCustomDialect()
public static void setCustomTargetDriverDialect(@NonNull TargetDriverDialect targetDriverDialect)
public static TargetDriverDialect getCustomTargetDriverDialect()
public static void resetCustomTargetDriverDialect()
public static void setCustomConnectionProvider(ConnectionProvider connProvider)
ConnectionProvider. The
requested ConnectionProvider will be used to establish future connections unless it does not
support a requested URL, in which case the default ConnectionProvider will be used. See
ConnectionProvider.acceptsUrl(java.lang.String, software.amazon.jdbc.HostSpec, java.util.Properties) for more info.connProvider - the ConnectionProvider to use to establish new connectionspublic static ConnectionProvider getCustomConnectionProvider()
public static void resetCustomConnectionProvider()
ConnectionProvider if it has been set. The default
ConnectionProvider will be used if the non-default ConnectionProvider has not been set or has
been cleared.public static void setConnectionInitFunc(@NonNull ConnectionProviderManager.ConnectionInitFunc func)
public static ConnectionProviderManager.ConnectionInitFunc getConnectionInitFunc()
public static void resetConnectionInitFunc()
public static void clearCaches()
public static void releaseResources()
public static void skipWrappingForType(java.lang.Class<?> clazz)
public static void skipWrappingForPackage(java.lang.String packageName)