Enum Class SkipPatternEnum

java.lang.Object
java.lang.Enum<SkipPatternEnum>
jp.ecuacion.util.jpa.dao.sqlmacro.SkipPatternEnum
All Implemented Interfaces:
Serializable, Comparable<SkipPatternEnum>, Constable

public enum SkipPatternEnum extends Enum<SkipPatternEnum>
sqlMacroにおいて、スキップのパターンをパラメータで指定したり、内部処理でもパターンを明確化したいことがあるので、 Enumとして定義しておく。
  • Enum Constant Details

    • LIST_NONE

      public static final SkipPatternEnum LIST_NONE
      ArrayListやObject[] == null、またはサイズが0の場合にスキップ。
    • VAL_ALL_NULL

      public static final SkipPatternEnum VAL_ALL_NULL
      全ての値がnullの場合にスキップ。 VAL_ALL_NULL_OR_EMPTYとは違い、Stringの空文字の場合はスキップしたくない場合に使用。
    • VAL_ALL_NULL_OR_EMPTY

      public static final SkipPatternEnum VAL_ALL_NULL_OR_EMPTY
      全ての値がnullまたはStringの空文字の場合にスキップ。 これを指定した場合は、VAL_ALL_NULLを包含しているので、VAL_ALL_NULLを一緒に指定する必要はない。
  • Method Details

    • values

      public static SkipPatternEnum[] 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

      public static SkipPatternEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null