CloneSet229


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33220.967statement_sequence[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12628
E:/TSE/Projects-CloneDR/sql12/plugins/sqlval/src/com/mimer/ws/validateSQL/ValidateSQL99Client.java
23373
E:/TSE/Projects-CloneDR/sql12/plugins/sqlval/src/net/sourceforge/squirrel_sql/plugins/sqlval/WebServiceValidator.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
28
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/sqlval/src/com/mimer/ws/validateSQL/ValidateSQL99Client.java

Call l_call = (Call) l_service.createCall();
//Set the target server and name space
l_call.setTargetEndpointAddress(a_url);
l_call.setOperationName(new QName("SQL99Validator", "validateSQL"));
//Add the parameter names and types
//Use the session Id you got from the openSession call here
l_call.addParameter("a_sessionId", XMLType.XSD_INT, ParameterMode.IN);
//Use the session key you got from the openSession call here
l_call.addParameter("a_sessionKey", XMLType.XSD_INT, ParameterMode.IN);
//The SQL statement to be validated against the standard
l_call.addParameter("a_sqlStatement", XMLType.XSD_STRING, ParameterMode.IN);
//The format of the result. This must be "text" or "html".
//Hopefully some type of XML format will be available as well
l_call.addParameter("a_resultType", XMLType.XSD_STRING, ParameterMode.IN);
QName l_qn = new QName("http://sqlvalidator.mimer.com/v1.0", "ValidatorResult");
//        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1", "ValidatorResult" );
l_call.registerTypeMapping(ValidatorResult.class , l_qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ValidatorResult.class , l_qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(ValidatorResult.class , l_qn));
//Set the return type
l_call.setReturnType(l_qn);


First
Previous
Clone Instance
2
Line Count
33
Source Line
73
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/sqlval/src/net/sourceforge/squirrel_sql/plugins/sqlval/WebServiceValidator.java

Call l_call = (Call) l_service.createCall();
//Set the target server and name space
l_call.setTargetEndpointAddress(_webServiceSession.getTargetURL());
l_call.setOperationName(new QName("SQL99Validator", "validateSQL"));
//Add the parameter names and types
//Use the session Id you got from the openSession call here
l_call.addParameter("a_sessionId", XMLType.XSD_INT, ParameterMode.IN);
//Use the session key you got from the openSession call here
l_call.addParameter("a_sessionKey", XMLType.XSD_INT, ParameterMode.IN);
//The SQL statement to be validated against the standard
l_call.addParameter("a_sqlStatement", XMLType.XSD_STRING, ParameterMode.IN);
//The format of the result. This must be "text" or "html".
//Hopefully some type of XML format will be available as well
l_call.addParameter("a_resultType", XMLType.XSD_STRING, ParameterMode.IN);
QName l_qn = new QName(IWebServiceURL.REQUEST_URL, "ValidatorResult");
l_call.registerTypeMapping(ValidatorResult.class , l_qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ValidatorResult.class , l_qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(ValidatorResult.class , l_qn));
//Set the return type
l_call.setReturnType(l_qn);


Clone AbstractionParameter Count: 2Parameter Bindings

Call l_call = (Call) l_service.createCall();
//Set the target server and name space
l_call.setTargetEndpointAddress( [[#variable18d6f9c0]]);
l_call.setOperationName(new QName("SQL99Validator", "validateSQL"));
//Add the parameter names and types
//Use the session Id you got from the openSession call here
l_call.addParameter("a_sessionId", XMLType.XSD_INT, ParameterMode.IN);
//Use the session key you got from the openSession call here
l_call.addParameter("a_sessionKey", XMLType.XSD_INT, ParameterMode.IN);
//The SQL statement to be validated against the standard
l_call.addParameter("a_sqlStatement", XMLType.XSD_STRING, ParameterMode.IN);
//The format of the result. This must be "text" or "html".
//Hopefully some type of XML format will be available as well
l_call.addParameter("a_resultType", XMLType.XSD_STRING, ParameterMode.IN);
QName l_qn = new QName( [[#variable18d735a0]], "ValidatorResult");
//        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1", "ValidatorResult" );
l_call.registerTypeMapping(ValidatorResult.class , l_qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ValidatorResult.class , l_qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(ValidatorResult.class , l_qn));
//Set the return type
l_call.setReturnType(l_qn);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d6f9c0]]
a_url 
12[[#18d6f9c0]]
_webServiceSession.getTargetURL() 
21[[#18d735a0]]
"http://sqlvalidator.mimer.com/v1.0" 
22[[#18d735a0]]
IWebServiceURL.REQUEST_URL