| 1 | |
package liquibase.database; |
| 2 | |
|
| 3 | |
import liquibase.exception.DatabaseException; |
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
public interface DatabaseConnection { |
| 11 | |
|
| 12 | |
public void close() throws DatabaseException; |
| 13 | |
|
| 14 | |
public void commit() throws DatabaseException; |
| 15 | |
|
| 16 | |
public boolean getAutoCommit() throws DatabaseException; |
| 17 | |
|
| 18 | |
public String getCatalog() throws DatabaseException; |
| 19 | |
|
| 20 | |
public String nativeSQL(String sql) throws DatabaseException; |
| 21 | |
|
| 22 | |
public void rollback() throws DatabaseException; |
| 23 | |
|
| 24 | |
public void setAutoCommit(boolean autoCommit) throws DatabaseException; |
| 25 | |
|
| 26 | |
String getDatabaseProductName() throws DatabaseException; |
| 27 | |
|
| 28 | |
String getDatabaseProductVersion() throws DatabaseException; |
| 29 | |
|
| 30 | |
int getDatabaseMajorVersion() throws DatabaseException; |
| 31 | |
|
| 32 | |
int getDatabaseMinorVersion() throws DatabaseException; |
| 33 | |
|
| 34 | |
String getURL(); |
| 35 | |
|
| 36 | |
String getConnectionUserName(); |
| 37 | |
|
| 38 | |
boolean isClosed() throws DatabaseException; |
| 39 | |
} |