public class TaskanaEngineImpl extends Object implements TaskanaEngine
TaskanaEngine.ConnectionManagementMode| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected TaskanaEngine.ConnectionManagementMode |
mode |
protected org.apache.ibatis.session.SqlSessionFactory |
sessionFactory |
protected org.apache.ibatis.session.SqlSessionManager |
sessionManager |
protected static ThreadLocal<Stack<org.apache.ibatis.session.SqlSessionManager>> |
sessionStack |
protected TaskanaEngineConfiguration |
taskanaEngineConfiguration |
protected org.apache.ibatis.transaction.TransactionFactory |
transactionFactory |
| Constructor and Description |
|---|
TaskanaEngineImpl(TaskanaEngineConfiguration taskanaEngineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
closes the connection to the database in mode EXPLICIT.
|
ClassificationService |
getClassificationService()
The ClassificationService can be used for operations on all Categories.
|
TaskanaEngineConfiguration |
getConfiguration()
The Taskana configuration.
|
protected static org.apache.ibatis.session.SqlSessionManager |
getSessionFromStack() |
protected static Stack<org.apache.ibatis.session.SqlSessionManager> |
getSessionStack()
With sessionStack, we maintain a Stack of SqlSessionManager objects on a per thread basis.
|
TaskService |
getTaskService()
The TaskService can be used for operations on all Tasks.
|
WorkbasketService |
getWorkbasketService()
The WorkbasketService can be used for operations on all Workbaskets.
|
protected static void |
popSessionFromStack() |
protected static void |
pushSessionToStack(org.apache.ibatis.session.SqlSessionManager session) |
void |
setConnection(Connection connection)
Set the database connection to be used by taskana.
|
void |
setConnectionManagementMode(TaskanaEngine.ConnectionManagementMode mode)
sets the connection management mode.
|
protected static ThreadLocal<Stack<org.apache.ibatis.session.SqlSessionManager>> sessionStack
protected TaskanaEngineConfiguration taskanaEngineConfiguration
protected org.apache.ibatis.transaction.TransactionFactory transactionFactory
protected org.apache.ibatis.session.SqlSessionManager sessionManager
protected org.apache.ibatis.session.SqlSessionFactory sessionFactory
protected TaskanaEngine.ConnectionManagementMode mode
protected Connection connection
public TaskanaEngineImpl(TaskanaEngineConfiguration taskanaEngineConfiguration)
public TaskService getTaskService()
TaskanaEnginegetTaskService in interface TaskanaEnginepublic WorkbasketService getWorkbasketService()
TaskanaEnginegetWorkbasketService in interface TaskanaEnginepublic ClassificationService getClassificationService()
TaskanaEnginegetClassificationService in interface TaskanaEnginepublic TaskanaEngineConfiguration getConfiguration()
TaskanaEnginegetConfiguration in interface TaskanaEnginepublic void setConnectionManagementMode(TaskanaEngine.ConnectionManagementMode mode)
setConnectionManagementMode in interface TaskanaEnginemode - - the connection management mode
Valid values are
PARTICIPATE - taskana participates in global transaction. This is the default mode
AUTOCOMMIT - taskana commits each API call separately
EXPLICIT - commit processing is managed explicitly by the clientpublic void setConnection(Connection connection)
setConnection in interface TaskanaEngineconnection - TODOpublic void closeConnection()
closeConnection in interface TaskanaEngineprotected static Stack<org.apache.ibatis.session.SqlSessionManager> getSessionStack()
protected static org.apache.ibatis.session.SqlSessionManager getSessionFromStack()
protected static void pushSessionToStack(org.apache.ibatis.session.SqlSessionManager session)
protected static void popSessionFromStack()
Copyright © 2017. All rights reserved.