Skip to content

/AWS1/CL_RDDSQLPARAMETER

A parameter used in a SQL statement.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_name TYPE /AWS1/RDDPARAMETERNAME /AWS1/RDDPARAMETERNAME

The name of the parameter.

io_value TYPE REF TO /AWS1/CL_RDDFIELD /AWS1/CL_RDDFIELD

The value of the parameter.

iv_typehint TYPE /AWS1/RDDTYPEHINT /AWS1/RDDTYPEHINT

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.


Queryable Attributes

name

The name of the parameter.

Accessible with the following methods

Method Description
GET_NAME() Getter for NAME, with configurable default
ASK_NAME() Getter for NAME w/ exceptions if field has no value
HAS_NAME() Determine if NAME has a value

value

The value of the parameter.

Accessible with the following methods

Method Description
GET_VALUE() Getter for VALUE

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.

Accessible with the following methods

Method Description
GET_TYPEHINT() Getter for TYPEHINT, with configurable default
ASK_TYPEHINT() Getter for TYPEHINT w/ exceptions if field has no value
HAS_TYPEHINT() Determine if TYPEHINT has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_SQLPARAMETERSLIST

TYPES TT_SQLPARAMETERSLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_RDDSQLPARAMETER WITH DEFAULT KEY
.

TT_SQLPARAMETERSETS

TYPES TT_SQLPARAMETERSETS TYPE STANDARD TABLE OF /AWS1/CL_RDDSQLPARAMETER=>TT_SQLPARAMETERSLIST WITH DEFAULT KEY
.