Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. EJB Business Entity Service Calls
  4. REST Business Entity Service Calls
  5. REST APIs for Data Director
  6. SOAP Business Entity Service Calls
  7. Cross-reference Records and BVT Calculations Services
  8. Supporting Corporate Linkage Service
  9. External Calls to Cleanse, Analyze, and Transform Data
  10. Appendix A: Using REST APIs to Add Records
  11. Appendix B: Using REST APIs to Upload Files
  12. Appendix C: Using REST APIs to Manage Reports

Identifying a Root Record

Identifying a Root Record

You can use one of the following approaches to identify a root record:
  • rowid. The value in the ROWID_OBJECT column of the record.
  • systemName and sourceKey. The systemName is the name of the system to which the record belongs. The sourceKey is the value in the PKEY_SRC_OBJECT column of the record.
  • Global Business Identifier (GBID) of an object. A GBID can be a compound value, in which case you must pass all the values.
    The GBID approach works only with the ReadBE service.
The following sample code uses the systemName and sourceKey to identify a record:
String systemName = "SFA"; Properties config = new Properties(); config.put(SiperianClient.SIPERIANCLIENT_PROTOCOL, EjbSiperianClient.PROTOCOL_NAME); CompositeServiceClient client = CompositeServiceClient.newCompositeServiceClient(config); CallContext callContext = new CallContext(orsId, user, pass); helperContext = client.getHelperContext(callContext); DataFactory dataFactory = helperContext.getDataFactory(); //String personRowId = "1097"; String pkeySrcObject = "CST1379"; //Set custom key pkey pkey = (Key) dataFactory.create(Key.class); pkey.setSystemName(systemName); pkey.setSourceKey(val); writePerson.setKey(pkey);

0 COMMENTS

We’d like to hear from you!