Enum Outcome

  • All Implemented Interfaces:
    Serializable, Comparable<Outcome>

    public enum Outcome
    extends Enum<Outcome>

    Identifies the outcome of the previous transaction (in the TransactionInfoRequest response).

    Specification: retail.

    • Enum Constant Detail

      • SUCCESSFUL

        public static final Outcome SUCCESSFUL

        If transaction was successful. This does not necessarily mean the transaction is committed, as for example Reservation does not need a commit. But if there was a rollback, the transaction must NOT be indicated as Successful, but as Failed.

        Specification: retail.

      • FAILED

        public static final Outcome FAILED

        Indicates that the transaction failed / was aborted or rollbacked.

        Specification: retail.

      • PARTIAL

        public static final Outcome PARTIAL

        Indicates that the transaction has only partially succeeded (partial commit).

        Specification: retail.

    • Method Detail

      • values

        public static Outcome[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Outcome c : Outcome.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Outcome valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null