public class TaskanaEngineConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
protected DbScriptRunner |
dbScriptRunner |
protected boolean |
securityEnabled |
protected boolean |
useContainerManagedTransactions |
| Constructor and Description |
|---|
TaskanaEngineConfiguration() |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useContainerManagedTransactions) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useContainerManagedTransactions,
boolean securityEnabled) |
| Modifier and Type | Method and Description |
|---|---|
TaskanaEngine |
buildTaskanaEngine()
This method creates the TaskanaEngine without an sqlSessionFactory.
|
static DataSource |
createDatasource(String driver,
String jdbcUrl,
String username,
String password)
This method creates a PooledDataSource, if the needed properties are provided.
|
static DataSource |
createDefaultDataSource() |
DataSource |
getDatasource() |
boolean |
getUseContainerManagedTransactions() |
boolean |
isSecurityEnabled() |
protected DataSource dataSource
protected DbScriptRunner dbScriptRunner
protected boolean securityEnabled
protected boolean useContainerManagedTransactions
public TaskanaEngineConfiguration()
public TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions, boolean securityEnabled) throws SQLException
SQLExceptionpublic static DataSource createDefaultDataSource()
public TaskanaEngine buildTaskanaEngine() throws SQLException
SQLException - TODOpublic static DataSource createDatasource(String driver, String jdbcUrl, String username, String password)
driver - TODOjdbcUrl - TODOusername - TODOpassword - TODOpublic boolean isSecurityEnabled()
public DataSource getDatasource()
public boolean getUseContainerManagedTransactions()
Copyright © 2017. All rights reserved.