Interface SqlParameter.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SqlParameter.Builder,SqlParameter>, SdkBuilder<SqlParameter.Builder,SqlParameter>, SdkPojo
Enclosing class:
SqlParameter

public static interface SqlParameter.Builder extends SdkPojo, CopyableBuilder<SqlParameter.Builder,SqlParameter>
  • Method Details

    • name

      The name of the parameter.

      Parameters:
      name - The name of the parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The value of the parameter.

      Parameters:
      value - The value of the parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The value of the parameter.

      This is a convenience method that creates an instance of the Field.Builder avoiding the need to create one manually via Field.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to value(Field).

      Parameters:
      value - a consumer that will call methods on Field.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • typeHint

      SqlParameter.Builder typeHint(String typeHint)

      A hint that specifies the correct object type for data type mapping. Possible values are as follows:

      • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.

      • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.

      • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.

      • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].

      • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].

      • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

      Parameters:
      typeHint - A hint that specifies the correct object type for data type mapping. Possible values are as follows:

      • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.

      • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.

      • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.

      • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].

      • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].

      • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • typeHint

      SqlParameter.Builder typeHint(TypeHint typeHint)

      A hint that specifies the correct object type for data type mapping. Possible values are as follows:

      • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.

      • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.

      • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.

      • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].

      • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].

      • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

      Parameters:
      typeHint - A hint that specifies the correct object type for data type mapping. Possible values are as follows:

      • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.

      • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.

      • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.

      • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].

      • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].

      • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: