Multidomain MDM
- Multidomain MDM 10.5
- All Products
import java.io.File; import java.util.ArrayList; import java.util.List; import com.siperian.sif.client.SiperianClient; import com.siperian.sif.client.SoapSiperianClient; import com.siperian.sif.message.Parameter; import com.siperian.sif.message.Record; import com.siperian.sif.message.mrm.SearchQueryRequest; import com.siperian.sif.message.mrm.SearchQueryResponse; public class SearchQuery { public static void main(String[] args) { File file = new File("E:\\siperian-client.properties"); System.out.println("Reading File:" + file.getAbsolutePath()); if (!file.exists()) { System.out.println("***ERROR -> Properties File does not exist in location - "); return; } SoapSiperianClient sipClient = (SoapSiperianClient) SiperianClient.newSiperianClient(file); SearchQueryRequest request = new SearchQueryRequest(); request.setRecordsToReturn(5); request.setSiperianObjectUid("BASE_OBJECT.C_PARTY"); request.setFilterCriteria("C_PARTY.FIRST_NAME =?"); ArrayList params = new ArrayList(2); params.add(new Parameter("3333")); request.setFilterParameters(params); SearchQueryResponse response = (SearchQueryResponse) sipClient.process(request); List <Record> records = response.getRecords(); for (Record record : records) { System.out.println("Period Start Date: " + record.getField("PERIOD_START_DATE").getDateValue().toString()); System.out.println("Period End Date: " + record.getField("PERIOD_END_DATE").getDateValue().toString()); } } }