-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
325 lines (241 loc) 路 6.68 KB
/
__init__.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
__all__ = ["DatasetUtilities", "SProcCall", "SystemUtilities"]
from com.inductiveautomation.ignition.common import Dataset
from com.inductiveautomation.ignition.common.script.abc import (
AbstractJythonSequence,
)
from com.inductiveautomation.ignition.common.script.message import (
Request,
RequestWatcher,
)
from java.lang import Object
from java.util import Locale
class DatasetUtilities(Object):
@staticmethod
def addColumn(*args):
pass
@staticmethod
def addRow(*args):
pass
@staticmethod
def addRows(*args):
pass
@staticmethod
def appendDataset(ds1, ds2):
pass
@staticmethod
def clearDataset(ds):
pass
@staticmethod
def dataSetToExcel(headerRow, datasets):
pass
@staticmethod
def dataSetToExcelBytes(headerRow, objects, nullsEmpty, sheetNames):
pass
@staticmethod
def dataSetToExcelStreaming(headerRow, objects, out, nullsEmpty):
pass
@staticmethod
def dataSetToHTML(headerRow, ds, title):
pass
@staticmethod
def dataSetToHTMLStreaming(headerRow, ds, title, fw):
pass
@staticmethod
def deleteRow(ds, row):
pass
@staticmethod
def deleteRows(ds, rows):
pass
@staticmethod
def filterColumns(dataset, columns):
pass
@staticmethod
def formatDates(dataset, format, locale=Locale.US):
pass
@staticmethod
def fromCSV(csv):
pass
@staticmethod
def fromCSVJava(csv):
pass
@staticmethod
def getColumnHeaders(ds):
pass
@staticmethod
def insertColumn(*args):
pass
@staticmethod
def insertRow(*args):
pass
@staticmethod
def setValue(*args):
pass
@staticmethod
def sort(ds, keyColumn, ascending=None, naturalOrdering=None):
pass
@staticmethod
def toCSV(*args, **kwargs):
pass
@staticmethod
def toCSVJava(ds, showHeaders, forExport, localized=False):
pass
@staticmethod
def toCSVJavaStreaming(ds, showHeaders, forExport, sw, localized):
pass
@staticmethod
def toDataSet(*args):
pass
@staticmethod
def toExcel(*args, **kwargs):
pass
@staticmethod
def toJSONObject(data):
pass
@staticmethod
def toPyDataSet(dataset):
pass
@staticmethod
def updateRow(ds, row, changes):
pass
class PyDataSet(Dataset, AbstractJythonSequence):
def getColumnCount(self):
pass
def getColumnIndex(self, name):
pass
def getColumnName(self, col):
pass
def getColumnNames(self):
pass
def getColumnType(self, col):
pass
def getPrimitiveValueAt(self, row, col):
pass
def getQualityAt(self, row, col):
pass
def getRowCount(self):
pass
def getValueAt(self, row, colName):
pass
class SProcCall(Object):
def __init__(self):
pass
def getResultSet(self):
"""Returns a dataset that is the resulting data of the stored
procedure, if any.
Returns:
Dataset: The dataset that is the resulting data of the
stored procedure, if any.
"""
print(self)
return Dataset()
def getUpdateCount(self):
"""Returns the number of rows modified by the stored procedure,
or -1 if not applicable.
Returns:
int: The number of rows modified by the stored procedure,
or -1 if not applicable.
"""
print(self)
return 1
def getReturnValue(self):
"""Returns the return value, if registerReturnParam had been
called.
Returns:
int: The return value, if registerReturnParam had been
called.
"""
print(self)
return 0
def getOutParamValue(self, param):
"""Returns the value of the previously registered out-parameter.
Args:
param (object): Index (int) or name (str) of the previously
registered out-parameter.
Returns:
object: The value of the previously registered
out-parameter.
"""
print(self, param)
return 0
def registerInParam(self, param, typeCode, value):
"""Registers an in parameter for the stored procedure.
Args:
param (object): Index (int starting at 1, not 0), or name
(str).
typeCode (int): Type code constant.
value (object): Value of type typeCode.
"""
print(self, param, typeCode, value)
def registerOutParam(self, param, typeCode):
"""Registers an out parameter for the stored procedure.
Args:
param (object): Index (int starting at 1, not 0), or name
(str).
typeCode (int): Type code constant.
"""
print(self, param, typeCode)
def registerReturnParam(self, typeCode):
"""Use this function to specify the datatype of the returned
value.
Args:
typeCode (int): Type code constant.
"""
print(self, typeCode)
class SProcArg(Object):
def getParamType(self):
pass
def getValue(self):
pass
def isInParam(self):
pass
def isOutParam(self):
pass
def setParamType(self, paramType):
pass
def setValue(self, value):
pass
def toString(self):
pass
class SProcArgKey(Object):
def getParamIndex(self):
pass
def getParamName(self):
pass
def hashCode(self):
pass
def isNamedParam(self):
pass
def toString(self):
pass
class SystemUtilities(Object):
def __init__(self, timeout):
self.timeout = timeout
@staticmethod
def logger(loggerName):
pass
@staticmethod
def parseTranslateArguments(*args, **kwargs):
pass
class RequestImpl(Request, RequestWatcher):
def block(self):
pass
def cancel(self):
pass
def checkTimeout(self):
pass
def compose(self, requestWatchers):
pass
def dispatchFunc(self):
pass
def finishExceptionally(self, e):
pass
def finishSuccessfully(self, value):
pass
def get(self):
pass
def getError(self):
pass
def onError(self, func):
pass
def onSuccess(self, func):
pass