Package org.javalite.activejdbc.statistics

Examples of org.javalite.activejdbc.statistics.QueryExecutionEvent


    static void logQuery(Logger logger, String query, Object[] params, long queryStartTime){
        long time = System.currentTimeMillis() - queryStartTime;

        if (Registry.instance().getConfiguration().collectStatistics()) {
            Registry.instance().getStatisticsQueue().enqueue(new QueryExecutionEvent(query, time));
        }

        if (logger.isInfoEnabled()) {
            StringBuilder log =  new StringBuilder().append("Query: \"").append(query).append('"');
            if (!empty(params)) {
View Full Code Here

TOP

Related Classes of org.javalite.activejdbc.statistics.QueryExecutionEvent

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.