Changeset
pentaho.type.changes.Changeset
The Changeset
class describes a set of changes occurring in a structured value, the owner
value.
A changeset is a container for a set of PrimitiveChange
instances.
AMD Module
require(["pentaho/type/changes/Changeset"], function(Changeset) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new Changeset(transaction, owner) Abstract | Creates an empty |
Members
Name | Description |
---|---|
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
hasChanges : Abstract | Gets a value that indicates if this changeset contains any changes, whether they are primitive or in contained changesets. |
isReadOnly : | Gets a value that indicates if the changeset is in a read-only state and can no longer be modified. |
owner : | Gets the container where the changes take place. |
ownerVersion : | Gets the version of the owner at the time when the changeset was created. |
transaction : | Gets the owning transaction. |
type : Abstract | Gets the type of change. |
Methods
Name | Description |
---|---|
_apply(target) Abstract Protected | Applies any local primitive changes. |
_assertWritable() Protected | Throws an error if the changeset is read-only. |
_clearChanges() Abstract Protected | Actually removes all changes in the changeset. |
clearChanges() | Removes all changes from this changeset. |
extend(source, keyArgs) : Object | Extend an object with the properties of another. |
Constructor Details
new Changeset(transaction, owner) Abstract | |||||||||
---|---|---|---|---|---|---|---|---|---|
Creates an empty Source: javascript/web/pentaho/type/changes/Changeset.js, line 47
|
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 |
hasChanges: Abstract |
---|
Gets a value that indicates if this changeset contains any changes, whether they are primitive or in contained changesets. Source: javascript/web/pentaho/type/changes/Changeset.js, line 161 |
isReadOnly: |
---|
Gets a value that indicates if the changeset is in a read-only state and can no longer be modified. Source: javascript/web/pentaho/type/changes/Changeset.js, line 136 |
owner: |
---|
Gets the container where the changes take place. Source: javascript/web/pentaho/type/changes/Changeset.js, line 61 |
ownerVersion: |
---|
Gets the version of the owner at the time when the changeset was created. Source: javascript/web/pentaho/type/changes/Changeset.js, line 157 |
transaction: |
---|
Gets the owning transaction. Source: javascript/web/pentaho/type/changes/Changeset.js, line 51 |
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 50 Inherited From: pentaho.type.changes.Change#_apply
|
_assertWritable() Protected | ||||
---|---|---|---|---|
Throws an error if the changeset is read-only. Source: javascript/web/pentaho/type/changes/Changeset.js, line 125
|
_clearChanges() Abstract Protected |
---|
Actually removes all changes in the changeset. Source: javascript/web/pentaho/type/changes/Changeset.js, line 191 |
clearChanges() | ||||
---|---|---|---|---|
Removes all changes from this changeset. Primitive changes are removed, while contained changesets are cleared. This method validates that the changeset is in a valid state and then delegates actual work to the Source: javascript/web/pentaho/type/changes/Changeset.js, line 184
|
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
|