Enum StatementResult.ResultType

    • Enum Constant Detail

      • RESULT_SET

        public static final StatementResult.ResultType RESULT_SET
        A result set either returned by a query on Cloud Spanner or a local result set generated by a client side statement.
      • NO_RESULT

        public static final StatementResult.ResultType NO_RESULT
        DDL statements and client side statements that set the state of a connection return no result.
    • Method Detail

      • values

        public static StatementResult.ResultType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StatementResult.ResultType c : StatementResult.ResultType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StatementResult.ResultType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null