Enum Envelope.Operation

    • Enum Constant Detail

      • READ

        public static final Envelope.Operation READ
        The operation that read the current state of a record, most typically during snapshots.
      • CREATE

        public static final Envelope.Operation CREATE
        An operation that resulted in a new record being created in the source.
      • UPDATE

        public static final Envelope.Operation UPDATE
        An operation that resulted in an existing record being updated in the source.
      • DELETE

        public static final Envelope.Operation DELETE
        An operation that resulted in an existing record being removed from or deleted in the source.
      • TRUNCATE

        public static final Envelope.Operation TRUNCATE
        An operation that resulted in an existing table being truncated in the source.
      • MESSAGE

        public static final Envelope.Operation MESSAGE
        An operation that resulted in a generic message
    • Field Detail

      • code

        private final String code
    • Constructor Detail

      • Operation

        private Operation​(String code)
    • Method Detail

      • values

        public static Envelope.Operation[] 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 (Envelope.Operation c : Envelope.Operation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Envelope.Operation 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