Package org.jooq.debug

Examples of org.jooq.debug.DebuggerResultSetData


                    case COLUMN_EXEC_TIME: {
                        long duration = queryDebuggingInfo.getExecutionDuration();
                        return duration < 0? null: duration;
                    }
                    case COLUMN_RS_LIFETIME: {
                        DebuggerResultSetData rsData = queryDebuggingInfo.getSqlQueryDebuggerResultSetData();
                        return rsData == null? null: rsData.getLifeTime();
                    }
                    case COLUMN_RS_READ: {
                        DebuggerResultSetData rsData = queryDebuggingInfo.getSqlQueryDebuggerResultSetData();
                        return rsData == null? null: rsData.getReadCount();
                    }
                    case COLUMN_RS_READ_ROWS: {
                        DebuggerResultSetData rsData = queryDebuggingInfo.getSqlQueryDebuggerResultSetData();
                        return rsData == null? null: rsData.getReadRows();
                    }
                    case COLUMN_DUPLICATION_COUNT: {
                        return queryDebuggingInfo.getDuplicationCount();
                    }
                    case COLUMN_QUERY: {
View Full Code Here


                "<th>RS rows read</th>" +
                "<th>Query</th>" +
                "<th>Stack trace</th>" +
                "</tr>\n");
        for(QueryDebuggingInfo queryDebuggingInfo: queryDebuggingInfos) {
            DebuggerResultSetData resultSetData = queryDebuggingInfo.getSqlQueryDebuggerResultSetData();
            htmlSB.append("<tr>\n");
            htmlSB.append("<td>");
            htmlSB.append(queryDebuggingInfo.getQueryType());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(queryDebuggingInfo.getThreadName());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(queryDebuggingInfo.getThreadId());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(TIMESTAMP_FORMAT.format(new Date(queryDebuggingInfo.getTimestamp())));
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(queryDebuggingInfo.getExecutionDuration());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(resultSetData == null? "": resultSetData.getLifeTime());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(resultSetData == null? "": resultSetData.getReadCount());
            htmlSB.append("</td>\n");
//            htmlSB.append("<td>");
//            htmlSB.append(resultSetData == null? "": resultSetData.getWriteCount());
//            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            htmlSB.append(resultSetData == null? "": resultSetData.getReadRows());
            htmlSB.append("</td>\n");
            htmlSB.append("<td>");
            String[] queries = queryDebuggingInfo.getQueries();
            for(int i=0; i<queries.length; i++) {
                String query = queries[i];
View Full Code Here

                debugger.debugQueries(sqlQueryDebuggerData);
              }
            } else if(o instanceof ClientDebugResultSetMessage) {
              ClientDebugResultSetMessage m = (ClientDebugResultSetMessage) o;
              int sqlQueryDebuggerDataID = m.getSqlQueryDebuggerDataID();
              DebuggerResultSetData clientDebugResultSetData = m.getSqlQueryDebuggerResultSetData();
              for(Debugger debugger: DebuggerRegistry.getDebuggerList()) {
                debugger.debugResultSet(sqlQueryDebuggerDataID, clientDebugResultSetData);
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.jooq.debug.DebuggerResultSetData

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.