Package org.flywaydb.database.mysql
Class MySQLConnection
- java.lang.Object
-
- org.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
-
- org.flywaydb.database.mysql.MySQLConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class MySQLConnection extends org.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
-
-
Constructor Summary
Constructors Constructor Description MySQLConnection(MySQLDatabase database, java.sql.Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canUseNamedLockTemplate()
void
doChangeCurrentSchemaOrSearchPathTo(java.lang.String schema)
protected org.flywaydb.core.internal.database.base.Schema
doGetCurrentSchema()
protected void
doRestoreOriginalState()
protected java.lang.String
getCurrentSchemaNameOrSearchPath()
org.flywaydb.core.internal.database.base.Schema
getSchema(java.lang.String name)
<T> T
lock(org.flywaydb.core.internal.database.base.Table table, java.util.concurrent.Callable<T> callable)
-
-
-
Constructor Detail
-
MySQLConnection
public MySQLConnection(MySQLDatabase database, java.sql.Connection connection)
-
-
Method Detail
-
doRestoreOriginalState
protected void doRestoreOriginalState() throws java.sql.SQLException
- Overrides:
doRestoreOriginalState
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
- Throws:
java.sql.SQLException
-
getCurrentSchemaNameOrSearchPath
protected java.lang.String getCurrentSchemaNameOrSearchPath() throws java.sql.SQLException
- Specified by:
getCurrentSchemaNameOrSearchPath
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
- Throws:
java.sql.SQLException
-
doChangeCurrentSchemaOrSearchPathTo
public void doChangeCurrentSchemaOrSearchPathTo(java.lang.String schema) throws java.sql.SQLException
- Overrides:
doChangeCurrentSchemaOrSearchPathTo
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
- Throws:
java.sql.SQLException
-
doGetCurrentSchema
protected org.flywaydb.core.internal.database.base.Schema doGetCurrentSchema() throws java.sql.SQLException
- Overrides:
doGetCurrentSchema
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
- Throws:
java.sql.SQLException
-
getSchema
public org.flywaydb.core.internal.database.base.Schema getSchema(java.lang.String name)
- Specified by:
getSchema
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
-
lock
public <T> T lock(org.flywaydb.core.internal.database.base.Table table, java.util.concurrent.Callable<T> callable)
- Overrides:
lock
in classorg.flywaydb.core.internal.database.base.Connection<MySQLDatabase>
-
canUseNamedLockTemplate
protected boolean canUseNamedLockTemplate()
-
-