TSK-59 implement comments from holger - toLowerCase only for setters not for getters and change useContainerManagedTransactions to useManagedTransactions
This commit is contained in:
parent
f3f46e1ed5
commit
37bb8535a3
|
@ -34,14 +34,14 @@ public class TaskanaEngineConfiguration {
|
||||||
public TaskanaEngineConfiguration() {
|
public TaskanaEngineConfiguration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions)
|
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
this(dataSource, useContainerManagedTransactions, true);
|
this(dataSource, useManagedTransactions, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions,
|
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions,
|
||||||
boolean securityEnabled) throws SQLException {
|
boolean securityEnabled) throws SQLException {
|
||||||
this.useManagedTransactions = useContainerManagedTransactions;
|
this.useManagedTransactions = useManagedTransactions;
|
||||||
|
|
||||||
if (dataSource != null) {
|
if (dataSource != null) {
|
||||||
this.dataSource = dataSource;
|
this.dataSource = dataSource;
|
||||||
|
|
|
@ -242,10 +242,10 @@ public class TaskanaEngineImpl implements TaskanaEngine {
|
||||||
/**
|
/**
|
||||||
* creates the MyBatis transaction factory.
|
* creates the MyBatis transaction factory.
|
||||||
*
|
*
|
||||||
* @param useContainerManagedTransactions
|
* @param useManagedTransactions
|
||||||
*/
|
*/
|
||||||
private void createTransactionFactory(boolean useContainerManagedTransactions) {
|
private void createTransactionFactory(boolean useManagedTransactions) {
|
||||||
if (useContainerManagedTransactions) {
|
if (useManagedTransactions) {
|
||||||
this.transactionFactory = new ManagedTransactionFactory();
|
this.transactionFactory = new ManagedTransactionFactory();
|
||||||
} else {
|
} else {
|
||||||
this.transactionFactory = new JdbcTransactionFactory();
|
this.transactionFactory = new JdbcTransactionFactory();
|
||||||
|
|
|
@ -41,11 +41,7 @@ public class WorkbasketAccessItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAccessId() {
|
public String getAccessId() {
|
||||||
if (TaskanaEngineConfiguration.shouldUseLowerCaseForAccessIds()) {
|
return accessId;
|
||||||
return accessId != null ? accessId.toLowerCase() : null;
|
|
||||||
} else {
|
|
||||||
return accessId;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAccessId(String accessId) {
|
public void setAccessId(String accessId) {
|
||||||
|
|
Loading…
Reference in New Issue