PrimitiveChange
pentaho.type.changes. PrimitiveChange
The PrimitiveChange
class is the abstract base class of changes that are the direct consequence of performing primitive operations on a structured value
.
Primitive changes always exist in the context of a Changeset
.
Example primitive changes are the Replace
operation on a Complex
value, and the Add
and Clear
operations on a List
value.
AMD Module
require(["pentaho/type/changes/PrimitiveChange"], function(PrimitiveChange) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new PrimitiveChange() Abstract | Creates a |
Members
Name | Description |
---|---|
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
transactionVersion : | Gets the transaction version of this change. |
type : Abstract | Gets the type of change. |
Methods
Name | Description |
---|---|
_apply(target) Abstract Protected | Applies any local primitive changes. |
_cancel(changeset) Protected | Unregisters reference changes caused by this change. |
_prepare(changeset) Protected | Registers reference changes caused by this change. |
_setTransactionVersion(txnVersion) Protected | Sets the new transaction version of this change. |
extend(source, keyArgs) : Object | Extend an object with the properties of another. |
Constructor Details
new PrimitiveChange() Abstract |
---|
Creates a Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 24 |
Members Details
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. Source: javascript/web/pentaho/lang/Base.js, line 299 Inherited From: pentaho.lang.Base#base |
transactionVersion: |
---|
Gets the transaction version of this change. Source: javascript/web/pentaho/type/changes/Change.js, line 50 |
type: Abstract |
---|
Gets the type of change. Source: javascript/web/pentaho/type/changes/Change.js, line 40 Inherited From: pentaho.type.changes.Change#type |
Methods Details
_apply(target) Abstract Protected | ||||||
---|---|---|---|---|---|---|
Applies any local primitive changes. Source: javascript/web/pentaho/type/changes/Change.js, line 60 Inherited From: pentaho.type.changes.Change#_apply
|
_cancel(changeset) Protected | ||||||
---|---|---|---|---|---|---|
Unregisters reference changes caused by this change. Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 82
|
_prepare(changeset) Protected | ||||||
---|---|---|---|---|---|---|
Registers reference changes caused by this change. Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 71
|
_setTransactionVersion(txnVersion) Protected | ||||||
---|---|---|---|---|---|---|
Sets the new transaction version of this change. Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 59
|
extend(source, keyArgs) : Object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1037 Inherited From: pentaho.lang.Base#extend
|