public class OfflineConnection extends Object implements DatabaseConnection
Constructor and Description |
---|
OfflineConnection(String url) |
Modifier and Type | Method and Description |
---|---|
void |
attached(Database database) |
void |
close() |
void |
commit() |
protected ChangeLogHistoryService |
createChangeLogHistoryService(Database database) |
boolean |
getAutoCommit() |
String |
getCatalog() |
String |
getConnectionUserName() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
String |
getDatabaseProductName() |
String |
getDatabaseProductVersion() |
boolean |
getOutputLiquibaseSql() |
String |
getURL() |
boolean |
isClosed() |
boolean |
isCorrectDatabaseImplementation(Database database) |
String |
nativeSQL(String sql) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setOutputLiquibaseSql(Boolean outputLiquibaseSql) |
public OfflineConnection(String url)
public boolean isCorrectDatabaseImplementation(Database database)
public void attached(Database database)
attached
in interface DatabaseConnection
protected ChangeLogHistoryService createChangeLogHistoryService(Database database)
public void close() throws DatabaseException
close
in interface DatabaseConnection
DatabaseException
public void commit() throws DatabaseException
commit
in interface DatabaseConnection
DatabaseException
public boolean getAutoCommit() throws DatabaseException
getAutoCommit
in interface DatabaseConnection
DatabaseException
public String getCatalog() throws DatabaseException
getCatalog
in interface DatabaseConnection
DatabaseException
public String nativeSQL(String sql) throws DatabaseException
nativeSQL
in interface DatabaseConnection
DatabaseException
public void rollback() throws DatabaseException
rollback
in interface DatabaseConnection
DatabaseException
public void setAutoCommit(boolean autoCommit) throws DatabaseException
setAutoCommit
in interface DatabaseConnection
DatabaseException
public String getDatabaseProductName() throws DatabaseException
getDatabaseProductName
in interface DatabaseConnection
DatabaseException
public String getDatabaseProductVersion() throws DatabaseException
getDatabaseProductVersion
in interface DatabaseConnection
DatabaseException
public int getDatabaseMajorVersion() throws DatabaseException
getDatabaseMajorVersion
in interface DatabaseConnection
DatabaseException
public int getDatabaseMinorVersion() throws DatabaseException
getDatabaseMinorVersion
in interface DatabaseConnection
DatabaseException
public String getURL()
getURL
in interface DatabaseConnection
public String getConnectionUserName()
getConnectionUserName
in interface DatabaseConnection
public boolean isClosed() throws DatabaseException
isClosed
in interface DatabaseConnection
DatabaseException
public boolean getOutputLiquibaseSql()
public void setOutputLiquibaseSql(Boolean outputLiquibaseSql)
Copyright © 2014 Liquibase.org. All rights reserved.