public class MockDatabaseConnection extends Object implements DatabaseConnection
| Constructor and Description |
|---|
MockDatabaseConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
attached(Database database) |
void |
close() |
void |
commit() |
boolean |
getAutoCommit() |
String |
getCatalog() |
String |
getConnectionUserName() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
String |
getDatabaseProductName() |
String |
getDatabaseProductVersion() |
String |
getURL() |
boolean |
isClosed() |
String |
nativeSQL(String sql) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
MockDatabaseConnection |
setDatabaseMajorVersion(int databaseMajorVersion) |
MockDatabaseConnection |
setDatabaseMinorVersion(int databaseMinorVersion) |
public void close()
throws DatabaseException
close in interface DatabaseConnectionDatabaseExceptionpublic void commit()
throws DatabaseException
commit in interface DatabaseConnectionDatabaseExceptionpublic boolean getAutoCommit()
throws DatabaseException
getAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic String getCatalog() throws DatabaseException
getCatalog in interface DatabaseConnectionDatabaseExceptionpublic String nativeSQL(String sql) throws DatabaseException
nativeSQL in interface DatabaseConnectionDatabaseExceptionpublic void rollback()
throws DatabaseException
rollback in interface DatabaseConnectionDatabaseExceptionpublic void setAutoCommit(boolean autoCommit)
throws DatabaseException
setAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic String getDatabaseProductName() throws DatabaseException
getDatabaseProductName in interface DatabaseConnectionDatabaseExceptionpublic String getDatabaseProductVersion() throws DatabaseException
getDatabaseProductVersion in interface DatabaseConnectionDatabaseExceptionpublic int getDatabaseMajorVersion()
throws DatabaseException
getDatabaseMajorVersion in interface DatabaseConnectionDatabaseExceptionpublic MockDatabaseConnection setDatabaseMajorVersion(int databaseMajorVersion)
public int getDatabaseMinorVersion()
throws DatabaseException
getDatabaseMinorVersion in interface DatabaseConnectionDatabaseExceptionpublic MockDatabaseConnection setDatabaseMinorVersion(int databaseMinorVersion)
public String getURL()
getURL in interface DatabaseConnectionpublic String getConnectionUserName()
getConnectionUserName in interface DatabaseConnectionpublic boolean isClosed()
throws DatabaseException
isClosed in interface DatabaseConnectionDatabaseExceptionpublic void attached(Database database)
attached in interface DatabaseConnectionCopyright © 2019 Liquibase.org. All rights reserved.