Package liquibase.nosql.database
Class AbstractNoSqlConnection
- java.lang.Object
-
- liquibase.nosql.database.AbstractNoSqlConnection
-
- All Implemented Interfaces:
liquibase.database.DatabaseConnection,liquibase.servicelocator.PrioritizedService
- Direct Known Subclasses:
CosmosConnection
public abstract class AbstractNoSqlConnection extends Object implements liquibase.database.DatabaseConnection
-
-
Constructor Summary
Constructors Constructor Description AbstractNoSqlConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattached(liquibase.database.Database database)voidcommit()booleangetAutoCommit()intgetDatabaseMajorVersion()intgetDatabaseMinorVersion()StringgetDatabaseProductVersion()intgetPriority()StringnativeSQL(String sql)voidrollback()voidsetAutoCommit(boolean autoCommit)
-
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceliquibase.servicelocator.PrioritizedService
-
getAutoCommit
public boolean getAutoCommit() throws liquibase.exception.DatabaseException- Specified by:
getAutoCommitin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws liquibase.exception.DatabaseException- Specified by:
setAutoCommitin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
nativeSQL
public String nativeSQL(String sql)
- Specified by:
nativeSQLin interfaceliquibase.database.DatabaseConnection
-
getDatabaseProductVersion
public String getDatabaseProductVersion() throws liquibase.exception.DatabaseException
- Specified by:
getDatabaseProductVersionin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion() throws liquibase.exception.DatabaseException- Specified by:
getDatabaseMajorVersionin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion() throws liquibase.exception.DatabaseException- Specified by:
getDatabaseMinorVersionin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
attached
public void attached(liquibase.database.Database database)
- Specified by:
attachedin interfaceliquibase.database.DatabaseConnection
-
commit
public void commit() throws liquibase.exception.DatabaseException- Specified by:
commitin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
rollback
public void rollback() throws liquibase.exception.DatabaseException- Specified by:
rollbackin interfaceliquibase.database.DatabaseConnection- Throws:
liquibase.exception.DatabaseException
-
-