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.
|
getPriority
void open(String url, Driver driverObject, Properties driverProperties) throws DatabaseException
DatabaseException
default boolean supports(String url)
url
- the url connection stringvoid close() throws DatabaseException
close
in interface AutoCloseable
DatabaseException
void commit() throws DatabaseException
DatabaseException
boolean getAutoCommit() throws DatabaseException
DatabaseException
String getCatalog() throws DatabaseException
DatabaseException
String nativeSQL(String sql) throws DatabaseException
DatabaseException
void rollback() throws DatabaseException
DatabaseException
void setAutoCommit(boolean autoCommit) throws DatabaseException
DatabaseException
String getDatabaseProductName() throws DatabaseException
DatabaseException
String getDatabaseProductVersion() throws DatabaseException
DatabaseException
int getDatabaseMajorVersion() throws DatabaseException
DatabaseException
int getDatabaseMinorVersion() throws DatabaseException
DatabaseException
String getURL()
String getConnectionUserName()
boolean isClosed() throws DatabaseException
DatabaseException
void attached(Database database)
Copyright © 2023 Liquibase.org. All rights reserved.