Media Requirements Class User-Defined Related Data Table

Hierarchy

Constructors

Properties

Columns

constraints: Constraints = ...

Constraints

contents: Contents

Foreign key to Contents

COLUMN_CONTENT_TYPE: "content_type" = 'content_type'

Mime-type of data column name

COLUMN_DATA: "data" = 'data'

Multimedia content column name

DEFAULT_AUTOINCREMENT: boolean = true

Default id autoincrement setting

DEFAULT_PK_NOT_NULL: boolean = true

Default primary key not null setting

RELATION_TYPE: RelationType = RelationType.MEDIA

User-Defined Media Table relation name

Accessors

Methods

  • Get the contents data type from the contents or use the default

    Returns

    contents or default data type

    Parameters

    • defaultType: string

      default data type

    Returns string

  • Create the primary key id column

    Returns

    id column

    Parameters

    • idColumnName: string = UserTableMetadataConstants.DEFAULT_ID_COLUMN_NAME

      id column name

    • autoincrement: boolean = UserTable.DEFAULT_AUTOINCREMENT

      autoincrement id values

    Returns UserCustomColumn

  • Create the primary key id column with a specified column index

    Returns

    id column

    Parameters

    • index: number = 0

      column index

    • idColumnName: string = UserTableMetadataConstants.DEFAULT_ID_COLUMN_NAME

      id column name

    • autoincrement: boolean = UserTable.DEFAULT_AUTOINCREMENT

      autoincrement id values

    Returns UserCustomColumn

  • Create the required table columns with the id column name

    Returns

    user custom columns

    Parameters

    • Optional idColumnName: string

      id column name

    • autoincrement: boolean = UserTable.DEFAULT_AUTOINCREMENT

      autoincrement id values

    Returns UserCustomColumn[]

  • Create the required table columns with the id column name with a specified starting index

    Returns

    user custom columns

    Parameters

    • startingIndex: number = 0

      starting index

    • Optional idColumnName: string

      id column name

    • autoincrement: boolean = UserTable.DEFAULT_AUTOINCREMENT

      autoincrement id values

    Returns UserCustomColumn[]

  • Get the required columns

    Parameters

    • idColumnName: string = UserTableMetadataConstants.DEFAULT_ID_COLUMN_NAME

    Returns string[]

Generated using TypeDoc