public interface TargetDriverDialect
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAllowedOnConnectionMethodNames() |
java.util.Set<java.lang.String> |
getNetworkBoundMethodNames(@Nullable java.util.Properties properties) |
java.lang.String |
getSQLState(java.lang.Throwable throwable) |
boolean |
isDialect(java.sql.Driver driver) |
boolean |
isDialect(java.lang.String dataSourceClass) |
boolean |
isDriverRegistered() |
boolean |
ping(@NonNull java.sql.Connection connection)
Attempts to communicate to a database node in order to measure network latency.
|
ConnectInfo |
prepareConnectInfo(@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props) |
void |
prepareDataSource(@NonNull javax.sql.DataSource dataSource,
@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props) |
void |
registerDriver() |
boolean isDialect(java.sql.Driver driver)
boolean isDialect(java.lang.String dataSourceClass)
ConnectInfo prepareConnectInfo(@NonNull java.lang.String protocol, @NonNull HostSpec hostSpec, @NonNull java.util.Properties props) throws java.sql.SQLException
java.sql.SQLExceptionvoid prepareDataSource(@NonNull javax.sql.DataSource dataSource,
@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props)
throws java.sql.SQLException
java.sql.SQLExceptionboolean isDriverRegistered()
throws java.sql.SQLException
java.sql.SQLExceptionvoid registerDriver()
throws java.sql.SQLException
java.sql.SQLExceptionboolean ping(@NonNull java.sql.Connection connection)
connection - The database connection to a node to ping.java.util.Set<java.lang.String> getAllowedOnConnectionMethodNames()
java.lang.String getSQLState(java.lang.Throwable throwable)
java.util.Set<java.lang.String> getNetworkBoundMethodNames(@Nullable java.util.Properties properties)