dm-web-react
Version:
The DM web client with React.
89 lines • 7.76 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { TableBase } from "./tableBase";
import { CreateTableTemplate } from "../../models/database/createTableTemplate";
import { TableInfo } from "../../models/database/tableInfo";
var BondInfoTable = /** @class */ (function (_super) {
__extends(BondInfoTable, _super);
function BondInfoTable() {
var _this = _super.call(this) || this;
_this.columnNames = [];
_this.columnNames.push(_this.getColumnName("bondUniCode"));
_this.columnNames.push(_this.getColumnName("bondCode"));
_this.columnNames.push(_this.getColumnName("bondCodeValue"));
_this.columnNames.push(_this.getColumnName("status"));
_this.columnNames.push(_this.getColumnName("bondShortName"));
_this.columnNames.push(_this.getColumnName("bondShortNameValue"));
_this.columnNames.push(_this.getColumnName("dmBondTypeValue"));
_this.columnNames.push(_this.getColumnName("tenor"));
_this.columnNames.push(_this.getColumnName("tenorValue"));
_this.columnNames.push(_this.getColumnName("ratingList"));
_this.columnNames.push(_this.getColumnName("ratingListValue"));
_this.columnNames.push(_this.getColumnName("maxHistoryRating"));
_this.columnNames.push(_this.getColumnName("maxHistoryRatingValue"));
_this.columnNames.push(_this.getColumnName("csIndex"));
_this.columnNames.push(_this.getColumnName("csIndexValue"));
_this.columnNames.push(_this.getColumnName("bondRatingValue"));
_this.columnNames.push(_this.getColumnName("issRatingValue"));
_this.columnNames.push(_this.getColumnName("impliedRatingValue"));
_this.columnNames.push(_this.getColumnName("pdRating"));
_this.columnNames.push(_this.getColumnName("pdRatingValue"));
_this.columnNames.push(_this.getColumnName("comAttrParValue"));
_this.columnNames.push(_this.getColumnName("listParValue"));
_this.columnNames.push(_this.getColumnName("munInvestValue"));
_this.columnNames.push(_this.getColumnName("marketValue"));
_this.columnNames.push(_this.getColumnName("provinceValue"));
_this.columnNames.push(_this.getColumnName("cityValue"));
_this.columnNames.push(_this.getColumnName("guarParValue"));
_this.columnNames.push(_this.getColumnName("rateTypeParValue"));
_this.columnNames.push(_this.getColumnName("haveRightValue"));
_this.columnNames.push(_this.getColumnName("equityFundValue"));
_this.columnNames.push(_this.getColumnName("macd"));
_this.columnNames.push(_this.getColumnName("macdValue"));
_this.columnNames.push(_this.getColumnName("chinaDevelopment"));
_this.columnNames.push(_this.getColumnName("expirationHoilday"));
_this.columnNames.push(_this.getColumnName("chinaBond"));
_this.columnNames.push(_this.getColumnName("chinaBondValue"));
_this.columnNames.push(_this.getColumnName("instRating"));
_this.columnNames.push(_this.getColumnName("instRatingValue"));
_this.columnNames.push(_this.getColumnName("instInvestmentAdvice"));
_this.columnNames.push(_this.getColumnName("instInvestmentAdviceValue"));
_this.columnNames.push(_this.getColumnName("industry"));
_this.columnNames.push(_this.getColumnName("industryValue"));
return _this;
}
BondInfoTable.prototype.getColumnName = function (value) {
return value.toString();
};
BondInfoTable.prototype.getCreateTableTemplate = function () {
var createSql = "CREATE TABLE " + BondInfoTable.tableName + " (\n " + this.getColumnName("bondUniCode") + " INTEGER PRIMARY KEY,\n " + this.getColumnName("status") + " INTEGER,\n " + this.getColumnName("bondCode") + " VARCHAR(50), \n " + this.getColumnName("bondCodeValue") + " INTEGER, \n " + this.getColumnName("bondShortName") + " VARCHAR(200),\n " + this.getColumnName("bondShortNameValue") + " INTEGER,\n " + this.getColumnName("dmBondTypeValue") + " INTEGER,\n " + this.getColumnName("tenor") + " VARCHAR(50),\n " + this.getColumnName("tenorValue") + " INTEGER,\n " + this.getColumnName("ratingList") + " VARCHAR(100),\n " + this.getColumnName("ratingListValue") + " INTEGER,\n " + this.getColumnName("maxHistoryRating") + " VARCHAR(50),\n " + this.getColumnName("maxHistoryRatingValue") + " INTEGER,\n " + this.getColumnName("csIndex") + " VARCHAR(50),\n " + this.getColumnName("csIndexValue") + " DECIMAL(10,4),\n " + this.getColumnName("bondRatingValue") + " INTEGER,\n " + this.getColumnName("issRatingValue") + " INTEGER,\n " + this.getColumnName("impliedRatingValue") + " INTEGER,\n " + this.getColumnName("pdRating") + " VARCHAR(50),\n " + this.getColumnName("pdRatingValue") + " INTEGER,\n " + this.getColumnName("comAttrParValue") + " INTEGER,\n " + this.getColumnName("listParValue") + " INTEGER,\n " + this.getColumnName("munInvestValue") + " INTEGER,\n " + this.getColumnName("marketValue") + " INTEGER,\n " + this.getColumnName("provinceValue") + " INTEGER,\n " + this.getColumnName("cityValue") + " INTEGER,\n " + this.getColumnName("guarParValue") + " INTEGER,\n " + this.getColumnName("rateTypeParValue") + " DECIMAL(10,4),\n " + this.getColumnName("haveRightValue") + " INTEGER,\n " + this.getColumnName("equityFundValue") + " INTEGER,\n " + this.getColumnName("macd") + " VARCHAR(50),\n " + this.getColumnName("macdValue") + " DECIMAL(10,4),\n " + this.getColumnName("chinaDevelopment") + " INTEGER,\n " + this.getColumnName("expirationHoilday") + " INTEGER,\n " + this.getColumnName("chinaBond") + " VARCHAR(50),\n " + this.getColumnName("chinaBondValue") + " DECIMAL(10,4),\n " + this.getColumnName("instRating") + " VARCHAR(50),\n " + this.getColumnName("instRatingValue") + " INTEGER,\n " + this.getColumnName("instInvestmentAdvice") + " VARCHAR(50),\n " + this.getColumnName("instInvestmentAdviceValue") + " INTEGER,\n " + this.getColumnName("industry") + " VARCHAR(50),\n " + this.getColumnName("industryValue") + " INTEGER\n );\n CREATE INDEX IF NOT EXISTS index_" + BondInfoTable.tableName + "_" + this.getColumnName("tenorValue") + " ON " + BondInfoTable.tableName + "(" + this.getColumnName("tenorValue") + ");";
var result = new CreateTableTemplate();
result.createSql = createSql;
result.tableName = BondInfoTable.tableName;
result.version = BondInfoTable.version;
return result;
};
BondInfoTable.prototype.getTableInfo = function () {
var result = new TableInfo();
result.tableName = BondInfoTable.tableName;
result.columnNames = this.columnNames;
return result;
};
BondInfoTable.version = 3;
BondInfoTable.tableName = "bondInfo";
BondInfoTable.serverTablename = "bond_quote_best_price_broker_filter";
return BondInfoTable;
}(TableBase));
export { BondInfoTable };
//# sourceMappingURL=bondInfoTable.js.map