Package com.sforce.soap.partner

Examples of com.sforce.soap.partner.DescribeSObjectResult


        assertEquals(dsrs.get(0).getName(), "Object_Name_In__c", "Unexpected DescribeSObjectResult after object name filter");
    }
   
    @Test
    public void testBasicExcludeFilter() {
        DescribeSObjectResult dsrIn = new DescribeSObjectResult();
        dsrIn.setName("Object_Name_In__c");
       
        DescribeSObjectResult dsrOut = new DescribeSObjectResult();
        dsrOut.setName("Object_Name_Out__c");
       
        List<DescribeSObjectResult> dsrs =
            new ObjectNameFilter(false, "Object_Name_Out__c").filter(Lists.newArrayList(dsrIn, dsrOut));
       
        assertNotNull(dsrs, "An object name filter of a non-null value should be non-null");
View Full Code Here


        return "";
    }
   
    @Override
    public String toString(Object o, String format) {
        DescribeSObjectResult dsr = (DescribeSObjectResult) o;
        if ("classAnnotation".equals(format)) {
            return renderClassAnnotation(dsr);
        } else if ("className".equals(format)) {
            return ForceJPAClassGeneratorUtils.renderJavaName(dsr, false /*firstCharLowerCase*/);
        } else if ("superClassName".equals(format)) {
View Full Code Here

    }
  }

  private DescribeSObjectResult describeSObject(String entity)
      throws ConnectionException {
    DescribeSObjectResult result = entityDescribes.get(entity);
    if (result == null) {
      result = conn.describeSObject(entity);
      if (result != null) {
        entityDescribes.put(result.getName(), result);
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.sforce.soap.partner.DescribeSObjectResult

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.