Skip to content

Column

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/models/dashboard/data-source-schema/column.model.ts (line 2)

Part of: Pams

Column models a column in a dashboard data-source schema. It supports copying a single column with clone() and copying column collections with cloneList().

Methods

MethodSignatureReturns
cloneListcloneList(model: Column[])void
cloneclone(model: Column)void

Properties

PropertyType
Idstring
Namestring
ColumnIdstring
ColumnFullNamestring
IsPrimaryboolean
IsForeignboolean
IsIdentityboolean
AllowNullboolean
IsComputedboolean
ColumnDataTypeColumnDataType
IsSelectedboolean

Where it refuses work

  • Column stops the work with an early return when model == null || model.length == 0.
  • Column stops the work with an early return when model == null.

Diagram

mermaid
graph LR
  Schema[Data-source schema] --> Columns[Column list]
  Columns --> Column[Column]
  Column --> Clone[clone()]
  Columns --> CloneList[cloneList()]

Usage

ts
import { Column } from './models/dashboard/data-source-schema/column.model';

const column = new Column();

const copiedColumn = column.clone();

const columns: Column[] = [column];
const copiedColumns = Column.cloneList(columns);

AI Coding Instructions

  • Use clone() when a caller needs an independent Column instance.
  • Use Column.cloneList() when copying schema column arrays.
  • Keep clone behavior aligned with the fields added to Column.
  • Avoid sharing mutable column instances between schema editing flows.

Relationships

  • IMPORTS → ColumnDataType

Used by

3 references from 3 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (3)

  • DataSourceServicePams/Web/Pams.Web/Client/app/services/dashboard/data-source.service.ts:1
  • TablePams/Web/Pams.Web/Client/app/models/dashboard/data-source-schema/table.model.ts:4
  • ViewPams/Web/Pams.Web/Client/app/models/dashboard/data-source-schema/view.model.ts:4

Was this page helpful?

Download as PDF