public class JdbcStatementManager extends Object implements StatementManager
| Modifier and Type | Field and Description |
|---|---|
static JdbcConfiguration |
IN_MEMORY_JDBC_CONFIG |
| Constructor and Description |
|---|
JdbcStatementManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Closes the StatementHolder object and the underlying database connection.
|
JdbcConfiguration |
getConfiguration()
Returns the current JdbcConfiguration.
|
StatementHolder |
getHolder()
Gets a pre-initialized StatementHolder object.
|
StatementHolder |
getHolder(boolean autoCommit)
Gets a pre-initalized StatementHolder object.
|
void |
initialise()
Initalizes a database connection and statement object which can be re-used
for multiple operations.
|
void |
setInMemory(boolean inMemory) |
void |
setJdbcConfiguration(JdbcConfiguration jdbcConfiguration) |
public static final JdbcConfiguration IN_MEMORY_JDBC_CONFIG
public void setJdbcConfiguration(JdbcConfiguration jdbcConfiguration)
public void setInMemory(boolean inMemory)
public void initialise()
StatementManagerinitialise in interface StatementManagerpublic StatementHolder getHolder()
StatementManagergetHolder in interface StatementManagerpublic StatementHolder getHolder(boolean autoCommit)
StatementManagergetHolder in interface StatementManagerautoCommit - turn auto-commit on or off for the underlying Connection.public void destroy()
StatementManagerdestroy in interface StatementManagerpublic JdbcConfiguration getConfiguration()
StatementManagergetConfiguration in interface StatementManagerCopyright © 2016 UiO. All rights reserved.