public class Driver extends NonRegisteringDriver
The DriverManager will try to load as many drivers as it can find and then for any given connection request, it will ask each driver in turn to try to connect to the target URL.
It is strongly recommended that each Driver class should be small and standalone so that the Driver class can be loaded and queried without bringing in vast quantities of supporting code.
When a Driver class is loaded, it should create an instance of itself and register it with the DriverManager. This means that a user can load and register a driver by doing Class.forName("foo.bah.Driver")
acceptAwsProtocolOnly
Constructor and Description |
---|
Driver()
Construct a new driver and register it with DriverManager
|
Modifier and Type | Method and Description |
---|---|
static void |
releasePluginManagers()
Release all resources currently held up by
ConnectionPluginManager . |
static void |
setAcceptAwsProtocolOnly(boolean awsProtocolOnly)
Set the acceptAwsProtocolOnly property for the driver, which controls whether protocols other than
jdbc:postgresql:aws:// will be accepted by the driver.
|
acceptsURL, connect, getMajorVersion, getMinorVersion, getOSName, getParentLogger, getPlatform, getPropertyInfo, jdbcCompliant
public Driver() throws java.sql.SQLException
java.sql.SQLException
- if a database error occurs.public static void setAcceptAwsProtocolOnly(boolean awsProtocolOnly)
awsProtocolOnly
- enables the acceptAwsProtocolOnly mode of the driverpublic static void releasePluginManagers()
ConnectionPluginManager
.