Package liquibase.nosql.database
Class AbstractNoSqlConnection
java.lang.Object
liquibase.nosql.database.AbstractNoSqlConnection
- All Implemented Interfaces:
AutoCloseable,liquibase.database.DatabaseConnection,liquibase.servicelocator.PrioritizedService
- Direct Known Subclasses:
MongoConnection
public abstract class AbstractNoSqlConnection
extends Object
implements liquibase.database.DatabaseConnection
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattached(liquibase.database.Database database) voidcommit()booleanintintintvoidrollback()voidsetAutoCommit(boolean autoCommit) abstract booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.database.DatabaseConnection
close, getCatalog, getConnectionUserName, getDatabaseProductName, getURL, isClosed, open
-
Constructor Details
-
AbstractNoSqlConnection
public AbstractNoSqlConnection()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceliquibase.database.DatabaseConnection
-
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
- Specified by:
nativeSQLin interfaceliquibase.database.DatabaseConnection
-
getDatabaseProductVersion
- 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
-