示例#1
0
 public ColumnModel createColumn(TableModel tm, string varname)
 {
     ColumnModel cm = columnDAO.columnExists(tm.id, varname);
     if(cm == null) {
         cm = columnDAO.createColumn(tm.id, varname);
     }
     return cm;
 }
 public void Visit(DBInfoNode dbinfoNode)
 {
     if(inSubject) {
         tm = dm.createTable(dbinfoNode);
         if(tm == null) {
             throw new Exception("Error Creating Table: " + dbinfoNode.varnamenode.varname);
         }
     }
     dbinfoNode.variableListNode.Accept(this);
 }
示例#3
0
 private TableModel populateModel(IDataReader reader)
 {
     TableModel t = new TableModel();
     t.id = reader.GetInt64(0);
     t.name = reader.GetString(1);
     return t;
     // assumes that something else higher up will construct all the objects under this object
 }
示例#4
0
 public RowModel createRow(TableModel tm)
 {
     return rowDAO.createRow(tm.id);
 }