public interface DatabaseConnection extends PrioritizedService, AutoCloseable
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| 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 |
open(String url,
Driver driverObject,
Properties driverProperties) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
default boolean |
supports(String url)
Default implementation for compatibility with a URL.
|
getPriorityvoid open(String url, Driver driverObject, Properties driverProperties) throws DatabaseException
DatabaseExceptiondefault boolean supports(String url)
url - the url connection stringvoid close()
throws DatabaseException
close in interface AutoCloseableDatabaseExceptionvoid commit()
throws DatabaseException
DatabaseExceptionboolean getAutoCommit()
throws DatabaseException
DatabaseExceptionString getCatalog() throws DatabaseException
DatabaseExceptionString nativeSQL(String sql) throws DatabaseException
DatabaseExceptionvoid rollback()
throws DatabaseException
DatabaseExceptionvoid setAutoCommit(boolean autoCommit)
throws DatabaseException
DatabaseExceptionString getDatabaseProductName() throws DatabaseException
DatabaseExceptionString getDatabaseProductVersion() throws DatabaseException
DatabaseExceptionint getDatabaseMajorVersion()
throws DatabaseException
DatabaseExceptionint getDatabaseMinorVersion()
throws DatabaseException
DatabaseExceptionString getURL()
String getConnectionUserName()
boolean isClosed()
throws DatabaseException
DatabaseExceptionvoid attached(Database database)
Copyright © 2023 Liquibase.org. All rights reserved.