-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDataClassTest.js
More file actions
47 lines (38 loc) · 1.33 KB
/
DataClassTest.js
File metadata and controls
47 lines (38 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var shared = require("TriggerTestModule/SharedTriggerLib");
var console = require("console");
function managedColumns() {
return shared.managedColumns();
}
function init(event, errors) {
console.log("init got triggered with event: " + event);
}
function beforeInsert(row, errors) {
console.log("exp.data: beforeInsert: row is: " + row);
shared.beforeInsert(row, errors);
console.log("exp.data: edited row is: " + row);
}
function beforeUpdate(row, oldRow, errors) {
console.log("exp.data: beforeUpdate: row is: " + row);
shared.beforeUpdate(row, oldRow, errors);
console.log("exp.data: old row is: " + oldRow);
}
function beforeDelete(row, errors) {
console.log("exp.data: beforeDelete: row is: " + row);
shared.beforeDelete(row, errors);
}
function afterInsert(row, errors) {
console.log("exp.data: afterInsert: row is: " + row);
shared.afterInsert(row, errors);
}
function afterUpdate(row, oldRow, errors) {
console.log("exp.data: afterUpdate: row is: " + row);
shared.afterUpdate(row, oldRow, errors);
console.log("exp.data: old row is: " +oldRow);
}
function afterDelete(row, errors) {
console.log("exp.data: afterDelete: row is: " + row);
shared.afterDelete(row, errors);
}
function complete(event, errors) {
console.log("exp.data: complete got triggered with event: " + event);
}