AbstractTransactionScope
pentaho.type.changes. AbstractTransactionScope
The AbstractTransactionScope
class is the abstract base class of classes that control the ambient/current transaction
.
Constructor
Name | Description |
---|---|
new AbstractTransactionScope(transaction) | Creates a |
Members
Name | Description |
---|---|
isCurrent : | Gets a value that indicates if this scope is the current scope. |
isInside : | Gets a value that indicates if this scope has not been exited. |
transaction : | Gets the associated transaction, if any, or |
Methods
Name | Description |
---|---|
_assertInsideAndCurrent() Protected | Throws an error if the scope has been exited from or is not the current scope. |
dispose() | Exits the scope, without any warnings in case it is not inside or is not the current scope. |
exit(keyArgs) : pentaho.type.changes.AbstractTransactionScope | Exits the scope. |
using(fun, ctx) : any | Calls a given function within the scope and safely exits from the scope. |
Constructor Details
new AbstractTransactionScope(transaction) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 48
|
Members Details
isCurrent: |
---|
Gets a value that indicates if this scope is the current scope. The current scope is the innermost scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 136 |
isInside: |
---|
Gets a value that indicates if this scope has not been exited. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 124 |
transaction: |
---|
Gets the associated transaction, if any, or Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 49 |
Methods Details
_assertInsideAndCurrent() Protected | ||||
---|---|---|---|---|
Throws an error if the scope has been exited from or is not the current scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 91
|
dispose() |
---|
Exits the scope, without any warnings in case it is not inside or is not the current scope. This method is equivalent to calling Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 225 |
exit(keyArgs) : pentaho.type.changes.AbstractTransactionScope | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Exits the scope. After this operation, the scope cannot be operated on anymore. However, properties like If this method is called and the the scope has already been exited from, or is not the current scope, a warning is logged, unless Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 181
|
using(fun, ctx) : any | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls a given function within the scope and safely exits from the scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 154
|