|
26 | 26 | "Index": {
|
27 | 27 | "prefix": "Index",
|
28 | 28 | "body": "Index $1 On ${2:Name};"
|
29 |
| - } |
| 29 | + }, |
| 30 | + "Unique Index": { |
| 31 | + "prefix": "Index", |
| 32 | + "body": "Index $1 On ${2:property} [Unique];", |
| 33 | + "description": "Unique Index" |
| 34 | + }, |
| 35 | + "Query": { |
| 36 | + "prefix":["Query"], |
| 37 | + "body":["Query $1($2) As %SQLQuery [ SqlProc ]","{","\t$3","}"], |
| 38 | + "description": "Based on SQL statement" |
| 39 | + }, |
| 40 | + "Trigger": { |
| 41 | + "prefix": "Trigger", |
| 42 | + "body": [ |
| 43 | + "Trigger $1 [Event=${2|INSERT,UPDATE,DELETE|}, Time=${3|BEFORE,AFTER|}, Foreach=${4|row/object,row,statement|}]", |
| 44 | + "{", |
| 45 | + "\t$5", |
| 46 | + "}" |
| 47 | + ], |
| 48 | + "description": "Trigger" |
| 49 | + }, |
| 50 | + "ForeignKey": { |
| 51 | + "prefix": "Foreignkey", |
| 52 | + "body": "ForeignKey $1 (${2:property}) References ${3:referencedClass}(${4:refIndex});", |
| 53 | + "description": "ForeignKey" |
| 54 | + }, |
| 55 | + "Relationship": { |
| 56 | + "prefix": ["Relationship"], |
| 57 | + "body": "Relationship $1 As ${2:classname} [ Cardinality = ${3|one,many,parent,children|}, Inverse = ${4:correspondingProperty} ];", |
| 58 | + "description": "Relationship" |
| 59 | + }, |
| 60 | + "BusinessService": { |
| 61 | + "prefix": ["BusinessService","Interoperability"], |
| 62 | + "body": ["Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService", |
| 63 | + "{\n", |
| 64 | + "Property Adapter As ${2:Ens.InboundAdapter};\n", |
| 65 | + "Parameter ADAPTER = \"${2:Ens.InboundAdapter}\";\n", |
| 66 | + "Method OnProcessInput(pInput As %RegisteredObject, pOutput As %RegisteredObject) As %Status", |
| 67 | + "{", |
| 68 | + "\t$3", |
| 69 | + "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
| 70 | + "}", |
| 71 | + "}"], |
| 72 | + "description": "Business Service Definition" |
| 73 | + }, |
| 74 | + "BusinessOperation": { |
| 75 | + "prefix":["BusinessOperation","Interoperability"], |
| 76 | + "body": ["Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessOperation", |
| 77 | + "{\n", |
| 78 | + "Property Adapter As ${2:Ens.OutboundAdapter};\n", |
| 79 | + "Parameter ADAPTER = \"${2:Ens.OutboundAdapter}\";\n", |
| 80 | + "Parameter INVOCATION = \"Queue\";\n", |
| 81 | + "Method SampleCall(pRequest As ${3:Ens.Request}, Output pResponse As ${4:Ens.Response} ) As %Status", |
| 82 | + "{", |
| 83 | + "\t$5", |
| 84 | + "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
| 85 | + "}\n", |
| 86 | + "XData MessageMap", |
| 87 | + "{", |
| 88 | + "<MapItems>", |
| 89 | + "\t<MapItem MessageType=\"${3:Ens.Request}\">", |
| 90 | + "\t\t<Method>SampleCall</Method>", |
| 91 | + "\t</MapItem>", |
| 92 | + "</MapItems>", |
| 93 | + "}", |
| 94 | + "}"], |
| 95 | + "description": "Business Operation Definition" |
| 96 | + }, |
| 97 | + "Production": { |
| 98 | + "prefix": ["Production","Interoperability"], |
| 99 | + "body": ["Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production", |
| 100 | + "{\n", |
| 101 | + "XData ProductionDefinition", |
| 102 | + "{", |
| 103 | + "\t<Production Name=\"${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE}\">", |
| 104 | + "\t\t<ActorPoolSize>2</ActorPoolSize>", |
| 105 | + "\t\t<Item ClassName=\"$2\" Name=\"$3\" PoolSize=\"1\"/>", |
| 106 | + "\t</Production>", |
| 107 | + "}", |
| 108 | + "}"], |
| 109 | + "description": "Production Definition" |
| 110 | + } |
30 | 111 | }
|
0 commit comments