001: /**
002: * SQLDatasetSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.4 Nov 19, 2006 (02:31:34 GMT+00:00) WSDL2Java emitter.
006: */package org.objectweb.salome_tmf.soap;
007:
008: import org.objectweb.salome_tmf.api.Permission;
009: import org.objectweb.salome_tmf.api.data.DataSetWrapper;
010: import org.objectweb.salome_tmf.api.data.DataWrapper;
011: import org.objectweb.salome_tmf.api.data.ParameterWrapper;
012: import org.objectweb.salome_tmf.api.data.ValuedParameterWrapper;
013: import org.objectweb.salome_tmf.api.sql.ISQLDataset;
014: import org.objectweb.salome_tmf.databaseSQL.SecurityException;
015:
016: public class SQLDatasetSoapBindingStub extends StubClient implements
017: ISQLDataset {
018: private java.util.Vector cachedSerClasses = new java.util.Vector();
019: private java.util.Vector cachedSerQNames = new java.util.Vector();
020: private java.util.Vector cachedSerFactories = new java.util.Vector();
021: private java.util.Vector cachedDeserFactories = new java.util.Vector();
022:
023: static org.apache.axis.description.OperationDesc[] _operations;
024:
025: static {
026: _operations = new org.apache.axis.description.OperationDesc[8];
027: _initOperationDesc1();
028: }
029:
030: private static void _initOperationDesc1() {
031: org.apache.axis.description.OperationDesc oper;
032: org.apache.axis.description.ParameterDesc param;
033: oper = new org.apache.axis.description.OperationDesc();
034: oper.setName("getWrapper");
035: param = new org.apache.axis.description.ParameterDesc(
036: new javax.xml.namespace.QName("", "in0"),
037: org.apache.axis.description.ParameterDesc.IN,
038: new javax.xml.namespace.QName(
039: "http://www.w3.org/2001/XMLSchema", "int"),
040: int.class, false, false);
041: oper.addParameter(param);
042: oper.setReturnType(new javax.xml.namespace.QName(
043: "http://data.api.salome_tmf.objectweb.org",
044: "DataSetWrapper"));
045: oper.setReturnClass(DataSetWrapper.class);
046: oper.setReturnQName(new javax.xml.namespace.QName("",
047: "getWrapperReturn"));
048: oper.setStyle(org.apache.axis.constants.Style.RPC);
049: oper.setUse(org.apache.axis.constants.Use.LITERAL);
050: _operations[0] = oper;
051:
052: oper = new org.apache.axis.description.OperationDesc();
053: oper.setName("addParamValue");
054: param = new org.apache.axis.description.ParameterDesc(
055: new javax.xml.namespace.QName("", "in0"),
056: org.apache.axis.description.ParameterDesc.IN,
057: new javax.xml.namespace.QName(
058: "http://www.w3.org/2001/XMLSchema", "int"),
059: int.class, false, false);
060: oper.addParameter(param);
061: param = new org.apache.axis.description.ParameterDesc(
062: new javax.xml.namespace.QName("", "in1"),
063: org.apache.axis.description.ParameterDesc.IN,
064: new javax.xml.namespace.QName(
065: "http://www.w3.org/2001/XMLSchema", "int"),
066: int.class, false, false);
067: oper.addParameter(param);
068: param = new org.apache.axis.description.ParameterDesc(
069: new javax.xml.namespace.QName("", "in2"),
070: org.apache.axis.description.ParameterDesc.IN,
071: new javax.xml.namespace.QName(
072: "http://www.w3.org/2001/XMLSchema", "string"),
073: java.lang.String.class, false, false);
074: oper.addParameter(param);
075: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
076: oper.setStyle(org.apache.axis.constants.Style.RPC);
077: oper.setUse(org.apache.axis.constants.Use.LITERAL);
078: _operations[1] = oper;
079:
080: oper = new org.apache.axis.description.OperationDesc();
081: oper.setName("updateParamValue");
082: param = new org.apache.axis.description.ParameterDesc(
083: new javax.xml.namespace.QName("", "in0"),
084: org.apache.axis.description.ParameterDesc.IN,
085: new javax.xml.namespace.QName(
086: "http://www.w3.org/2001/XMLSchema", "int"),
087: int.class, false, false);
088: oper.addParameter(param);
089: param = new org.apache.axis.description.ParameterDesc(
090: new javax.xml.namespace.QName("", "in1"),
091: org.apache.axis.description.ParameterDesc.IN,
092: new javax.xml.namespace.QName(
093: "http://www.w3.org/2001/XMLSchema", "int"),
094: int.class, false, false);
095: oper.addParameter(param);
096: param = new org.apache.axis.description.ParameterDesc(
097: new javax.xml.namespace.QName("", "in2"),
098: org.apache.axis.description.ParameterDesc.IN,
099: new javax.xml.namespace.QName(
100: "http://www.w3.org/2001/XMLSchema", "string"),
101: java.lang.String.class, false, false);
102: oper.addParameter(param);
103: param = new org.apache.axis.description.ParameterDesc(
104: new javax.xml.namespace.QName("", "in3"),
105: org.apache.axis.description.ParameterDesc.IN,
106: new javax.xml.namespace.QName(
107: "http://www.w3.org/2001/XMLSchema", "string"),
108: java.lang.String.class, false, false);
109: oper.addParameter(param);
110: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
111: oper.setStyle(org.apache.axis.constants.Style.RPC);
112: oper.setUse(org.apache.axis.constants.Use.LITERAL);
113: _operations[2] = oper;
114:
115: oper = new org.apache.axis.description.OperationDesc();
116: oper.setName("getDefinedParameters");
117: param = new org.apache.axis.description.ParameterDesc(
118: new javax.xml.namespace.QName("", "in0"),
119: org.apache.axis.description.ParameterDesc.IN,
120: new javax.xml.namespace.QName(
121: "http://www.w3.org/2001/XMLSchema", "int"),
122: int.class, false, false);
123: oper.addParameter(param);
124: oper.setReturnType(new javax.xml.namespace.QName(
125: "http://soap.salome_tmf.objectweb.org",
126: "ArrayOf_tns1_ValuedParameterWrapper"));
127: oper.setReturnClass(ValuedParameterWrapper[].class);
128: oper.setReturnQName(new javax.xml.namespace.QName("",
129: "getDefinedParametersReturn"));
130: param = oper.getReturnParamDesc();
131: param.setItemQName(new javax.xml.namespace.QName("", "item"));
132: oper.setStyle(org.apache.axis.constants.Style.RPC);
133: oper.setUse(org.apache.axis.constants.Use.LITERAL);
134: _operations[3] = oper;
135:
136: oper = new org.apache.axis.description.OperationDesc();
137: oper.setName("delete");
138: param = new org.apache.axis.description.ParameterDesc(
139: new javax.xml.namespace.QName("", "in0"),
140: org.apache.axis.description.ParameterDesc.IN,
141: new javax.xml.namespace.QName(
142: "http://www.w3.org/2001/XMLSchema", "int"),
143: int.class, false, false);
144: oper.addParameter(param);
145: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
146: oper.setStyle(org.apache.axis.constants.Style.RPC);
147: oper.setUse(org.apache.axis.constants.Use.LITERAL);
148: _operations[4] = oper;
149:
150: oper = new org.apache.axis.description.OperationDesc();
151: oper.setName("insert");
152: param = new org.apache.axis.description.ParameterDesc(
153: new javax.xml.namespace.QName("", "in0"),
154: org.apache.axis.description.ParameterDesc.IN,
155: new javax.xml.namespace.QName(
156: "http://www.w3.org/2001/XMLSchema", "int"),
157: int.class, false, false);
158: oper.addParameter(param);
159: param = new org.apache.axis.description.ParameterDesc(
160: new javax.xml.namespace.QName("", "in1"),
161: org.apache.axis.description.ParameterDesc.IN,
162: new javax.xml.namespace.QName(
163: "http://www.w3.org/2001/XMLSchema", "string"),
164: java.lang.String.class, false, false);
165: oper.addParameter(param);
166: param = new org.apache.axis.description.ParameterDesc(
167: new javax.xml.namespace.QName("", "in2"),
168: org.apache.axis.description.ParameterDesc.IN,
169: new javax.xml.namespace.QName(
170: "http://www.w3.org/2001/XMLSchema", "string"),
171: java.lang.String.class, false, false);
172: oper.addParameter(param);
173: oper.setReturnType(new javax.xml.namespace.QName(
174: "http://www.w3.org/2001/XMLSchema", "int"));
175: oper.setReturnClass(int.class);
176: oper.setReturnQName(new javax.xml.namespace.QName("",
177: "insertReturn"));
178: oper.setStyle(org.apache.axis.constants.Style.RPC);
179: oper.setUse(org.apache.axis.constants.Use.LITERAL);
180: _operations[5] = oper;
181:
182: oper = new org.apache.axis.description.OperationDesc();
183: oper.setName("getID");
184: param = new org.apache.axis.description.ParameterDesc(
185: new javax.xml.namespace.QName("", "in0"),
186: org.apache.axis.description.ParameterDesc.IN,
187: new javax.xml.namespace.QName(
188: "http://www.w3.org/2001/XMLSchema", "int"),
189: int.class, false, false);
190: oper.addParameter(param);
191: param = new org.apache.axis.description.ParameterDesc(
192: new javax.xml.namespace.QName("", "in1"),
193: org.apache.axis.description.ParameterDesc.IN,
194: new javax.xml.namespace.QName(
195: "http://www.w3.org/2001/XMLSchema", "string"),
196: java.lang.String.class, false, false);
197: oper.addParameter(param);
198: oper.setReturnType(new javax.xml.namespace.QName(
199: "http://www.w3.org/2001/XMLSchema", "int"));
200: oper.setReturnClass(int.class);
201: oper.setReturnQName(new javax.xml.namespace.QName("",
202: "getIDReturn"));
203: oper.setStyle(org.apache.axis.constants.Style.RPC);
204: oper.setUse(org.apache.axis.constants.Use.LITERAL);
205: _operations[6] = oper;
206:
207: oper = new org.apache.axis.description.OperationDesc();
208: oper.setName("update");
209: param = new org.apache.axis.description.ParameterDesc(
210: new javax.xml.namespace.QName("", "in0"),
211: org.apache.axis.description.ParameterDesc.IN,
212: new javax.xml.namespace.QName(
213: "http://www.w3.org/2001/XMLSchema", "int"),
214: int.class, false, false);
215: oper.addParameter(param);
216: param = new org.apache.axis.description.ParameterDesc(
217: new javax.xml.namespace.QName("", "in1"),
218: org.apache.axis.description.ParameterDesc.IN,
219: new javax.xml.namespace.QName(
220: "http://www.w3.org/2001/XMLSchema", "string"),
221: java.lang.String.class, false, false);
222: oper.addParameter(param);
223: param = new org.apache.axis.description.ParameterDesc(
224: new javax.xml.namespace.QName("", "in2"),
225: org.apache.axis.description.ParameterDesc.IN,
226: new javax.xml.namespace.QName(
227: "http://www.w3.org/2001/XMLSchema", "string"),
228: java.lang.String.class, false, false);
229: oper.addParameter(param);
230: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
231: oper.setStyle(org.apache.axis.constants.Style.RPC);
232: oper.setUse(org.apache.axis.constants.Use.LITERAL);
233: _operations[7] = oper;
234:
235: }
236:
237: public SQLDatasetSoapBindingStub() throws org.apache.axis.AxisFault {
238: this (null);
239: }
240:
241: public SQLDatasetSoapBindingStub(java.net.URL endpointURL,
242: javax.xml.rpc.Service service)
243: throws org.apache.axis.AxisFault {
244: this (service);
245: super .cachedEndpoint = endpointURL;
246: }
247:
248: public SQLDatasetSoapBindingStub(javax.xml.rpc.Service service)
249: throws org.apache.axis.AxisFault {
250: if (service == null) {
251: super .service = new org.apache.axis.client.Service();
252: } else {
253: super .service = service;
254: }
255: ((org.apache.axis.client.Service) super .service)
256: .setTypeMappingVersion("1.2");
257: java.lang.Class cls;
258: javax.xml.namespace.QName qName;
259: javax.xml.namespace.QName qName2;
260: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
261: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
262: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
263: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
264: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
265: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
266: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
267: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
268: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
269: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
270: qName = new javax.xml.namespace.QName(
271: "http://data.api.salome_tmf.objectweb.org",
272: "DataSetWrapper");
273: cachedSerQNames.add(qName);
274: cls = DataSetWrapper.class;
275: cachedSerClasses.add(cls);
276: cachedSerFactories.add(beansf);
277: cachedDeserFactories.add(beandf);
278:
279: qName = new javax.xml.namespace.QName(
280: "http://data.api.salome_tmf.objectweb.org",
281: "DataWrapper");
282: cachedSerQNames.add(qName);
283: cls = DataWrapper.class;
284: cachedSerClasses.add(cls);
285: cachedSerFactories.add(beansf);
286: cachedDeserFactories.add(beandf);
287:
288: qName = new javax.xml.namespace.QName(
289: "http://data.api.salome_tmf.objectweb.org",
290: "ParameterWrapper");
291: cachedSerQNames.add(qName);
292: cls = ParameterWrapper.class;
293: cachedSerClasses.add(cls);
294: cachedSerFactories.add(beansf);
295: cachedDeserFactories.add(beandf);
296:
297: qName = new javax.xml.namespace.QName(
298: "http://data.api.salome_tmf.objectweb.org",
299: "ValuedParameterWrapper");
300: cachedSerQNames.add(qName);
301: cls = ValuedParameterWrapper.class;
302: cachedSerClasses.add(cls);
303: cachedSerFactories.add(beansf);
304: cachedDeserFactories.add(beandf);
305:
306: qName = new javax.xml.namespace.QName(
307: "http://soap.salome_tmf.objectweb.org",
308: "ArrayOf_tns1_ValuedParameterWrapper");
309: cachedSerQNames.add(qName);
310: cls = ValuedParameterWrapper[].class;
311: cachedSerClasses.add(cls);
312: qName = new javax.xml.namespace.QName(
313: "http://data.api.salome_tmf.objectweb.org",
314: "ValuedParameterWrapper");
315: qName2 = new javax.xml.namespace.QName("", "item");
316: cachedSerFactories
317: .add(new org.apache.axis.encoding.ser.ArraySerializerFactory(
318: qName, qName2));
319: cachedDeserFactories
320: .add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
321:
322: }
323:
324: protected org.apache.axis.client.Call createCall()
325: throws java.rmi.RemoteException {
326: try {
327: org.apache.axis.client.Call _call = super ._createCall();
328: if (super .maintainSessionSet) {
329: _call.setMaintainSession(super .maintainSession);
330: }
331: if (super .cachedUsername != null) {
332: _call.setUsername(super .cachedUsername);
333: }
334: if (super .cachedPassword != null) {
335: _call.setPassword(super .cachedPassword);
336: }
337: if (super .cachedEndpoint != null) {
338: _call.setTargetEndpointAddress(super .cachedEndpoint);
339: }
340: if (super .cachedTimeout != null) {
341: _call.setTimeout(super .cachedTimeout);
342: }
343: if (super .cachedPortName != null) {
344: _call.setPortName(super .cachedPortName);
345: }
346: java.util.Enumeration keys = super .cachedProperties.keys();
347: while (keys.hasMoreElements()) {
348: java.lang.String key = (java.lang.String) keys
349: .nextElement();
350: _call.setProperty(key, super .cachedProperties.get(key));
351: }
352: // All the type mapping information is registered
353: // when the first call is made.
354: // The type mapping information is actually registered in
355: // the TypeMappingRegistry of the service, which
356: // is the reason why registration is only needed for the first call.
357: synchronized (this ) {
358: if (firstCall()) {
359: // must set encoding style before registering serializers
360: _call.setEncodingStyle(null);
361: for (int i = 0; i < cachedSerFactories.size(); ++i) {
362: java.lang.Class cls = (java.lang.Class) cachedSerClasses
363: .get(i);
364: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
365: .get(i);
366: java.lang.Object x = cachedSerFactories.get(i);
367: if (x instanceof Class) {
368: java.lang.Class sf = (java.lang.Class) cachedSerFactories
369: .get(i);
370: java.lang.Class df = (java.lang.Class) cachedDeserFactories
371: .get(i);
372: _call.registerTypeMapping(cls, qName, sf,
373: df, false);
374: } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
375: org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
376: .get(i);
377: org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
378: .get(i);
379: _call.registerTypeMapping(cls, qName, sf,
380: df, false);
381: }
382: }
383: }
384: }
385: return _call;
386: } catch (java.lang.Exception _t) {
387: throw new org.apache.axis.AxisFault(
388: "Failure trying to get the Call object", _t);
389: }
390: }
391:
392: public DataSetWrapper getWrapper(int in0)
393: throws java.rmi.RemoteException {
394: if (super .cachedEndpoint == null) {
395: throw new org.apache.axis.NoEndPointException();
396: }
397: org.apache.axis.client.Call _call = createCall();
398: _call.setOperation(_operations[0]);
399: _call.setUseSOAPAction(true);
400: _call.setSOAPActionURI("");
401: _call.setEncodingStyle(null);
402: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
403: Boolean.FALSE);
404: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
405: Boolean.FALSE);
406: _call
407: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
408: _call.setOperationName(new javax.xml.namespace.QName(
409: "http://soap.salome_tmf.objectweb.org", "getWrapper"));
410:
411: setRequestHeaders(_call);
412: setAttachments(_call);
413: try {
414: java.lang.Object _resp = _call
415: .invoke(new java.lang.Object[] { new java.lang.Integer(
416: in0) });
417:
418: if (_resp instanceof java.rmi.RemoteException) {
419: throw (java.rmi.RemoteException) _resp;
420: } else {
421: extractAttachments(_call);
422: try {
423: return (DataSetWrapper) _resp;
424: } catch (java.lang.Exception _exception) {
425: return (DataSetWrapper) org.apache.axis.utils.JavaUtils
426: .convert(_resp, DataSetWrapper.class);
427: }
428: }
429: } catch (org.apache.axis.AxisFault axisFaultException) {
430: throw axisFaultException;
431: }
432: }
433:
434: public void addParamValue(int in0, int in1, java.lang.String in2)
435: throws java.rmi.RemoteException {
436: if (!(Permission.canExecutCamp() || Permission.canCreateCamp())) {
437: try {
438: throw new Exception(
439: "[SQLDataset : addParamValue -> canExecutCamp]");
440: } catch (Exception e) {
441: e.printStackTrace();
442: }
443: }
444: if (super .cachedEndpoint == null) {
445: throw new org.apache.axis.NoEndPointException();
446: }
447: org.apache.axis.client.Call _call = createCall();
448: _call.setOperation(_operations[1]);
449: _call.setUseSOAPAction(true);
450: _call.setSOAPActionURI("");
451: _call.setEncodingStyle(null);
452: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
453: Boolean.FALSE);
454: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
455: Boolean.FALSE);
456: _call
457: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
458: _call
459: .setOperationName(new javax.xml.namespace.QName(
460: "http://soap.salome_tmf.objectweb.org",
461: "addParamValue"));
462:
463: setRequestHeaders(_call);
464: setAttachments(_call);
465: try {
466: java.lang.Object _resp = _call
467: .invoke(new java.lang.Object[] {
468: new java.lang.Integer(in0),
469: new java.lang.Integer(in1), in2 });
470:
471: if (_resp instanceof java.rmi.RemoteException) {
472: throw (java.rmi.RemoteException) _resp;
473: }
474: extractAttachments(_call);
475: } catch (org.apache.axis.AxisFault axisFaultException) {
476: throw axisFaultException;
477: }
478: }
479:
480: public void updateParamValue(int in0, int in1,
481: java.lang.String in2, java.lang.String in3)
482: throws java.rmi.RemoteException {
483: if (!(Permission.canUpdateCamp() || Permission.canExecutCamp())) {
484: try {
485: throw new Exception(
486: "[SQLDataset : update -> canUpdateCamp]");
487: } catch (Exception e) {
488: e.printStackTrace();
489: }
490: }
491: if (super .cachedEndpoint == null) {
492: throw new org.apache.axis.NoEndPointException();
493: }
494: org.apache.axis.client.Call _call = createCall();
495: _call.setOperation(_operations[2]);
496: _call.setUseSOAPAction(true);
497: _call.setSOAPActionURI("");
498: _call.setEncodingStyle(null);
499: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
500: Boolean.FALSE);
501: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
502: Boolean.FALSE);
503: _call
504: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
505: _call.setOperationName(new javax.xml.namespace.QName(
506: "http://soap.salome_tmf.objectweb.org",
507: "updateParamValue"));
508:
509: setRequestHeaders(_call);
510: setAttachments(_call);
511: try {
512: java.lang.Object _resp = _call
513: .invoke(new java.lang.Object[] {
514: new java.lang.Integer(in0),
515: new java.lang.Integer(in1), in2, in3 });
516:
517: if (_resp instanceof java.rmi.RemoteException) {
518: throw (java.rmi.RemoteException) _resp;
519: }
520: extractAttachments(_call);
521: } catch (org.apache.axis.AxisFault axisFaultException) {
522: throw axisFaultException;
523: }
524: }
525:
526: public ValuedParameterWrapper[] getDefinedParameters(int in0)
527: throws java.rmi.RemoteException {
528: if (super .cachedEndpoint == null) {
529: throw new org.apache.axis.NoEndPointException();
530: }
531: org.apache.axis.client.Call _call = createCall();
532: _call.setOperation(_operations[3]);
533: _call.setUseSOAPAction(true);
534: _call.setSOAPActionURI("");
535: _call.setEncodingStyle(null);
536: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
537: Boolean.FALSE);
538: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
539: Boolean.FALSE);
540: _call
541: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
542: _call.setOperationName(new javax.xml.namespace.QName(
543: "http://soap.salome_tmf.objectweb.org",
544: "getDefinedParameters"));
545:
546: setRequestHeaders(_call);
547: setAttachments(_call);
548: try {
549: java.lang.Object _resp = _call
550: .invoke(new java.lang.Object[] { new java.lang.Integer(
551: in0) });
552:
553: if (_resp instanceof java.rmi.RemoteException) {
554: throw (java.rmi.RemoteException) _resp;
555: } else {
556: extractAttachments(_call);
557: try {
558: return (ValuedParameterWrapper[]) _resp;
559: } catch (java.lang.Exception _exception) {
560: return (ValuedParameterWrapper[]) org.apache.axis.utils.JavaUtils
561: .convert(_resp,
562: ValuedParameterWrapper[].class);
563: }
564: }
565: } catch (org.apache.axis.AxisFault axisFaultException) {
566: throw axisFaultException;
567: }
568: }
569:
570: public void delete(int in0) throws java.rmi.RemoteException {
571: if (!(Permission.canExecutCamp() || Permission.canDeleteCamp())) {
572: try {
573: throw new Exception(
574: "[SQLDataset : delete -> canExecutCamp]");
575: } catch (Exception e) {
576: e.printStackTrace();
577: }
578: }
579: if (super .cachedEndpoint == null) {
580: throw new org.apache.axis.NoEndPointException();
581: }
582: org.apache.axis.client.Call _call = createCall();
583: _call.setOperation(_operations[4]);
584: _call.setUseSOAPAction(true);
585: _call.setSOAPActionURI("");
586: _call.setEncodingStyle(null);
587: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
588: Boolean.FALSE);
589: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
590: Boolean.FALSE);
591: _call
592: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
593: _call.setOperationName(new javax.xml.namespace.QName(
594: "http://soap.salome_tmf.objectweb.org", "delete"));
595:
596: setRequestHeaders(_call);
597: setAttachments(_call);
598: try {
599: java.lang.Object _resp = _call
600: .invoke(new java.lang.Object[] { new java.lang.Integer(
601: in0) });
602:
603: if (_resp instanceof java.rmi.RemoteException) {
604: throw (java.rmi.RemoteException) _resp;
605: }
606: extractAttachments(_call);
607: } catch (org.apache.axis.AxisFault axisFaultException) {
608: throw axisFaultException;
609: }
610: }
611:
612: public int insert(int in0, java.lang.String in1,
613: java.lang.String in2) throws java.rmi.RemoteException {
614: if (!Permission.canCreateCamp() || !Permission.canExecutCamp()) {
615: try {
616: throw new Exception(
617: "[SQLDataset : insert -> canCreateCamp or canExecutCamp]");
618: } catch (Exception e) {
619: e.printStackTrace();
620: }
621: }
622: if (super .cachedEndpoint == null) {
623: throw new org.apache.axis.NoEndPointException();
624: }
625: org.apache.axis.client.Call _call = createCall();
626: _call.setOperation(_operations[5]);
627: _call.setUseSOAPAction(true);
628: _call.setSOAPActionURI("");
629: _call.setEncodingStyle(null);
630: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
631: Boolean.FALSE);
632: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
633: Boolean.FALSE);
634: _call
635: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
636: _call.setOperationName(new javax.xml.namespace.QName(
637: "http://soap.salome_tmf.objectweb.org", "insert"));
638:
639: setRequestHeaders(_call);
640: setAttachments(_call);
641: try {
642: java.lang.Object _resp = _call
643: .invoke(new java.lang.Object[] {
644: new java.lang.Integer(in0), in1, in2 });
645:
646: if (_resp instanceof java.rmi.RemoteException) {
647: throw (java.rmi.RemoteException) _resp;
648: } else {
649: extractAttachments(_call);
650: try {
651: return ((java.lang.Integer) _resp).intValue();
652: } catch (java.lang.Exception _exception) {
653: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
654: .convert(_resp, int.class)).intValue();
655: }
656: }
657: } catch (org.apache.axis.AxisFault axisFaultException) {
658: throw axisFaultException;
659: }
660: }
661:
662: public int getID(int in0, java.lang.String in1)
663: throws java.rmi.RemoteException {
664: if (super .cachedEndpoint == null) {
665: throw new org.apache.axis.NoEndPointException();
666: }
667: org.apache.axis.client.Call _call = createCall();
668: _call.setOperation(_operations[6]);
669: _call.setUseSOAPAction(true);
670: _call.setSOAPActionURI("");
671: _call.setEncodingStyle(null);
672: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
673: Boolean.FALSE);
674: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
675: Boolean.FALSE);
676: _call
677: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
678: _call.setOperationName(new javax.xml.namespace.QName(
679: "http://soap.salome_tmf.objectweb.org", "getID"));
680:
681: setRequestHeaders(_call);
682: setAttachments(_call);
683: try {
684: java.lang.Object _resp = _call
685: .invoke(new java.lang.Object[] {
686: new java.lang.Integer(in0), in1 });
687:
688: if (_resp instanceof java.rmi.RemoteException) {
689: throw (java.rmi.RemoteException) _resp;
690: } else {
691: extractAttachments(_call);
692: try {
693: return ((java.lang.Integer) _resp).intValue();
694: } catch (java.lang.Exception _exception) {
695: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
696: .convert(_resp, int.class)).intValue();
697: }
698: }
699: } catch (org.apache.axis.AxisFault axisFaultException) {
700: throw axisFaultException;
701: }
702: }
703:
704: public void update(int in0, java.lang.String in1,
705: java.lang.String in2) throws java.rmi.RemoteException {
706: if (!(Permission.canExecutCamp() || Permission.canUpdateCamp())) {
707: try {
708: throw new Exception(
709: "[SQLDataset : update -> canExecutCamp]");
710: } catch (Exception e) {
711: e.printStackTrace();
712: }
713: }
714: if (super .cachedEndpoint == null) {
715: throw new org.apache.axis.NoEndPointException();
716: }
717: org.apache.axis.client.Call _call = createCall();
718: _call.setOperation(_operations[7]);
719: _call.setUseSOAPAction(true);
720: _call.setSOAPActionURI("");
721: _call.setEncodingStyle(null);
722: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
723: Boolean.FALSE);
724: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
725: Boolean.FALSE);
726: _call
727: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
728: _call.setOperationName(new javax.xml.namespace.QName(
729: "http://soap.salome_tmf.objectweb.org", "update"));
730:
731: setRequestHeaders(_call);
732: setAttachments(_call);
733: try {
734: java.lang.Object _resp = _call
735: .invoke(new java.lang.Object[] {
736: new java.lang.Integer(in0), in1, in2 });
737:
738: if (_resp instanceof java.rmi.RemoteException) {
739: throw (java.rmi.RemoteException) _resp;
740: }
741: extractAttachments(_call);
742: } catch (org.apache.axis.AxisFault axisFaultException) {
743: throw axisFaultException;
744: }
745: }
746:
747: }
|