Package com.log4ic.utils.dao

Examples of com.log4ic.utils.dao.DocViewerJdbcSupport


        List<Class> entityClassList = annotationFilter.getClassList();

        try {
            LOGGER.info("查看是否建表....");
            for (Class clazz : entityClassList) {
                DocViewerJdbcSupport support = (DocViewerJdbcSupport) clazz.newInstance();
                boolean exist = support.hasTable();
                String tableName = support.getTableName();
                LOGGER.info("表[" + tableName + "]" + (exist ? "" : "不") + "存在");
                if (!exist) {
                    LOGGER.info("创建表[" + tableName + "]");
                    support.createTable();
                }
            }
        } catch (NamingException e) {
            LOGGER.error(e);
        } catch (SQLException e) {
View Full Code Here

TOP

Related Classes of com.log4ic.utils.dao.DocViewerJdbcSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.