Class BaseColumnAbstract

The 'BaseColumn' class defines the default column for a database or similar data structure. This abstract class provides the ability to manage the names, aliases, defaults, and other properties of a column.

Hierarchy (view full)

Constructors

  • Creates a 'Base Column' object.

    Parameters

    Returns BaseColumn

    • Specifies the name of the column.
    • Specifies the entity to which this column belongs. It must be of type 'BaseEntity'.

Properties

_entity: BaseEntity

Indicates the entity to which this column belongs. Object of type 'BaseEntity'.

_guid: string

Unique identifier of the object (GUID). Uniquely identifies the object.

_name: string

The name of the element, which acts as a unique identifier for the MetaElement.

_type: Function

The generator function of the object. The function used when the object was created.

_valueTypes: any

Defines the value type for the column. This property is used to set the value type for the column.

$alias: string

Indicates the alias for the column. The alias is used as another name for the column.

$key: string

Indicates the unique key for this column.

$value: string

Internal value of the column value.

alias: string

Sets or imports aliases for columns. Aliases are used to transfer data and set low values. Where to use (default = columnName)

  • Bind-command-ajax._execBind(): When transmitting data
  • BaseBind.setValue(row): When setting a low value to an entity
  • getValue(): Used for row
caption: string

Provides a description of the column.

columnName: string

Indicates the name of the column. Same as '_name'.

default: string | number | boolean

Sets the default value for the column.

value: any

Gets or sets the current value of the column.

_NS: string

Indicates the namespace.

'Meta'
_PARAM: []

List of parameters used for the constructor.

['name']
_UNION: []

List of implemented interfaces.

[IElement]

Methods

  • 현재 컬럼 객체의 복제본을 생성합니다. 이 메서드는 추상 메서드로, 서브클래스에서 구현되어야 합니다.

    Returns this

    현재 객체의 복제본입니다.

  • Creates a replica of the current column object. This method is an abstract method that must be implemented in a subclass.

    Returns this

    This is a replica of the current object.

  • Compare the current object with the specified object.

    Parameters

    • target: object

      the object to be compared to.

    Returns boolean

    Returns whether the two objects are the same.

  • Converts the current column object to a serialized object, which replaces the cyclic reference with the value '$ref'.

    Parameters

    • OptionalvOpt: number
    • Optionalowned: object | object[]

    Returns object

    Serialized object.

    • Specifies the import option.
      • '0': Convert to a reference structure (including '_guid' and '$ref')
      • '1': Converting to a redundant structure (including '_guid' and '$ref')
      • '2': Conversion to non-coordinated structure (excluding '_guid' and '$ref')
    • The parent objects that currently own the object. You can receive an object or array of objects.
    const serialized = column.getObject(0);
    
  • Returns the creators of the current object and all the creators of the prototype chain to the array.

    Returns Function[]

    Returns the array of generator functions.

    const types = obj.getTypes();
    console.log(types); // [Function: MetaObject]
  • Verify that the current object is an instance of the specified type (including _UNION)

    Parameters

    • target: string | object

      The type of object to be checked (object or string).

    Returns boolean

    Returns whether it is an instance of the specified type.

  • 직렬화된 guid 타입의 객체를 사용하여 현재 컬럼 객체를 설정합니다. 이 과정에서 현재 객체는 초기화됩니다.

    Parameters

    • oGuid: object

      직렬화된 guid 타입의 객체입니다.

    • Optionalorigin: object

      현재 객체를 설정하는 원본 객체입니다. 기본값은 oGuid입니다.

    Returns any

    column.setObject(serializedObject);
    
  • Set the current column object using the serialized 'guid' type of object. In this process, the current object is initialized.

    Parameters

    • oGuid: object
    • Optionalorigin: object

    Returns any

    • This is a serialized 'guid' type of object.
    • This is the original object that sets the current object. Default is 'oGuid'.
    column.setObject(serializedObject);