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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
commit()
boolean
int
int
int
getURL()
boolean
isClosed()
void
open
(String url, Driver driverObject, Properties driverProperties) void
rollback()
void
setAutoCommit
(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, wait
Methods inherited from interface liquibase.database.DatabaseConnection
supports
-
Constructor Details
-
MockDatabaseConnection
public MockDatabaseConnection()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePrioritizedService
-
open
public void open(String url, Driver driverObject, Properties driverProperties) throws DatabaseException - Specified by:
open
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
commit
- Specified by:
commit
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
getAutoCommit
- Specified by:
getAutoCommit
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
getCatalog
- Specified by:
getCatalog
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
nativeSQL
- Specified by:
nativeSQL
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
rollback
- Specified by:
rollback
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
setAutoCommit
- Specified by:
setAutoCommit
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
getDatabaseProductName
- Specified by:
getDatabaseProductName
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
getDatabaseProductVersion
- Specified by:
getDatabaseProductVersion
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
getDatabaseMajorVersion
- Specified by:
getDatabaseMajorVersion
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
setDatabaseMajorVersion
-
getDatabaseMinorVersion
- Specified by:
getDatabaseMinorVersion
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
setDatabaseMinorVersion
-
getURL
- Specified by:
getURL
in interfaceDatabaseConnection
-
getConnectionUserName
- Specified by:
getConnectionUserName
in interfaceDatabaseConnection
-
isClosed
- Specified by:
isClosed
in interfaceDatabaseConnection
- Throws:
DatabaseException
-
attached
- Specified by:
attached
in interfaceDatabaseConnection
-