Search in sources :

Example 11 with RecordTypeDesc

use of org.talend.components.netsuite.client.model.RecordTypeDesc in project components by Talend.

the class NetSuiteClientServiceIT method testRetrieveAllCustomizations.

@Test
public void testRetrieveAllCustomizations() throws Exception {
    NetSuiteClientService<?> connection = webServiceTestFixture.getClientService();
    connection.login();
    StopWatch stopWatch = new StopWatch();
    stopWatch.start();
    for (RecordTypeDesc recordType : Arrays.asList(RecordTypeEnum.OPPORTUNITY, RecordTypeEnum.CALENDAR_EVENT)) {
        TypeDesc typeDesc = connection.getMetaDataSource().getTypeInfo(recordType.getTypeName());
        logger.debug("Record type desc: {}", typeDesc.getTypeName());
    }
    stopWatch.stop();
}
Also used : SearchRecordTypeDesc(org.talend.components.netsuite.client.model.SearchRecordTypeDesc) RecordTypeDesc(org.talend.components.netsuite.client.model.RecordTypeDesc) SearchRecordTypeDesc(org.talend.components.netsuite.client.model.SearchRecordTypeDesc) RecordTypeDesc(org.talend.components.netsuite.client.model.RecordTypeDesc) TypeDesc(org.talend.components.netsuite.client.model.TypeDesc) StopWatch(org.apache.commons.lang3.time.StopWatch) Test(org.junit.Test)

Aggregations

RecordTypeDesc (org.talend.components.netsuite.client.model.RecordTypeDesc)11 CustomRecordTypeInfo (org.talend.components.netsuite.client.model.CustomRecordTypeInfo)7 SearchRecordTypeDesc (org.talend.components.netsuite.client.model.SearchRecordTypeDesc)7 NsRef (org.talend.components.netsuite.client.NsRef)4 RecordTypeInfo (org.talend.components.netsuite.client.model.RecordTypeInfo)4 ArrayList (java.util.ArrayList)3 HashSet (java.util.HashSet)3 Test (org.junit.Test)3 NamedThing (org.talend.daikon.NamedThing)2 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 List (java.util.List)1 Schema (org.apache.avro.Schema)1 StopWatch (org.apache.commons.lang3.time.StopWatch)1 BasicRecordType (org.talend.components.netsuite.client.model.BasicRecordType)1 CustomFieldDesc (org.talend.components.netsuite.client.model.CustomFieldDesc)1 FieldDesc (org.talend.components.netsuite.client.model.FieldDesc)1 TypeDesc (org.talend.components.netsuite.client.model.TypeDesc)1 BeanInfo (org.talend.components.netsuite.client.model.beans.BeanInfo)1 SimpleNamedThing (org.talend.daikon.SimpleNamedThing)1