use of kyj.Fx.dao.wizard.core.model.vo.TableMasterDVO in project Gargoyle by callakrsos.
the class VoWizardUtil method listTable.
/**
* 테이블모델생성
*
* @param tableName
* @return
* @throws Exception
*/
public static List<TableMasterDVO> listTable(String tableName) throws Exception {
return DbUtil.tables(tableName, rs -> {
TableMasterDVO tableMasterDVO = new TableMasterDVO();
try {
String _schemaName = rs.getString("TABLE_SCHEM");
tableMasterDVO.setSchemaName(_schemaName);
String _tableName = rs.getString("TABLE_NAME");
tableMasterDVO.setTableName(_tableName);
String className = ValueUtil.toDVOName(_tableName);
tableMasterDVO.setClassName(className);
tableMasterDVO.setDescription(rs.getString("REMARKS"));
} catch (Exception e) {
LOGGER.error(ValueUtil.toString(e));
tableMasterDVO = null;
}
return tableMasterDVO;
});
}
Aggregations