public class MysqlDialect extends java.lang.Object implements Dialect
| Modifier and Type | Field and Description |
|---|---|
protected DialectUtils |
dialectUtils |
protected static java.lang.String |
HOST_ALIAS_QUERY |
protected static java.lang.String |
HOST_ID_EXPRESSION |
protected static java.lang.String |
HOST_ID_QUERY |
protected static java.lang.String |
IS_READER_QUERY |
protected static java.lang.String |
VERSION_QUERY |
| Constructor and Description |
|---|
MysqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPort() |
@Nullable java.util.List<java.lang.String> |
getDialectUpdateCandidates() |
ExceptionHandler |
getExceptionHandler() |
java.util.EnumSet<FailoverRestriction> |
getFailoverRestrictions() |
java.lang.String |
getHostAliasQuery() |
@Nullable Pair<java.lang.String,java.lang.String> |
getHostId(java.sql.Connection connection) |
HostListProviderSupplier |
getHostListProviderSupplier() |
HostRole |
getHostRole(java.sql.Connection conn) |
java.lang.String |
getServerVersionQuery() |
boolean |
isDialect(java.sql.Connection connection) |
void |
prepareConnectProperties(@NonNull java.util.Properties connectProperties,
@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterAvailableHostsprotected static final java.lang.String VERSION_QUERY
protected static final java.lang.String HOST_ID_EXPRESSION
protected static final java.lang.String HOST_ALIAS_QUERY
protected static final java.lang.String HOST_ID_QUERY
protected static final java.lang.String IS_READER_QUERY
protected final DialectUtils dialectUtils
public boolean isDialect(java.sql.Connection connection)
public int getDefaultPort()
getDefaultPort in interface Dialectpublic @Nullable java.util.List<java.lang.String> getDialectUpdateCandidates()
getDialectUpdateCandidates in interface Dialectpublic ExceptionHandler getExceptionHandler()
getExceptionHandler in interface Dialectpublic HostListProviderSupplier getHostListProviderSupplier()
getHostListProviderSupplier in interface Dialectpublic void prepareConnectProperties(@NonNull java.util.Properties connectProperties,
@NonNull java.lang.String protocol,
@NonNull HostSpec hostSpec)
prepareConnectProperties in interface Dialectpublic java.util.EnumSet<FailoverRestriction> getFailoverRestrictions()
getFailoverRestrictions in interface Dialectpublic java.lang.String getServerVersionQuery()
getServerVersionQuery in interface Dialectpublic HostRole getHostRole(java.sql.Connection conn) throws java.sql.SQLException
getHostRole in interface Dialectjava.sql.SQLExceptionpublic @Nullable Pair<java.lang.String,java.lang.String> getHostId(java.sql.Connection connection) throws java.sql.SQLException
public java.lang.String getHostAliasQuery()
getHostAliasQuery in interface Dialect