- All Implemented Interfaces:
Serializable,Comparable<SkipPatternEnum>,Constable
sqlMacroにおいて、スキップのパターンをパラメータで指定したり、内部処理でもパターンを明確化したいことがあるので、 Enumとして定義しておく。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArrayListやObject[] == null、またはサイズが0の場合にスキップ。全ての値がnullの場合にスキップ。全ての値がnullまたはStringの空文字の場合にスキップ。 -
Method Summary
Modifier and TypeMethodDescriptionstatic SkipPatternEnumReturns the enum constant of this class with the specified name.static SkipPatternEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIST_NONE
ArrayListやObject[] == null、またはサイズが0の場合にスキップ。 -
VAL_ALL_NULL
全ての値がnullの場合にスキップ。 VAL_ALL_NULL_OR_EMPTYとは違い、Stringの空文字の場合はスキップしたくない場合に使用。 -
VAL_ALL_NULL_OR_EMPTY
全ての値がnullまたはStringの空文字の場合にスキップ。 これを指定した場合は、VAL_ALL_NULLを包含しているので、VAL_ALL_NULLを一緒に指定する必要はない。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-