Interface ReferenceGenerator
- All Known Implementing Classes:
Counter
public interface ReferenceGenerator
SObject tree Composite API interface for
referenceId
generation. For each object given to the
nextReferenceFor(Object)
method, the implementation should generate reference identifiers.
Reference identifiers need to be unique within one SObject tree request and should start with alphanumeric character.
For example you can provide your ReferenceGenerator
implementation that uses identities within your own
system as references, i.e. primary keys of records in your database.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnextReferenceFor
(Object object) Generates unique, within a request, reference identifier for the given object.
-
Method Details
-
nextReferenceFor
Generates unique, within a request, reference identifier for the given object. Reference identifier must start with an alphanumeric.- Parameters:
object
- object to generate reference identifier for- Returns:
- generated reference identifier
-