public class MySqlJdbcContext extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected static JdbcConnection.ConnectionFactory |
FACTORY |
protected JdbcConnection |
jdbc |
protected org.slf4j.Logger |
logger |
protected static String |
MYSQL_CONNECTION_URL |
private Map<String,String> |
originalSystemProperties |
| Constructor and Description |
|---|
MySqlJdbcContext(Configuration config) |
protected static final String MYSQL_CONNECTION_URL
protected static JdbcConnection.ConnectionFactory FACTORY
protected final org.slf4j.Logger logger
protected final Configuration config
protected final JdbcConnection jdbc
public MySqlJdbcContext(Configuration config)
public Configuration config()
public JdbcConnection jdbc()
public org.slf4j.Logger logger()
public String username()
public String password()
public String hostname()
public int port()
public MySqlConnectorConfig.SecureConnectionMode sslMode()
public boolean sslModeEnabled()
public MySqlConnectorConfig.EventProcessingFailureHandlingMode eventDeserializationFailureHandlingMode()
public MySqlConnectorConfig.EventProcessingFailureHandlingMode inconsistentSchemaHandlingMode()
public void start()
public void shutdown()
public void close()
close in interface AutoCloseablepublic String knownGtidSet()
public boolean userHasPrivileges(String grantName)
true.grantName - the name of the MySQL privilege; may not be nulltrue if the user has the named privilege, or false otherwiseprotected String connectionString()
protected Map<String,String> readMySqlCharsetSystemVariables(AtomicReference<String> sql)
sql - the reference that should be set to the SQL statement; may be null if not neededprotected Map<String,String> readMySqlSystemVariables(AtomicReference<String> sql)
sql - the reference that should be set to the SQL statement; may be null if not neededCopyright © 2018 JBoss by Red Hat. All rights reserved.