public class TaskanaEngineConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
protected DbSchemaCreator |
dbScriptRunner |
protected boolean |
securityEnabled |
protected boolean |
useManagedTransactions |
| Constructor and Description |
|---|
TaskanaEngineConfiguration(boolean enableSecurity) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
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 |
getUseManagedTransactions() |
boolean |
isSecurityEnabled() |
static boolean |
shouldUseLowerCaseForAccessIds()
Helper method to determine whether all access ids (user Id and group ids) should be used in lower case.
|
protected DataSource dataSource
protected DbSchemaCreator dbScriptRunner
protected boolean securityEnabled
protected boolean useManagedTransactions
public TaskanaEngineConfiguration(boolean enableSecurity)
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, boolean securityEnabled) throws SQLException
SQLExceptionpublic static DataSource createDefaultDataSource()
public TaskanaEngine buildTaskanaEngine()
public static DataSource createDatasource(String driver, String jdbcUrl, String username, String password)
driver - the name of the jdbc driverjdbcUrl - the url to which the jdbc driver connectsusername - the user name for database accesspassword - the password for database accesspublic boolean isSecurityEnabled()
public DataSource getDatasource()
public boolean getUseManagedTransactions()
public static boolean shouldUseLowerCaseForAccessIds()
Copyright © 2018. All rights reserved.