Enum Class SqlExpectedResultType

java.lang.Object
java.lang.Enum<SqlExpectedResultType>
com.hazelcast.sql.SqlExpectedResultType
All Implemented Interfaces:
Serializable, Comparable<SqlExpectedResultType>, Constable

public enum SqlExpectedResultType extends Enum<SqlExpectedResultType>
The expected statement result type.
Since:
4.2
  • Enum Constant Details

    • ANY

      public static final SqlExpectedResultType ANY
      The statement may produce either rows or an update count.
    • ROWS

      public static final SqlExpectedResultType ROWS
      The statement must produce rows. An exception is thrown is the statement produces an update count.
    • UPDATE_COUNT

      public static final SqlExpectedResultType UPDATE_COUNT
      The statement must produce an update count. An exception is thrown is the statement produces rows.
  • Method Details

    • values

      public static SqlExpectedResultType[] 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 SqlExpectedResultType 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
    • getId

      public byte getId()
    • fromId

      public static SqlExpectedResultType fromId(byte id)