cloudcc-cli 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
package com.cloudcc.core;
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import java.util.HashMap;
|
|
4
|
+
|
|
5
|
+
public class CCTrigger extends CCService {
|
|
6
|
+
public HashMap<String, Object> record_new = new HashMap<String, Object>();
|
|
7
|
+
public HashMap<String, Object> record_old = new HashMap<String, Object>();;
|
|
8
|
+
public ServiceResult trigger = new ServiceResult();
|
|
9
|
+
|
|
10
|
+
public CCTrigger(UserInfo uinfo) {
|
|
11
|
+
super(uinfo);
|
|
12
|
+
}
|
|
4
13
|
|
|
5
14
|
public void do_insert_before() throws Exception {
|
|
6
15
|
}
|
package/package.json
CHANGED
package/pom.xml
CHANGED
package/src/triggers/create.js
CHANGED
|
@@ -20,9 +20,9 @@ async function create(argvs) {
|
|
|
20
20
|
`package triggers.${body.schemetableName.toLowerCase()}.${body.name};
|
|
21
21
|
|
|
22
22
|
import com.cloudcc.core.*;
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
public class ${body.name} extends CCTrigger {
|
|
25
|
-
public ${body.name}(
|
|
25
|
+
public ${body.name}() {
|
|
26
26
|
// @SOURCE_CONTENT_START
|
|
27
27
|
System.out.print("hello World");
|
|
28
28
|
// @SOURCE_CONTENT_END
|