import { GspCommonDataType } from "@gsp-bef/gsp-cm-metadata"; import { GSPCommonObject } from "@gsp-bef/gsp-cm-metadata"; import { EntityType } from "../common/Schema"; import { NewEntityType } from "../common/NewSchema"; /** * 适配器类(目前支持CDT、CO) * 功能:将CDT、CO转化为内部Schema中的EntityType */ export declare class Adapter { /** * 将CDT转化为entityType方法 * @param gspCDT 待转化的CDT */ convertCDT(gspCDT: GspCommonDataType): EntityType; /** * 将CO转化为entityType方法 * @param gspCO 待转化的CO */ convertCO(gspCO: GSPCommonObject): EntityType[]; /** * CO转化递归方法 * @param gspCO 待转化gspCO * @param entityTypes 从gspCO提取的所有主从表 */ private adaptCO; /** * @description 将CDT转换为NewEntityType * @param gspCDT 待转换CDT * @returns NewEntityType */ convertCDTOfNewSchema(gspCDT: GspCommonDataType): NewEntityType; /** * @description 将CO转化为newEntityType方法 * @param gspCO 待转化的CO * @returns NewEntityType[] NewEntityType[] */ convertCOOfNewSchema(gspCO: GSPCommonObject): NewEntityType[]; /** * CO转化递归方法 * @param gspCO 待转化gspCO * @param entityTypes 从gspCO提取的所有主从表 */ private adaptCOOfNewSchema; /** * @description (字段类型转换)BE类型转换为Schema类型 * @param type BE类型 * @returns NewDataType */ private convertMDataType; }