Package xyz.zhouxy.jdbc
Enum 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()获取状态的可读描述toString()static BatchUpdateStatusReturns the enum constant of this type with the specified name.static BatchUpdateStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface xyz.zhouxy.plusone.commons.base.IWithIntCode
isCodeEquals, isSameCodeAs, isSameCodeAs, isSameCodeAs
-
Enum Constant Details
-
SUCCESS
成功 -
COMPLETED_WITH_ERRORS
执行完成,部分批次失败通常出现在 batchUpdate 的静默模式下:遇到执行失败的批次时不中断,继续执行后续批次,最终状态为此值。
- See Also:
-
INTERRUPTED
中断通常出现在 batchUpdate 的非静默模式下:遇到执行失败的批次时立即中断,不再执行后续批次。
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
public int getCode()- Specified by:
getCodein interfacexyz.zhouxy.plusone.commons.base.IWithIntCode
-
getDescription
获取状态的可读描述- Returns:
- 描述信息
-
toString
- Overrides:
toStringin classEnum<BatchUpdateStatus>
-