Java Code Examples for org.springframework.transaction.support.TransactionTemplate#PROPAGATION_NOT_SUPPORTED

The following examples show how to use org.springframework.transaction.support.TransactionTemplate#PROPAGATION_NOT_SUPPORTED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringTransactionInterceptor.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
private int getPropagation(CommandConfig config) {
  switch (config.getTransactionPropagation()) {
  case NOT_SUPPORTED:
    return TransactionTemplate.PROPAGATION_NOT_SUPPORTED;
  case REQUIRED:
    return TransactionTemplate.PROPAGATION_REQUIRED;
  case REQUIRES_NEW:
    return TransactionTemplate.PROPAGATION_REQUIRES_NEW;
  default:
    throw new ActivitiIllegalArgumentException("Unsupported transaction propagation: " + config.getTransactionPropagation());
  }
}
 
Example 2
Source File: SpringTransactionInterceptor.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
private int getPropagation(CommandConfig config) {
  switch (config.getTransactionPropagation()) {
  case NOT_SUPPORTED:
    return TransactionTemplate.PROPAGATION_NOT_SUPPORTED;
  case REQUIRED:
    return TransactionTemplate.PROPAGATION_REQUIRED;
  case REQUIRES_NEW:
    return TransactionTemplate.PROPAGATION_REQUIRES_NEW;
  default:
    throw new ActivitiIllegalArgumentException("Unsupported transaction propagation: " + config.getTransactionPropagation());
  }
}
 
Example 3
Source File: SpringTransactionInterceptor.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
private int getPropagation(CommandConfig config) {
    switch (config.getTransactionPropagation()) {
    case NOT_SUPPORTED:
        return TransactionTemplate.PROPAGATION_NOT_SUPPORTED;
    case REQUIRED:
        return TransactionTemplate.PROPAGATION_REQUIRED;
    case REQUIRES_NEW:
        return TransactionTemplate.PROPAGATION_REQUIRES_NEW;
    default:
        throw new FlowableIllegalArgumentException("Unsupported transaction propagation: " + config.getTransactionPropagation());
    }
}
 
Example 4
Source File: SpringTransactionInterceptor.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
private int getPropagation(CommandConfig config) {
    switch (config.getTransactionPropagation()) {
    case NOT_SUPPORTED:
        return TransactionTemplate.PROPAGATION_NOT_SUPPORTED;
    case REQUIRED:
        return TransactionTemplate.PROPAGATION_REQUIRED;
    case REQUIRES_NEW:
        return TransactionTemplate.PROPAGATION_REQUIRES_NEW;
    default:
        throw new ActivitiIllegalArgumentException("Unsupported transaction propagation: " + config.getTransactionPropagation());
    }
}
 
Example 5
Source File: SpringTransactionInterceptor.java    From FoxBPM with Apache License 2.0 5 votes vote down vote up
private int getPropagation(CommandConfig config) {
	switch (config.getPropagation()) {
	case NOT_SUPPORTED:
		return TransactionTemplate.PROPAGATION_NOT_SUPPORTED;
	case REQUIRED:
		return TransactionTemplate.PROPAGATION_REQUIRED;
	case REQUIRES_NEW:
		return TransactionTemplate.PROPAGATION_REQUIRES_NEW;
	default:
		throw ExceptionUtil.getException("不支持的事务传播类型: " + config.getPropagation());
	}
}