Exemple #1
0
        public override void process(DataRow[] drTables, DataSet dsTableColumns, DataSet dsTablePrimaryKeys)
        {
            base.process(drTables, dsTableColumns, dsTablePrimaryKeys);
            ThreadPool.QueueUserWorkItem(o =>
            {
                foreach (TableInfo table in tableInfos)
                {
                    string tableName = genHelper.GetProperty(table.TableName);

                    string tempPo = GenPo(table);
                    DisplayJavaCode(tempPo, tableName + ConstHelper.PoTail, ConstHelper.PoPath);

                    string tempPoExample = GenPoExample(table);
                    DisplayJavaCode(tempPoExample, tableName + ConstHelper.PoExampleTail, ConstHelper.PoPath);

                    string tempDao = GenDao(table);
                    DisplayJavaCode(tempDao, tableName + ConstHelper.DaoTail, ConstHelper.DaoPath);

                    string tempDaoImpl = GenDaoImpl(table);
                    DisplayJavaCode(tempDaoImpl, tableName + ConstHelper.DaoImplTail, ConstHelper.DaoPath);

                    string tempSqlMap = GenSqlMap(table);
                    DisplayXMLCode(tempSqlMap, table.TableName + ConstHelper.SqlMapTail, ConstHelper.DaoPath);
                }
            });
        }