Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. Enterprise Java Bean Business Entity Service Calls
  4. Representational State Transfer Business Entity Service Calls
  5. Simple Object Access Protocol Business Entity Service Calls
  6. Services for Cross-reference Records and BVT Calculations
  7. Supporting Corporate Linkage Service
  8. External Calls to Cleanse, Analyze, and Transform Data
  9. Appendix A: Using REST APIs to Add Records
  10. Appendix B: Using REST APIs to Upload Files
  11. 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!