Examples of DescribeGlobalSObjectResult


Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

        // for each object, check whether the object is valid for the current
        // operation
        if (entityDescribes != null) {
            for (Entry<String, DescribeGlobalSObjectResult> entry : entityDescribes.entrySet()) {
                String objectName = entry.getKey();
                DescribeGlobalSObjectResult objectDesc = entry.getValue();
                if (operation.isDelete() && objectDesc.isDeletable()) {
                    inputDescribes.put(objectName, objectDesc);
                } else if (operation == OperationInfo.insert && objectDesc.isCreateable()) {
                    inputDescribes.put(objectName, objectDesc);
                } else if (operation == OperationInfo.update && objectDesc.isUpdateable()) {
                    inputDescribes.put(objectName, objectDesc);
                } else if (operation == OperationInfo.upsert && (objectDesc.isUpdateable() || objectDesc.isCreateable())) {
                    inputDescribes.put(objectName, objectDesc);
                }
            }
        }
        lv.setInput(inputDescribes);
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

    }

    private boolean checkEntityStatus() {
        IStructuredSelection selection = (IStructuredSelection)lv.getSelection();
        DescribeGlobalSObjectResult entity = (DescribeGlobalSObjectResult)selection.getFirstElement();
        if (entity != null) {
            return true;
        }
        return false;
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

    public LoadPage getNextPage() {
        //attempt to login
        Config config = controller.getConfig();
        //get entity
        IStructuredSelection selection = (IStructuredSelection)lv.getSelection();
        DescribeGlobalSObjectResult entity = (DescribeGlobalSObjectResult)selection.getFirstElement();

        config.setValue(Config.ENTITY, entity.getName());
        // set DAO - CSV file name
        config.setValue(Config.DAO_NAME, csvChooser.getStringValue());
        // set DAO type to CSV
        config.setValue(Config.DAO_TYPE, DataAccessObjectFactory.CSV_READ_TYPE);
        controller.saveConfig();
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

    }

    private boolean checkEntityStatus() {
        IStructuredSelection selection = (IStructuredSelection)lv.getSelection();
        DescribeGlobalSObjectResult entity = (DescribeGlobalSObjectResult)selection.getFirstElement();
        if (entity != null) { return true; }
        return false;

    }
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

        }

        Config config = controller.getConfig();
        //get entity
        IStructuredSelection selection = (IStructuredSelection)lv.getSelection();
        DescribeGlobalSObjectResult entity = (DescribeGlobalSObjectResult)selection.getFirstElement();
        config.setValue(Config.ENTITY, entity.getName());
        // set DAO - CSV file name
        config.setValue(Config.DAO_NAME, fileText.getText());
        // set DAO type to CSV
        config.setValue(Config.DAO_TYPE, DataAccessObjectFactory.CSV_WRITE_TYPE);
        controller.saveConfig();
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

* @since 6.0
*/
public class EntityViewerSorter extends ViewerSorter {
    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {
        DescribeGlobalSObjectResult d1 = (DescribeGlobalSObjectResult)e1;
        DescribeGlobalSObjectResult d2 = (DescribeGlobalSObjectResult)e2;

        // Determine which column and do the appropriate sort
        return collator.compare(d1.getLabel(), d2.getLabel());
    }
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalSObjectResult

     * @param arg0 the element
     * @return String
     */
    @Override
    public String getText(Object arg0) {
        DescribeGlobalSObjectResult res = (DescribeGlobalSObjectResult)arg0;
        return res.getLabel() + " (" + res.getName() + ")";
    }
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.