public interface ConnectionProvider
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
connect(@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props)
Called once per connection that needs to be created.
|
java.sql.Connection |
connect(@NonNull java.lang.String url,
@NonNull java.util.Properties props)
Called once per connection that needs to be created.
|
java.sql.Connection connect(@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props)
throws java.sql.SQLException
protocol - The connection protocol (example "jdbc:mysql://")hostSpec - The HostSpec containing the host-port information for the host to connect toprops - The Properties to use for the connectionConnection resulting from the given connection informationjava.sql.SQLException - if an error occursjava.sql.Connection connect(@NonNull java.lang.String url,
@NonNull java.util.Properties props)
throws java.sql.SQLException
url - The connection URLprops - The Properties to use for the connectionConnection resulting from the given connection informationjava.sql.SQLException - if an error occurs