Multidomain MDM
- Multidomain MDM 10.3
- All Products
public static void main(String args[]) { UserTransaction tx = null; try { 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; } EncryptionManager en = EncryptionManager.getInstance(); try { en.init(); //System.out.println("check :" + en.isAPIFieldEncrypted("orcl.informatica.com-MDM_SAMPLE.BASE_OBJECT", "C_PARTY", "FIRST_NAME")); } catch (IOException e) { // TODO Auto-generated catch block System.out.print("Exception \n" + e); } EjbSiperianClient sipClient = (EjbSiperianClient) SiperianClient.newSiperianClient(file); tx.begin(); System.out.println("TXN BEGAN"); PutRequest putRequest1 = new PutRequest(); System.out.println("Put 1"); RecordKey recordKey1 = new RecordKey(); recordKey1.setSourceKey("1000022"); //recordKey1.setRowid("1970"); recordKey1.setSystemName("Admin"); Record record1 = new Record(); record1.setSiperianObjectUid("BASE_OBJECT.C_PARTY"); Field field1 = new Field(); Field field2 = new Field(); field1.setName("FIRST_NAME"); field1.setStringValue("kk4"); field2.setName("LAST_NAME"); field2.setStringValue("kk4"); Field field3 = new Field(); field3.setName("PARTY_TYPE"); field3.setStringValue("Person"); record1.setField(field1); record1.setField(field2); record1.setField(field3); putRequest1.setRecord(record1); putRequest1.setRecordKey(recordKey1); System.out.println("Put 2"); PutResponse putResponse1 = (PutResponse) sipClient.process(putRequest1); System.out.println("Record1 created for PUT - " + putResponse1); tx.commit(); System.out.println("TXN COMMITTED"); } catch (Exception name) { throw new SipRunTimeException("ERROR_CODE"); } finally { System.out.println("Finally"); } } }