Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (34 sloc) 1.06 KB
/**
* Enumeration that represents transaction propagation behaviors for use with the see {@link Transactional}
* decorator. Only 'REQUIRED' is currently supported.
*/
export enum Propagation {
/**
* Support a current transaction, throw an exception if none exists.
*/
MANDATORY = 'MANDATORY',
/**
* Execute within a nested transaction if a current transaction exists, behave like `REQUIRED` else.
*/
NESTED = 'NESTED',
/**
* Execute non-transactionally, throw an exception if a transaction exists.
*/
NEVER = 'NEVER',
/**
* Execute non-transactionally, suspend the current transaction if one exists.
*/
NOT_SUPPORTED = 'NOT_SUPPORTED',
/**
* Support a current transaction, create a new one if none exists.
*/
REQUIRED = 'REQUIRED',
/**
* Create a new transaction, and suspend the current transaction if one exists.
*/
REQUIRES_NEW = 'REQUIRES_NEW',
/**
* Support a current transaction, execute non-transactionally if none exists.
*/
SUPPORTS = 'SUPPORTS'
}
You can’t perform that action at this time.