Interface ExecuteBatchDmlRequest.StatementOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsParamTypes​(String key)
      It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
      com.google.protobuf.Struct getParams()
      Parameter names and values that bind to placeholders in the DML string.
      com.google.protobuf.StructOrBuilder getParamsOrBuilder()
      Parameter names and values that bind to placeholders in the DML string.
      Map<String,​Type> getParamTypes()
      Deprecated.
      int getParamTypesCount()
      It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
      Map<String,​Type> getParamTypesMap()
      It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
      Type getParamTypesOrDefault​(String key, Type defaultValue)
      It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
      Type getParamTypesOrThrow​(String key)
      It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
      String getSql()
      Required.
      com.google.protobuf.ByteString getSqlBytes()
      Required.
      boolean hasParams()
      Parameter names and values that bind to placeholders in the DML string.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getSql

        String getSql()
         Required. The DML string.
         
        string sql = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The sql.
      • getSqlBytes

        com.google.protobuf.ByteString getSqlBytes()
         Required. The DML string.
         
        string sql = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for sql.
      • hasParams

        boolean hasParams()
         Parameter names and values that bind to placeholders in the DML string.
        
         A parameter placeholder consists of the `@` character followed by the
         parameter name (for example, `@firstName`). Parameter names can contain
         letters, numbers, and underscores.
        
         Parameters can appear anywhere that a literal value is expected.  The
         same parameter name can be used more than once, for example:
        
         `"WHERE id > @msg_id AND id < @msg_id + 100"`
        
         It is an error to execute a SQL statement with unbound parameters.
         
        .google.protobuf.Struct params = 2;
        Returns:
        Whether the params field is set.
      • getParams

        com.google.protobuf.Struct getParams()
         Parameter names and values that bind to placeholders in the DML string.
        
         A parameter placeholder consists of the `@` character followed by the
         parameter name (for example, `@firstName`). Parameter names can contain
         letters, numbers, and underscores.
        
         Parameters can appear anywhere that a literal value is expected.  The
         same parameter name can be used more than once, for example:
        
         `"WHERE id > @msg_id AND id < @msg_id + 100"`
        
         It is an error to execute a SQL statement with unbound parameters.
         
        .google.protobuf.Struct params = 2;
        Returns:
        The params.
      • getParamsOrBuilder

        com.google.protobuf.StructOrBuilder getParamsOrBuilder()
         Parameter names and values that bind to placeholders in the DML string.
        
         A parameter placeholder consists of the `@` character followed by the
         parameter name (for example, `@firstName`). Parameter names can contain
         letters, numbers, and underscores.
        
         Parameters can appear anywhere that a literal value is expected.  The
         same parameter name can be used more than once, for example:
        
         `"WHERE id > @msg_id AND id < @msg_id + 100"`
        
         It is an error to execute a SQL statement with unbound parameters.
         
        .google.protobuf.Struct params = 2;
      • getParamTypesCount

        int getParamTypesCount()
         It is not always possible for Cloud Spanner to infer the right SQL type
         from a JSON value.  For example, values of type `BYTES` and values
         of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
        
         In these cases, `param_types` can be used to specify the exact
         SQL type for some or all of the SQL statement parameters. See the
         definition of [Type][google.spanner.v1.Type] for more information
         about SQL types.
         
        map<string, .google.spanner.v1.Type> param_types = 3;
      • containsParamTypes

        boolean containsParamTypes​(String key)
         It is not always possible for Cloud Spanner to infer the right SQL type
         from a JSON value.  For example, values of type `BYTES` and values
         of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
        
         In these cases, `param_types` can be used to specify the exact
         SQL type for some or all of the SQL statement parameters. See the
         definition of [Type][google.spanner.v1.Type] for more information
         about SQL types.
         
        map<string, .google.spanner.v1.Type> param_types = 3;
      • getParamTypesMap

        Map<String,​Type> getParamTypesMap()
         It is not always possible for Cloud Spanner to infer the right SQL type
         from a JSON value.  For example, values of type `BYTES` and values
         of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
        
         In these cases, `param_types` can be used to specify the exact
         SQL type for some or all of the SQL statement parameters. See the
         definition of [Type][google.spanner.v1.Type] for more information
         about SQL types.
         
        map<string, .google.spanner.v1.Type> param_types = 3;
      • getParamTypesOrDefault

        Type getParamTypesOrDefault​(String key,
                                    Type defaultValue)
         It is not always possible for Cloud Spanner to infer the right SQL type
         from a JSON value.  For example, values of type `BYTES` and values
         of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
        
         In these cases, `param_types` can be used to specify the exact
         SQL type for some or all of the SQL statement parameters. See the
         definition of [Type][google.spanner.v1.Type] for more information
         about SQL types.
         
        map<string, .google.spanner.v1.Type> param_types = 3;
      • getParamTypesOrThrow

        Type getParamTypesOrThrow​(String key)
         It is not always possible for Cloud Spanner to infer the right SQL type
         from a JSON value.  For example, values of type `BYTES` and values
         of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
        
         In these cases, `param_types` can be used to specify the exact
         SQL type for some or all of the SQL statement parameters. See the
         definition of [Type][google.spanner.v1.Type] for more information
         about SQL types.
         
        map<string, .google.spanner.v1.Type> param_types = 3;