private List<String> getTableNames(CodegenParameters cgParams) throws Exception { List<String> tableList = new ArrayList<String>(); if (StringUtil.isEmpty(cgParams.getTableNames())) { tableList = CodeGenUtil.getTableList(); } else { tableList.add(cgParams.getTableNames()); } return tableList; }