Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parameter

A Parameter object represents a parameter in an ABL procedure / function / method, it's properties and information about it.

Hierarchy

  • Parameter

Implements

Index

Constructors

constructor

  • Creates a parameter for a Progress procedure.

    Parameters

    • direction: Direction

      The direction of the parameter (INPUT / OUTPUT / INPUT-OUTPUT)

    • Optional type: DataType

      The data type of the parameter

    • Optional value: any

      The value of the parameter

    • Optional json: boolean

      Specifies whether the value of the parameter is a JSON object or not

    • Optional sql: boolean

      Specifies whether the value of the parameter is an SQL object or not

    • Optional schema: Schema

      The schema for the parameter, if it's datatype is TABLE / DATASET and it's direction is INPUT / INPUT-OUTPUT

    Returns Parameter

Accessors

direction

  • Returns the direction of the parameter.

    Returns Direction

json

  • get json(): boolean
  • Returns whether the parameter's value is a JSON object or not.

    Returns boolean

schema

  • Returns the schema of the parameter.

    Returns Schema

sql

  • get sql(): boolean
  • Returns whether the parameter's value is an SQL object or not.

    Returns boolean

type

  • Returns the datatype of the parameter.

    Returns DataType

value

  • get value(): any
  • Returns the value of the parameter.

    Returns any

Methods

build

Static check

  • Checks if a parameter fulfills some conditions so that it can be considered valid

    Parameters

    Returns void

Static inout

  • Creates an INPUT-OUTPUT parameter.

    Parameters

    • dtype: DataType

      The datatype of the parameter

    • Optional value: any

      The value of the parameter

    • Optional schema: Schema

      The schema of the parameter, if it's datatype is TABLE / DATASET and it's direction is INPUT / INPUT-OUTPUT

    • Optional json: boolean

      Specifies whether the value of the parameter is a JSON object or not

    • Optional sql: boolean

      Specifies whether the value of the parameter is an SQL object or not

    Returns Parameter

Static input

  • Creates an INPUT parameter.

    Parameters

    • value: any

      The value of the parameter

    • Optional dtype: DataType

      The data type of the parameter

    • Optional schema: Schema

      The schema of the parameter, if it's datatype is TABLE / DATASET and it's direction is INPUT / INPUT-OUTPUT

    Returns Parameter

Static output

  • Creates an OUTPUT parameter.

    Parameters

    • dtype: DataType

      The datatype of the parameter

    • Optional json: boolean

      Specifies whether the value of the parameter is a JSON object or not

    • Optional sql: boolean

      Specifies whether the value of the parameter is a JSON object or not

    Returns Parameter

Static parse

  • Builds a Progress procedure parameter out of a plain JSON object

    Parameters

    • parameter: Object

    Returns Parameter

Static xmlData

  • Builds an XML Document out of a database table and a data object, and returns it as a string that can be further used to populate a Progress table in the database

    Parameters

    • data: any

      The data object / Array with objects

    • schema: ITableSchema

      The Table schema

    Returns string

Static xmlSchema

  • Builds an XML Schema out of a database table, and returns it as a string that can be further used to build a Progress table in the database

    Parameters

    Returns string