Package com.salesforce.dataloader.mapping.SOQLInfo

Examples of com.salesforce.dataloader.mapping.SOQLInfo.SOQLFieldInfo


    public void testParseAggregateFields() throws SOQLParserException {
        SOQLInfo info = new SOQLInfo("SELECT max(fld) xXx FROM account blarney");
        assertEquals("blarney", info.getTableAlias());
        assertEquals("account", info.getTableName());
        assertEquals(1, info.getSelectedFields().size());
        SOQLFieldInfo fieldInfo = info.getSelectedFields().get(0);
        assertEquals("max", fieldInfo.getAggregateFunction());
        assertEquals("xXx", fieldInfo.getAlias());
        assertEquals("fld", fieldInfo.getFieldName());
    }
View Full Code Here


    public void testParseAggregateFields1() throws SOQLParserException {
        SOQLInfo info = new SOQLInfo("select max(fld)  from account blarney");
        assertEquals("blarney", info.getTableAlias());
        assertEquals("account", info.getTableName());
        assertEquals(1, info.getSelectedFields().size());
        SOQLFieldInfo fieldInfo = info.getSelectedFields().get(0);
        assertEquals("max", fieldInfo.getAggregateFunction());
        assertEquals("expr0", fieldInfo.getAlias());
        assertEquals("fld", fieldInfo.getFieldName());
    }
View Full Code Here

        String dao = (String)entry.getValue();
        String sfdc = (String)entry.getKey();
        if (isConstant(sfdc))
            putConstant(dao, sfdc);
        else if (!hasDaoColumns() || hasDaoColumn(dao)) try {
            addSoqlFieldMapping((String)entry.getValue(), new SOQLFieldInfo(sfdc));
        } catch (SOQLParserException e) {
            throw new InvalidMappingException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.salesforce.dataloader.mapping.SOQLInfo.SOQLFieldInfo

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.