elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/base/ValidationUtils.java [68:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            SQLXML sqlxml = conn.createSQLXML();

            JAXBContext context = JAXBContext.newInstance(StoreOperationInput.class, StoreShard.class, StoreShardMap.class);
            // Set the result value from SAX events.
            SAXResult sxResult = sqlxml.setResult(SAXResult.class);
            context.createMarshaller().marshal(jaxbElement, sxResult);
            /*
             * log.info("Xml:{}\n{}", "ValidateShardMappingLocal", SqlStoreTransactionScope.asString(context, jaxbElement));//
             */

            cstmt.setSQLXML("input", sqlxml);
            cstmt.registerOutParameter("result", Types.INTEGER);
            Boolean hasResults = cstmt.execute();
            StoreResults storeResults = SqlResults.newInstance(cstmt);
            // After iterating resultSet's, get result integer.
            int result = cstmt.getInt("result");
            lsmResult.setResult(StoreResult.forValue(result));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/base/ValidationUtils.java [173:189]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            SQLXML sqlxml = conn.createSQLXML();

            JAXBContext context = JAXBContext.newInstance(StoreOperationInput.class, StoreShard.class, StoreShardMap.class);
            // Set the result value from SAX events.
            SAXResult sxResult = sqlxml.setResult(SAXResult.class);
            context.createMarshaller().marshal(jaxbElement, sxResult);
            /*
             * log.info("Xml:{}\n{}", "ValidateShardLocal", SqlStoreTransactionScope.asString(context, jaxbElement));//
             */

            cstmt.setSQLXML("input", sqlxml);
            cstmt.registerOutParameter("result", Types.INTEGER);
            Boolean hasResults = cstmt.execute();
            StoreResults storeResults = SqlResults.newInstance(cstmt);
            // After iterating resultSet's, get result integer.
            int result = cstmt.getInt("result");
            lsmResult.setResult(StoreResult.forValue(result));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



