Annotation Type Transaction


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Transaction
    Method level annotation indicating the method to be a callable transaction function.

    These functions are called in client SDKs by the combination of

     [contractname]:[transactioname] 
    Unless specified otherwise, the contract name is the class name (without package) and the transaction name is the method name.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String name
      The name of the callable transaction if it should be different to the method name.
      boolean submit
      TRUE indicates that this function is intended to be called with the 'submit' semantics FALSE indicates that this is intended to be called with the evaluate semantics
    • Element Detail

      • submit

        boolean submit
        TRUE indicates that this function is intended to be called with the 'submit' semantics FALSE indicates that this is intended to be called with the evaluate semantics
        Returns:
        boolean, default is true
        Default:
        true
      • name

        java.lang.String name
        The name of the callable transaction if it should be different to the method name.
        Returns:
        the transaction name
        Default:
        ""