Package liquibase.database
Class MockDatabaseConnection
java.lang.Object
liquibase.database.MockDatabaseConnection
- All Implemented Interfaces:
AutoCloseable,DatabaseConnection,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidcommit()booleanintintintgetURL()booleanisClosed()voidopen(String url, Driver driverObject, Properties driverProperties) voidrollback()voidsetAutoCommit(boolean autoCommit) setDatabaseMajorVersion(int databaseMajorVersion) setDatabaseMinorVersion(int databaseMinorVersion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.database.DatabaseConnection
getUnderlyingConnection, getVisibleUrl, supports
-
Constructor Details
-
MockDatabaseConnection
public MockDatabaseConnection()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePrioritizedService
-
open
public void open(String url, Driver driverObject, Properties driverProperties) throws DatabaseException - Specified by:
openin interfaceDatabaseConnection- Throws:
DatabaseException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDatabaseConnection- Throws:
DatabaseException
-
commit
- Specified by:
commitin interfaceDatabaseConnection- Throws:
DatabaseException
-
getAutoCommit
- Specified by:
getAutoCommitin interfaceDatabaseConnection- Throws:
DatabaseException
-
getCatalog
- Specified by:
getCatalogin interfaceDatabaseConnection- Throws:
DatabaseException
-
nativeSQL
- Specified by:
nativeSQLin interfaceDatabaseConnection- Throws:
DatabaseException
-
rollback
- Specified by:
rollbackin interfaceDatabaseConnection- Throws:
DatabaseException
-
setAutoCommit
- Specified by:
setAutoCommitin interfaceDatabaseConnection- Throws:
DatabaseException
-
getDatabaseProductName
- Specified by:
getDatabaseProductNamein interfaceDatabaseConnection- Throws:
DatabaseException
-
getDatabaseProductVersion
- Specified by:
getDatabaseProductVersionin interfaceDatabaseConnection- Throws:
DatabaseException
-
getDatabaseMajorVersion
- Specified by:
getDatabaseMajorVersionin interfaceDatabaseConnection- Throws:
DatabaseException
-
setDatabaseMajorVersion
-
getDatabaseMinorVersion
- Specified by:
getDatabaseMinorVersionin interfaceDatabaseConnection- Throws:
DatabaseException
-
setDatabaseMinorVersion
-
getURL
- Specified by:
getURLin interfaceDatabaseConnection
-
getConnectionUserName
- Specified by:
getConnectionUserNamein interfaceDatabaseConnection
-
isClosed
- Specified by:
isClosedin interfaceDatabaseConnection- Throws:
DatabaseException
-
attached
- Specified by:
attachedin interfaceDatabaseConnection
-