Enum BatchUpdateStatus

java.lang.Object
java.lang.Enum<BatchUpdateStatus>
xyz.zhouxy.jdbc.BatchUpdateStatus
All Implemented Interfaces:
Serializable, Comparable<BatchUpdateStatus>, java.lang.constant.Constable, xyz.zhouxy.plusone.commons.base.IWithIntCode

public enum BatchUpdateStatus extends Enum<BatchUpdateStatus> implements xyz.zhouxy.plusone.commons.base.IWithIntCode
批量更新状态

用于表示批量更新操作的整体执行状态

Author:
ZhouXY
See Also:
  • Enum Constant Details

    • SUCCESS

      public static final BatchUpdateStatus SUCCESS
      成功
    • COMPLETED_WITH_ERRORS

      public static final BatchUpdateStatus COMPLETED_WITH_ERRORS
      执行完成,部分批次失败

      通常出现在 batchUpdate 的静默模式下:遇到执行失败的批次时不中断,继续执行后续批次,最终状态为此值。

      See Also:
    • INTERRUPTED

      public static final BatchUpdateStatus INTERRUPTED
      中断

      通常出现在 batchUpdate 的非静默模式下:遇到执行失败的批次时立即中断,不再执行后续批次。

  • Method Details

    • values

      public static BatchUpdateStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BatchUpdateStatus 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
    • getCode

      public int getCode()
      Specified by:
      getCode in interface xyz.zhouxy.plusone.commons.base.IWithIntCode
    • getDescription

      public String getDescription()
      获取状态的可读描述
      Returns:
      描述信息
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BatchUpdateStatus>