def getAllKTables(self):
     
     ktables = ktableDao.getList() 
     for ktable in ktables:
         kcolumns = kcolumnDao.getListByKTable(ktable)
         ktable.columns = kcolumns
     
     return ktables 
 def getKColumnsByKTable(self, ktable):
     return kcolumnDao.getListByKTable(ktable)