public enum BatchUpdateStatus extends Enum<BatchUpdateStatus> implements xyz.zhouxy.plusone.commons.base.IWithIntCode
用于表示批量更新操作的整体执行状态
BatchUpdateResult,
BatchUpdateResult.getStatus()| Enum Constant and Description |
|---|
COMPLETED_WITH_ERRORS
执行完成,部分批次失败
通常出现在 batchUpdate 的静默模式下:遇到执行失败的批次时不中断,继续执行后续批次,最终状态为此值。
|
INTERRUPTED
中断
通常出现在 batchUpdate 的非静默模式下:遇到执行失败的批次时立即中断,不再执行后续批次。
|
SUCCESS
成功
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getDescription()
获取状态的可读描述
|
String |
toString() |
static BatchUpdateStatus |
valueOf(String name)
Returns 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.
|
public static final BatchUpdateStatus SUCCESS
public static final BatchUpdateStatus COMPLETED_WITH_ERRORS
通常出现在 batchUpdate 的静默模式下:遇到执行失败的批次时不中断,继续执行后续批次,最终状态为此值。
BatchUpdateResult.getErrorBatchIndexes()public static final BatchUpdateStatus INTERRUPTED
通常出现在 batchUpdate 的非静默模式下:遇到执行失败的批次时立即中断,不再执行后续批次。
public static BatchUpdateStatus[] values()
for (BatchUpdateStatus c : BatchUpdateStatus.values()) System.out.println(c);
public static BatchUpdateStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
getCode in interface xyz.zhouxy.plusone.commons.base.IWithIntCodepublic String getDescription()
public String toString()
toString in class Enum<BatchUpdateStatus>Copyright © 2026. All rights reserved.