001: /**
002: * SQLParameterSoapBindingStub.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.DataWrapper;
010: import org.objectweb.salome_tmf.api.data.ParameterWrapper;
011: import org.objectweb.salome_tmf.api.sql.ISQLParameter;
012: import org.objectweb.salome_tmf.databaseSQL.SecurityException;
013:
014: public class SQLParameterSoapBindingStub extends StubClient implements
015: ISQLParameter {
016: private java.util.Vector cachedSerClasses = new java.util.Vector();
017: private java.util.Vector cachedSerQNames = new java.util.Vector();
018: private java.util.Vector cachedSerFactories = new java.util.Vector();
019: private java.util.Vector cachedDeserFactories = new java.util.Vector();
020:
021: static org.apache.axis.description.OperationDesc[] _operations;
022:
023: static {
024: _operations = new org.apache.axis.description.OperationDesc[5];
025: _initOperationDesc1();
026: }
027:
028: private static void _initOperationDesc1() {
029: org.apache.axis.description.OperationDesc oper;
030: org.apache.axis.description.ParameterDesc param;
031: oper = new org.apache.axis.description.OperationDesc();
032: oper.setName("selectID");
033: param = new org.apache.axis.description.ParameterDesc(
034: new javax.xml.namespace.QName("", "in0"),
035: org.apache.axis.description.ParameterDesc.IN,
036: new javax.xml.namespace.QName(
037: "http://www.w3.org/2001/XMLSchema", "int"),
038: int.class, false, false);
039: oper.addParameter(param);
040: param = new org.apache.axis.description.ParameterDesc(
041: new javax.xml.namespace.QName("", "in1"),
042: org.apache.axis.description.ParameterDesc.IN,
043: new javax.xml.namespace.QName(
044: "http://www.w3.org/2001/XMLSchema", "string"),
045: java.lang.String.class, false, false);
046: oper.addParameter(param);
047: oper.setReturnType(new javax.xml.namespace.QName(
048: "http://www.w3.org/2001/XMLSchema", "int"));
049: oper.setReturnClass(int.class);
050: oper.setReturnQName(new javax.xml.namespace.QName("",
051: "selectIDReturn"));
052: oper.setStyle(org.apache.axis.constants.Style.RPC);
053: oper.setUse(org.apache.axis.constants.Use.LITERAL);
054: _operations[0] = oper;
055:
056: oper = new org.apache.axis.description.OperationDesc();
057: oper.setName("updateDescription");
058: param = new org.apache.axis.description.ParameterDesc(
059: new javax.xml.namespace.QName("", "in0"),
060: org.apache.axis.description.ParameterDesc.IN,
061: new javax.xml.namespace.QName(
062: "http://www.w3.org/2001/XMLSchema", "int"),
063: int.class, false, false);
064: oper.addParameter(param);
065: param = new org.apache.axis.description.ParameterDesc(
066: new javax.xml.namespace.QName("", "in1"),
067: org.apache.axis.description.ParameterDesc.IN,
068: new javax.xml.namespace.QName(
069: "http://www.w3.org/2001/XMLSchema", "string"),
070: java.lang.String.class, false, false);
071: oper.addParameter(param);
072: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
073: oper.setStyle(org.apache.axis.constants.Style.RPC);
074: oper.setUse(org.apache.axis.constants.Use.LITERAL);
075: _operations[1] = oper;
076:
077: oper = new org.apache.axis.description.OperationDesc();
078: oper.setName("getParameterWrapper");
079: param = new org.apache.axis.description.ParameterDesc(
080: new javax.xml.namespace.QName("", "in0"),
081: org.apache.axis.description.ParameterDesc.IN,
082: new javax.xml.namespace.QName(
083: "http://www.w3.org/2001/XMLSchema", "int"),
084: int.class, false, false);
085: oper.addParameter(param);
086: oper.setReturnType(new javax.xml.namespace.QName(
087: "http://data.api.salome_tmf.objectweb.org",
088: "ParameterWrapper"));
089: oper.setReturnClass(ParameterWrapper.class);
090: oper.setReturnQName(new javax.xml.namespace.QName("",
091: "getParameterWrapperReturn"));
092: oper.setStyle(org.apache.axis.constants.Style.RPC);
093: oper.setUse(org.apache.axis.constants.Use.LITERAL);
094: _operations[2] = oper;
095:
096: oper = new org.apache.axis.description.OperationDesc();
097: oper.setName("delete");
098: param = new org.apache.axis.description.ParameterDesc(
099: new javax.xml.namespace.QName("", "in0"),
100: org.apache.axis.description.ParameterDesc.IN,
101: new javax.xml.namespace.QName(
102: "http://www.w3.org/2001/XMLSchema", "int"),
103: int.class, false, false);
104: oper.addParameter(param);
105: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
106: oper.setStyle(org.apache.axis.constants.Style.RPC);
107: oper.setUse(org.apache.axis.constants.Use.LITERAL);
108: _operations[3] = oper;
109:
110: oper = new org.apache.axis.description.OperationDesc();
111: oper.setName("insert");
112: param = new org.apache.axis.description.ParameterDesc(
113: new javax.xml.namespace.QName("", "in0"),
114: org.apache.axis.description.ParameterDesc.IN,
115: new javax.xml.namespace.QName(
116: "http://www.w3.org/2001/XMLSchema", "int"),
117: int.class, false, false);
118: oper.addParameter(param);
119: param = new org.apache.axis.description.ParameterDesc(
120: new javax.xml.namespace.QName("", "in1"),
121: org.apache.axis.description.ParameterDesc.IN,
122: new javax.xml.namespace.QName(
123: "http://www.w3.org/2001/XMLSchema", "string"),
124: java.lang.String.class, false, false);
125: oper.addParameter(param);
126: param = new org.apache.axis.description.ParameterDesc(
127: new javax.xml.namespace.QName("", "in2"),
128: org.apache.axis.description.ParameterDesc.IN,
129: new javax.xml.namespace.QName(
130: "http://www.w3.org/2001/XMLSchema", "string"),
131: java.lang.String.class, false, false);
132: oper.addParameter(param);
133: oper.setReturnType(new javax.xml.namespace.QName(
134: "http://www.w3.org/2001/XMLSchema", "int"));
135: oper.setReturnClass(int.class);
136: oper.setReturnQName(new javax.xml.namespace.QName("",
137: "insertReturn"));
138: oper.setStyle(org.apache.axis.constants.Style.RPC);
139: oper.setUse(org.apache.axis.constants.Use.LITERAL);
140: _operations[4] = oper;
141:
142: }
143:
144: public SQLParameterSoapBindingStub()
145: throws org.apache.axis.AxisFault {
146: this (null);
147: }
148:
149: public SQLParameterSoapBindingStub(java.net.URL endpointURL,
150: javax.xml.rpc.Service service)
151: throws org.apache.axis.AxisFault {
152: this (service);
153: super .cachedEndpoint = endpointURL;
154: }
155:
156: public SQLParameterSoapBindingStub(javax.xml.rpc.Service service)
157: throws org.apache.axis.AxisFault {
158: if (service == null) {
159: super .service = new org.apache.axis.client.Service();
160: } else {
161: super .service = service;
162: }
163: ((org.apache.axis.client.Service) super .service)
164: .setTypeMappingVersion("1.2");
165: java.lang.Class cls;
166: javax.xml.namespace.QName qName;
167: javax.xml.namespace.QName qName2;
168: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
169: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
170: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
171: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
172: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
173: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
174: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
175: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
176: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
177: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
178: qName = new javax.xml.namespace.QName(
179: "http://data.api.salome_tmf.objectweb.org",
180: "DataWrapper");
181: cachedSerQNames.add(qName);
182: cls = DataWrapper.class;
183: cachedSerClasses.add(cls);
184: cachedSerFactories.add(beansf);
185: cachedDeserFactories.add(beandf);
186:
187: qName = new javax.xml.namespace.QName(
188: "http://data.api.salome_tmf.objectweb.org",
189: "ParameterWrapper");
190: cachedSerQNames.add(qName);
191: cls = ParameterWrapper.class;
192: cachedSerClasses.add(cls);
193: cachedSerFactories.add(beansf);
194: cachedDeserFactories.add(beandf);
195:
196: }
197:
198: protected org.apache.axis.client.Call createCall()
199: throws java.rmi.RemoteException {
200: try {
201: org.apache.axis.client.Call _call = super ._createCall();
202: if (super .maintainSessionSet) {
203: _call.setMaintainSession(super .maintainSession);
204: }
205: if (super .cachedUsername != null) {
206: _call.setUsername(super .cachedUsername);
207: }
208: if (super .cachedPassword != null) {
209: _call.setPassword(super .cachedPassword);
210: }
211: if (super .cachedEndpoint != null) {
212: _call.setTargetEndpointAddress(super .cachedEndpoint);
213: }
214: if (super .cachedTimeout != null) {
215: _call.setTimeout(super .cachedTimeout);
216: }
217: if (super .cachedPortName != null) {
218: _call.setPortName(super .cachedPortName);
219: }
220: java.util.Enumeration keys = super .cachedProperties.keys();
221: while (keys.hasMoreElements()) {
222: java.lang.String key = (java.lang.String) keys
223: .nextElement();
224: _call.setProperty(key, super .cachedProperties.get(key));
225: }
226: // All the type mapping information is registered
227: // when the first call is made.
228: // The type mapping information is actually registered in
229: // the TypeMappingRegistry of the service, which
230: // is the reason why registration is only needed for the first call.
231: synchronized (this ) {
232: if (firstCall()) {
233: // must set encoding style before registering serializers
234: _call.setEncodingStyle(null);
235: for (int i = 0; i < cachedSerFactories.size(); ++i) {
236: java.lang.Class cls = (java.lang.Class) cachedSerClasses
237: .get(i);
238: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
239: .get(i);
240: java.lang.Object x = cachedSerFactories.get(i);
241: if (x instanceof Class) {
242: java.lang.Class sf = (java.lang.Class) cachedSerFactories
243: .get(i);
244: java.lang.Class df = (java.lang.Class) cachedDeserFactories
245: .get(i);
246: _call.registerTypeMapping(cls, qName, sf,
247: df, false);
248: } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
249: org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
250: .get(i);
251: org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
252: .get(i);
253: _call.registerTypeMapping(cls, qName, sf,
254: df, false);
255: }
256: }
257: }
258: }
259: return _call;
260: } catch (java.lang.Exception _t) {
261: throw new org.apache.axis.AxisFault(
262: "Failure trying to get the Call object", _t);
263: }
264: }
265:
266: public int selectID(int in0, java.lang.String in1)
267: throws java.rmi.RemoteException {
268: if (super .cachedEndpoint == null) {
269: throw new org.apache.axis.NoEndPointException();
270: }
271: org.apache.axis.client.Call _call = createCall();
272: _call.setOperation(_operations[0]);
273: _call.setUseSOAPAction(true);
274: _call.setSOAPActionURI("");
275: _call.setEncodingStyle(null);
276: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
277: Boolean.FALSE);
278: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
279: Boolean.FALSE);
280: _call
281: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
282: _call.setOperationName(new javax.xml.namespace.QName(
283: "http://soap.salome_tmf.objectweb.org", "selectID"));
284:
285: setRequestHeaders(_call);
286: setAttachments(_call);
287: try {
288: java.lang.Object _resp = _call
289: .invoke(new java.lang.Object[] {
290: new java.lang.Integer(in0), in1 });
291:
292: if (_resp instanceof java.rmi.RemoteException) {
293: throw (java.rmi.RemoteException) _resp;
294: } else {
295: extractAttachments(_call);
296: try {
297: return ((java.lang.Integer) _resp).intValue();
298: } catch (java.lang.Exception _exception) {
299: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
300: .convert(_resp, int.class)).intValue();
301: }
302: }
303: } catch (org.apache.axis.AxisFault axisFaultException) {
304: throw axisFaultException;
305: }
306: }
307:
308: public void updateDescription(int in0, java.lang.String in1)
309: throws java.rmi.RemoteException {
310: if (!Permission.canUpdateTest()) {
311: try {
312: throw new Exception(
313: "[SQLPamameter : updateDescription --> canUpdateTest]");
314: } catch (Exception e) {
315: e.printStackTrace();
316: }
317: }
318: if (super .cachedEndpoint == null) {
319: throw new org.apache.axis.NoEndPointException();
320: }
321: org.apache.axis.client.Call _call = createCall();
322: _call.setOperation(_operations[1]);
323: _call.setUseSOAPAction(true);
324: _call.setSOAPActionURI("");
325: _call.setEncodingStyle(null);
326: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
327: Boolean.FALSE);
328: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
329: Boolean.FALSE);
330: _call
331: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
332: _call.setOperationName(new javax.xml.namespace.QName(
333: "http://soap.salome_tmf.objectweb.org",
334: "updateDescription"));
335:
336: setRequestHeaders(_call);
337: setAttachments(_call);
338: try {
339: java.lang.Object _resp = _call
340: .invoke(new java.lang.Object[] {
341: new java.lang.Integer(in0), in1 });
342:
343: if (_resp instanceof java.rmi.RemoteException) {
344: throw (java.rmi.RemoteException) _resp;
345: }
346: extractAttachments(_call);
347: } catch (org.apache.axis.AxisFault axisFaultException) {
348: throw axisFaultException;
349: }
350: }
351:
352: public ParameterWrapper getParameterWrapper(int in0)
353: throws java.rmi.RemoteException {
354: if (super .cachedEndpoint == null) {
355: throw new org.apache.axis.NoEndPointException();
356: }
357: org.apache.axis.client.Call _call = createCall();
358: _call.setOperation(_operations[2]);
359: _call.setUseSOAPAction(true);
360: _call.setSOAPActionURI("");
361: _call.setEncodingStyle(null);
362: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
363: Boolean.FALSE);
364: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
365: Boolean.FALSE);
366: _call
367: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
368: _call.setOperationName(new javax.xml.namespace.QName(
369: "http://soap.salome_tmf.objectweb.org",
370: "getParameterWrapper"));
371:
372: setRequestHeaders(_call);
373: setAttachments(_call);
374: try {
375: java.lang.Object _resp = _call
376: .invoke(new java.lang.Object[] { new java.lang.Integer(
377: in0) });
378:
379: if (_resp instanceof java.rmi.RemoteException) {
380: throw (java.rmi.RemoteException) _resp;
381: } else {
382: extractAttachments(_call);
383: try {
384: return (ParameterWrapper) _resp;
385: } catch (java.lang.Exception _exception) {
386: return (ParameterWrapper) org.apache.axis.utils.JavaUtils
387: .convert(_resp, ParameterWrapper.class);
388: }
389: }
390: } catch (org.apache.axis.AxisFault axisFaultException) {
391: throw axisFaultException;
392: }
393: }
394:
395: public void delete(int in0) throws java.rmi.RemoteException {
396: if (!Permission.canDeleteTest()) {
397: try {
398: throw new Exception(
399: "[SQLPamameter : updateDescription --> canDeleteTest]");
400: } catch (Exception e) {
401: e.printStackTrace();
402: }
403: }
404: if (super .cachedEndpoint == null) {
405: throw new org.apache.axis.NoEndPointException();
406: }
407: org.apache.axis.client.Call _call = createCall();
408: _call.setOperation(_operations[3]);
409: _call.setUseSOAPAction(true);
410: _call.setSOAPActionURI("");
411: _call.setEncodingStyle(null);
412: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
413: Boolean.FALSE);
414: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
415: Boolean.FALSE);
416: _call
417: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
418: _call.setOperationName(new javax.xml.namespace.QName(
419: "http://soap.salome_tmf.objectweb.org", "delete"));
420:
421: setRequestHeaders(_call);
422: setAttachments(_call);
423: try {
424: java.lang.Object _resp = _call
425: .invoke(new java.lang.Object[] { new java.lang.Integer(
426: in0) });
427:
428: if (_resp instanceof java.rmi.RemoteException) {
429: throw (java.rmi.RemoteException) _resp;
430: }
431: extractAttachments(_call);
432: } catch (org.apache.axis.AxisFault axisFaultException) {
433: throw axisFaultException;
434: }
435: }
436:
437: public int insert(int in0, java.lang.String in1,
438: java.lang.String in2) throws java.rmi.RemoteException {
439: if (!Permission.canCreateTest()) {
440: try {
441: throw new Exception(
442: "[SQLPamameter : updateDescription -> canCreateTest]");
443: } catch (Exception e) {
444: e.printStackTrace();
445: }
446: }
447: if (super .cachedEndpoint == null) {
448: throw new org.apache.axis.NoEndPointException();
449: }
450: org.apache.axis.client.Call _call = createCall();
451: _call.setOperation(_operations[4]);
452: _call.setUseSOAPAction(true);
453: _call.setSOAPActionURI("");
454: _call.setEncodingStyle(null);
455: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
456: Boolean.FALSE);
457: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
458: Boolean.FALSE);
459: _call
460: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
461: _call.setOperationName(new javax.xml.namespace.QName(
462: "http://soap.salome_tmf.objectweb.org", "insert"));
463:
464: setRequestHeaders(_call);
465: setAttachments(_call);
466: try {
467: java.lang.Object _resp = _call
468: .invoke(new java.lang.Object[] {
469: new java.lang.Integer(in0), in1, in2 });
470:
471: if (_resp instanceof java.rmi.RemoteException) {
472: throw (java.rmi.RemoteException) _resp;
473: } else {
474: extractAttachments(_call);
475: try {
476: return ((java.lang.Integer) _resp).intValue();
477: } catch (java.lang.Exception _exception) {
478: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
479: .convert(_resp, int.class)).intValue();
480: }
481: }
482: } catch (org.apache.axis.AxisFault axisFaultException) {
483: throw axisFaultException;
484: }
485: }
486:
487: }
|