Package com.sforce.soap.partner.sobject

Examples of com.sforce.soap.partner.sobject.SObject


    }

    @SuppressWarnings("unchecked")
    @Test
    public void testNativeQueryWithResultSetMapping() {
        SObject sobject = createSObject("QueryTestEntity__c", "a00000000000000AAA");
        sobject.setField("Name", "QueryTestEntity1");
        sobject.setField("entityType__c", "AAA");
        sobject.setField("number__c", "1.0");
       
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
       
        String nativeQuery = "select id, name, entityType__c, number__c from querytestentity__c";
        String resultSetMapping = "QueryTestMapping"; // See @SqlResultSetMapping 'QueryTestMapping' in QueryTestEntity
View Full Code Here


    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testNamedNativeQueryWithResultSetMapping() {
        SObject sobject = createSObject("QueryTestEntity__c", "a00000000000000AAA");
        sobject.setField("Name", "QueryTestEntity1");
        sobject.setField("entityType__c", "AAA");
        sobject.setField("number__c", "1.0");
       
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
       
        // See @NamedNativeQuery 'QueryNativeWithResultSetMapping' on QueryTestEntity
        String namedNativeQuery = "QueryNativeWithResultSetMapping";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testGregorianCalendarReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("dateTimeGCal__c", "1970-01-01T00:00:00.000Z");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.dateTimeGCal__c from datatypestestentity__c o ");
       
        String query = "select o.dateTimeGCal from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testIntReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("intType__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.intType__c from datatypestestentity__c o ");
       
        String query = "select o.intType from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testIntegerObjectReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("integerObject__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.integerObject__c from datatypestestentity__c o ");
       
        String query = "select o.integerObject from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testLongReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("longType__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.longType__c from datatypestestentity__c o ");
       
        String query = "select o.longType from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testLongObjectReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("longObject__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.longObject__c from datatypestestentity__c o ");
       
        String query = "select o.longObject from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testPicklistValueReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("pickValue__c", "ONE");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.pickValue__c from datatypestestentity__c o ");
       
        String query = "select o.pickValue from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testShortReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("shortType__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.shortType__c from datatypestestentity__c o ");
       
        String query = "select o.shortType from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    @Test
    public void testShortObjectReturnType() {
        SObject sobject = createSObject("DataTypesTestEntity__c");
        sobject.setField("shortObject__c", "1.0");
               
        mockQueryConn.setSObjectsForQueryResult(Lists.newArrayList(sobject));
        mockQueryConn.setExpectedSoqlQuery("select o.shortObject__c from datatypestestentity__c o ");
       
        String query = "select o.shortObject from " + DataTypesTestEntity.class.getSimpleName() + " o";
View Full Code Here

TOP

Related Classes of com.sforce.soap.partner.sobject.SObject

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.