Package com.sforce.soap.partner.wsc

Examples of com.sforce.soap.partner.wsc.QueryResult


        return query(queryString, true);
    }

    public QueryResult query(String queryString, boolean withClientId) throws ForceConnectionException,
            InsufficientPermissionsException {
        QueryResult result = null;

        if (!withClientId) {
            setNonCallOptions();
        }

        try {
            if (logger.isDebugEnabled()) {
                logger.debug("Execution query statement:\n '" + queryString + "'");
                logConnection();
            }
            result = getPartnerConnection().query(queryString);

            if (result != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Returned [" + result.getSize() + "] records");
                }
            }

        } catch (ConnectionException e) {
            ForceExceptionUtils.handleConnectionException(this, e);
View Full Code Here


            throw new IllegalArgumentException("Connection and/or sosql name cannot be null");
        }

        ProjectPackageList projectPackageList = getProjectPackageListInstance();
        for (String soql : soqls) {
            QueryResult result = connection.query(soql);
            if (Utils.isNotEmpty(result)) {
                SObject[] sobjects = result.getRecords();
                if (Utils.isNotEmpty(sobjects)) {
                    for (SObject sobject : sobjects) {
                        ProjectPackage projectPackage = getProjectPackageInstance();
                        projectPackage.setOrgId(connection.getOrgId());
                        projectPackage.parseInput(sobject);
View Full Code Here

     */
    private void addChildControls(final Composite composite) throws ForceConnectionException, ForceProjectException,
            ForceRemoteException {
        parentComposite = composite;
        Connection connection = getConnectionFactory().getConnection(project);
        QueryResult qr = connection.query(SoqlEnum.getSchemaInitalizationQuery());
        Table table = createTable(composite, qr);

        // Create and setup the TableViewer
        createTableViewer(table);
        tableViewer.setContentProvider(new SchemaContentProvider());
View Full Code Here

        ForceProject destinationOrg = deploymentController.getDeploymentWizardModel().getDestinationOrg();
        Connection connection = ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getConnection(destinationOrg);
        for (DeploymentComponent selectedDashboard : selectedDashboards) {
            String currentRunningUser = selectedDashboard.getRunningUser();
            QueryResult result =
                    connection.query("select userName from user where userName='" + currentRunningUser + "'");
            if (Utils.isEmpty(result) || result.getRecords().length == 0) {
                replaceRunningUserSet.add(selectedDashboard);
            }
        }
    }
View Full Code Here

     * @throws ForceRemoteException
     */
    public boolean replaceRunningUserWith(String userInputRunningUser) {
        ForceProject destinationOrg = deploymentController.getDeploymentWizardModel().getDestinationOrg();
        Connection connection;
        QueryResult result = null;
        try {
            connection = ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getConnection(destinationOrg);
            result = connection.query("select userName from user where userName='" + userInputRunningUser + "'");
        } catch (Exception e) {
            logger.warn(e);
            return false;
        }
        if (Utils.isEmpty(result) || result.getRecords().length == 0 || Utils.isEmpty(replaceRunningUserSet)) {
            return false;
        }

        for (DeploymentComponent replaceRunningUser : replaceRunningUserSet) {
            String replaced =
View Full Code Here

TOP

Related Classes of com.sforce.soap.partner.wsc.QueryResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.