Enum Class PLJavaBasedLanguage.SRFNext.Result

java.lang.Object
java.lang.Enum<PLJavaBasedLanguage.SRFNext.Result>
org.postgresql.pljava.PLJavaBasedLanguage.SRFNext.Result
All Implemented Interfaces:
Serializable, Comparable<PLJavaBasedLanguage.SRFNext.Result>, Constable
Enclosing interface:
PLJavaBasedLanguage.SRFNext

public static enum PLJavaBasedLanguage.SRFNext.Result extends Enum<PLJavaBasedLanguage.SRFNext.Result>
Used to indicate the state of the result sequence on return from a single call in the ValuePerCall protocol.
  • Enum Constant Details

    • SINGLE

      public static final PLJavaBasedLanguage.SRFNext.Result SINGLE
      There is exactly one row and this call has returned it.

      None of the rest of the set-returning protocol will be involved, and close() will not be called.

    • MULTIPLE

      public static final PLJavaBasedLanguage.SRFNext.Result MULTIPLE
      This call has returned one of possibly multiple rows, and another call should be made to retrieve the next row if any.
    • END

      public static final PLJavaBasedLanguage.SRFNext.Result END
      This call has no row to return and the result sequence is complete.
  • Method Details

    • values

      public static PLJavaBasedLanguage.SRFNext.Result[] 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 PLJavaBasedLanguage.SRFNext.Result 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