CONNECTION - connection to the databasepublic abstract class AbstractDatabaseDelegate<CONNECTION> extends java.lang.Object implements DatabaseDelegate
| Constructor and Description |
|---|
AbstractDatabaseDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close connection to the database
Overridden to suppress throwing Exception
|
protected abstract void |
closeConnectionQuietly(CONNECTION connection)
Quietly close the connection
|
protected abstract CONNECTION |
createNewConnection()
Template method for creating new connections to the database
|
void |
execute(java.util.Collection<java.lang.String> statements,
java.lang.String scriptPath,
boolean continueOnError,
boolean ignoreFailedDrops)
Execute collection of statements
|
protected CONNECTION |
getConnection()
Get or create new connection to the database
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected CONNECTION getConnection()
public void execute(java.util.Collection<java.lang.String> statements,
java.lang.String scriptPath,
boolean continueOnError,
boolean ignoreFailedDrops)
DatabaseDelegateexecute in interface DatabaseDelegatepublic void close()
DatabaseDelegateclose in interface java.lang.AutoCloseableclose in interface DatabaseDelegateprotected abstract void closeConnectionQuietly(CONNECTION connection)
protected abstract CONNECTION createNewConnection()