java.lang.Object
org.apache.camel.component.salesforce.api.dto.composite.Counter
All Implemented Interfaces:
ReferenceGenerator

public class Counter extends Object implements ReferenceGenerator
Default ReferenceGenerator implementation that generates a counted sequence of references (ref1, ref2, ...).
  • Constructor Details

    • Counter

      public Counter()
  • Method Details

    • nextReferenceFor

      public String nextReferenceFor(Object object)
      Description copied from interface: ReferenceGenerator
      Generates unique, within a request, reference identifier for the given object. Reference identifier must start with an alphanumeric.
      Specified by:
      nextReferenceFor in interface ReferenceGenerator
      Parameters:
      object - object to generate reference identifier for
      Returns:
      generated reference identifier