java.lang.Object
com.daml.ledger.javaapi.data.codegen.ByKey
All Implemented Interfaces:
Exercises<ExerciseByKeyCommand>
Direct Known Subclasses:
ByKey.ToInterface

public abstract class ByKey extends Object implements Exercises<ExerciseByKeyCommand>
Parent of all generated ByKey classes within templates and interfaces.
  • Field Details

    • contractKey

      protected final Value contractKey
  • Constructor Details

    • ByKey

      protected ByKey(Value contractKey)
  • Method Details

    • makeExerciseCmd

      public <A, R> Update<Exercised<R>> makeExerciseCmd(Choice<?,? super A,R> choice, A choiceArgument)
      INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly. Applications should call choice-specific exercise* methods generated from their Daml code instead.
      Specified by:
      makeExerciseCmd in interface Exercises<ExerciseByKeyCommand>
    • getCompanion

      protected abstract ContractTypeCompanion<?,?,?,?> getCompanion()
      The origin of the choice, not the template relevant to contractKey.
    • toPrefetchKey

      public PrefetchContractKey toPrefetchKey()
      The key of this contract in the format it can be used for prefetching