org.testcontainers.delegate.DatabaseDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of database-commons Show documentation
Show all versions of database-commons Show documentation
Isolated container management for Java code testing
package org.testcontainers.delegate;
import java.util.Collection;
/**
* Database delegate
*
* Gives an abstraction from concrete database
*/
public interface DatabaseDelegate extends AutoCloseable {
/**
* Execute statement by the implementation of the delegate
*/
void execute(
String statement,
String scriptPath,
int lineNumber,
boolean continueOnError,
boolean ignoreFailedDrops
);
/**
* Execute collection of statements
*/
void execute(Collection statements, String scriptPath, boolean continueOnError, boolean ignoreFailedDrops);
/**
* Close connection to the database
*
* Overridden to suppress throwing Exception
*/
@Override
void close();
}