Package liquibase.logging

Examples of liquibase.logging.Logger.info()


                        "select count(*) from HTextFlow where wordCount is null or wordCount = 0";
                ResultSet rs2 = stmt.executeQuery(countSql);
                rs2.next();
                long totalRows = rs2.getLong(1);
                Logger log = LogFactory.getLogger();
                log.info("CountWordsInHTextFlow: updating " + totalRows
                        + " rows");
                String textFlowSql =
                        "select id, document_id, content, wordCount from HTextFlow where wordCount is null or wordCount = 0";
                ResultSet rs3 = stmt.executeQuery(textFlowSql);
                long rowsUpdated = 0;
View Full Code Here


                    String locale = docToLocaleMap.get(docId);
                    long wordCount = OkapiUtil.countWords(content, locale);
                    rs3.updateLong(4, wordCount);
                    rs3.updateRow();
                    if (++rowsUpdated % 10000 == 0) {
                        log.info("CountWordsInHTextFlow: updated "
                                + rowsUpdated + "/" + totalRows);
                    }
                }
                log.info("CountWordsInHTextFlow: finished");
            } finally {
View Full Code Here

                    if (++rowsUpdated % 10000 == 0) {
                        log.info("CountWordsInHTextFlow: updated "
                                + rowsUpdated + "/" + totalRows);
                    }
                }
                log.info("CountWordsInHTextFlow: finished");
            } finally {
                stmt.close();
            }
        } catch (SQLException e) {
            throw new CustomChangeException(e);
View Full Code Here

        } catch (IOException e) {
            throw new RuntimeException(e);
        } catch (UnexpectedLiquibaseException ule) {
                if (getChangeSet() != null && getChangeSet().getFailOnError() != null && !getChangeSet().getFailOnError()) {
                    Logger log = LogFactory.getLogger();
                    log.info("Change set " + getChangeSet().toString(false) + " failed, but failOnError was false.  Error: " + ule.getMessage());       
                    return new SqlStatement[0];
                } else {
                    throw ule;
                }
        } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.