public static ViewColumn createViewColumn(View viewModel, TObjectName column, int index) { if (ModelBindingManager.getViewModel(column) is ViewColumn) { return((ViewColumn)ModelBindingManager.getViewModel(column)); } ViewColumn columnModel = new ViewColumn(viewModel, column, index); ModelBindingManager.bindViewModel(column, columnModel); return(columnModel); }
public static View createView(TCreateViewSqlStatement viewStmt) { if (ModelBindingManager.getViewModel(viewStmt) is View) { return((View)ModelBindingManager.getViewModel(viewStmt)); } View viewModel = new View(viewStmt); ModelBindingManager.bindViewModel(viewStmt, viewModel); return(viewModel); }