Examples of describeSObject()


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

            }
            DescribeSObjectResult dr = null;
            IProject project = file.getProject();
            Connection connection = getConnectionFactory().getConnection(project);
            // get describe object w/o client id
            dr = connection.describeSObject(crRoot.getText(), false);

            Field[] fields = dr.getFields();
            TreeItem childFields = createTreeItemChild(crRoot, "Fields", true, 0, true, childFieldsNode);

            SubProgressMonitor spm = new SubProgressMonitor(monitor, 1);
View Full Code Here

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

        if (!describeCache.containsKey(componentType.toLowerCase())) {
            IProject project = file.getProject();
            Connection connection = getConnectionFactory().getConnection(project);

            // get describe object w/o client id
            DescribeSObjectResult describeSObject = connection.describeSObject(componentType, false);
            describeCache.put(componentType.toLowerCase(), describeSObject);
        }
        return describeCache.get(componentType.toLowerCase());
    }
View Full Code Here

Examples of com.sforce.soap.partner.PartnerConnection.describeSObject()

        PartnerConnection conn = getPartnerConnection();
        String ns = getNamespaceFromCtx();
        if (ns != null && ns != "") {
            sObject = ns + NAME_SEPARATOR + sObject;
        }
        DescribeSObjectResult describeSObjectResult = conn.describeSObject(sObject);
        com.sforce.soap.partner.Field[] fields = describeSObjectResult.getFields();
        Assert.assertEquals(fields.length, expectedFieldNames.length, "Unexpected number of fields on object " + sObject);
        ArrayList<String> fieldNames = new ArrayList<String>();
        for (com.sforce.soap.partner.Field field : fields) {
            if (field.isCustom() && ns != null && ns != "") {
View Full Code Here

Examples of com.sforce.soap.partner.PartnerConnection.describeSObject()

     * in the underlying salesforce custom object.
     */
    private void verifyFieldPrecisions(String sObject,
            Map<String, PrecisionScale> expectedFieldMetadata) throws Exception {
        PartnerConnection conn = getPartnerConnection();
        DescribeSObjectResult describeSObjectResult = conn.describeSObject(sObject);
        com.sforce.soap.partner.Field[] fields = describeSObjectResult.getFields();

        for (int i = 0; i < fields.length; i++) {
            if (expectedFieldMetadata.containsKey(fields[i].getName())) {
                Assert.assertEquals(
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.