UNPKG

@egi/smart-db

Version:

Unified Smart DB Access

1 lines 1.7 kB
import{AbstractModel}from"../models/abstract-model";export class SmartDbCoreTableModel extends AbstractModel{constructor(t){super(),t&&this.assign(t)}static getClassName(){return"SmartDbCoreTableModel"}static getTableName(){return"smart_db_core_table"}static getPrimaryKey(){return"CTB_ID"}static from(t){let e=null;return t&&(e=new SmartDbCoreTableModel,t instanceof SmartDbCoreTableModel?Object.assign(e,t):e.assign(t)),e}clone(){return SmartDbCoreTableModel.from(this)}getClassName(){return"SmartDbCoreTableModel"}getTableName(){return"smart_db_core_table"}getPrimaryKey(){return"CTB_ID"}getAttributeMap(){return SmartDbCoreTableModel.attributeMap}get id(){return this._id}set id(t){this._id=t}get ctb_id(){return this._id}set ctb_id(t){this._id=t}get CTB_ID(){return this._id}set CTB_ID(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get ctb_name(){return this._name}set ctb_name(t){this._name=t}get CTB_NAME(){return this._name}set CTB_NAME(t){this._name=t}get type(){return this._type}set type(t){this._type=t}get ctb_type(){return this._type}set ctb_type(t){this._type=t}get CTB_TYPE(){return this._type}set CTB_TYPE(t){this._type=t}}SmartDbCoreTableModel.attributeMap={id:{alias:"CTB_ID",typeScriptStyle:!0,type:"number",attribute:"_id"},ctb_id:{type:"number",attribute:"_id"},CTB_ID:{physical:!0,type:"number",attribute:"_id"},name:{alias:"CTB_NAME",typeScriptStyle:!0,type:"string",attribute:"_name"},ctb_name:{type:"string",attribute:"_name"},CTB_NAME:{physical:!0,type:"string",attribute:"_name"},type:{alias:"CTB_TYPE",typeScriptStyle:!0,type:"string",attribute:"_type"},ctb_type:{type:"string",attribute:"_type"},CTB_TYPE:{physical:!0,type:"string",attribute:"_type"}};