CommittedScope
pentaho.type.changes.CommittedScope
The CommittedScope
class provides a way for a certain region of code to read the committed values of instances.
Extends
Constructor
Name | Description |
---|---|
new CommittedScope(context) | Creates a |
Members
Name | Description |
---|---|
context : | Gets the associated context. |
isCurrent : | Gets a value that indicates if this scope is the current scope of its context. |
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 CommittedScope(context) | ||||||
---|---|---|---|---|---|---|
Creates a Source: javascript/web/pentaho/type/changes/CommittedScope.js, line 37
|
Members Details
context: |
---|
Gets the associated context. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 51 Inherited From: pentaho.type.changes.AbstractTransactionScope#context |
isCurrent: |
---|
Gets a value that indicates if this scope is the current scope of its context. A context's current scope is its innermost scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 148 Inherited From: pentaho.type.changes.AbstractTransactionScope#isCurrent |
isInside: |
---|
Gets a value that indicates if this scope has not been exited. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 136 Inherited From: pentaho.type.changes.AbstractTransactionScope#isInside |
transaction: |
---|
Gets the associated transaction, if any, or Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 61 Inherited From: pentaho.type.changes.AbstractTransactionScope#transaction |
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 103 Inherited From: pentaho.type.changes.AbstractTransactionScope#_assertInsideAndCurrent
|
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 238 Inherited From: pentaho.type.changes.AbstractTransactionScope#dispose |
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 194 Inherited From: pentaho.type.changes.AbstractTransactionScope#exit
|
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 166 Inherited From: pentaho.type.changes.AbstractTransactionScope#using
|