Package com.salesforce.ide.core.remote

Examples of com.salesforce.ide.core.remote.Connection.query()


            logger.warn("Unable to load s-controls - project is null");
            return null;
        }

        Connection connection = getConnectionFactory().getConnection(project);
        SObject[] sobjects = connection.query(SoqlEnum.getScontrolsByContentSource("HTML")).getRecords();

        if (Utils.isEmpty(sobjects)) {
            logger.warn("Unable to load s-controls - returned s-controls of type 'HTML' is null or empty");
            return null;
        }
View Full Code Here


            logger.warn("Unable to load snippets - project is null");
            return null;
        }

        Connection connection = getConnectionFactory().getConnection(project);
        SObject[] scontrols = connection.query(SoqlEnum.getScontrolsByContentSource("Snippet")).getRecords();

        if (Utils.isEmpty(scontrols)) {
            logger.warn("Unable to load snippets - returned scontrols is null or empty");
            return null;
        }
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

        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)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.