Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
adapt
ace
Commits
ce31f799
Commit
ce31f799
authored
Nov 14, 2016
by
Michael Ritter
Browse files
Fix index of parameter value
parent
92926de3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ace-am/src/main/java/edu/umiacs/ace/monitor/reporting/SummaryGenerator.java
View file @
ce31f799
...
@@ -31,12 +31,17 @@
...
@@ -31,12 +31,17 @@
package
edu.umiacs.ace.monitor.reporting
;
package
edu.umiacs.ace.monitor.reporting
;
import
edu.umiacs.ace.monitor.log.*
;
import
edu.umiacs.ace.util.PersistUtil
;
import
edu.umiacs.ace.monitor.core.Collection
;
import
edu.umiacs.ace.monitor.core.Collection
;
import
edu.umiacs.ace.monitor.log.LogEnum
;
import
edu.umiacs.ace.util.PersistUtil
;
import
edu.umiacs.sql.SQL
;
import
edu.umiacs.sql.SQL
;
import
edu.umiacs.util.Argument
;
import
edu.umiacs.util.Argument
;
import
edu.umiacs.util.Strings
;
import
edu.umiacs.util.Strings
;
import
org.apache.log4j.Logger
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityTransaction
;
import
javax.sql.DataSource
;
import
java.sql.Connection
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.ResultSet
;
...
@@ -45,10 +50,6 @@ import java.sql.Timestamp;
...
@@ -45,10 +50,6 @@ import java.sql.Timestamp;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityTransaction
;
import
javax.sql.DataSource
;
import
org.apache.log4j.Logger
;
/**
/**
* Log summary generator, this will generate a report summarizing all log entries
* Log summary generator, this will generate a report summarizing all log entries
...
@@ -168,7 +169,7 @@ public class SummaryGenerator extends ReportItemTypes {
...
@@ -168,7 +169,7 @@ public class SummaryGenerator extends ReportItemTypes {
+
"MIN(logevent.ID), logevent.LOGTYPE, count(logevent.LOGTYPE)"
+
"MIN(logevent.ID), logevent.LOGTYPE, count(logevent.LOGTYPE)"
+
"FROM logevent WHERE logevent.COLLECTION_ID = ? "
+
"FROM logevent WHERE logevent.COLLECTION_ID = ? "
+
"GROUP BY logevent.LOGTYPE"
);
+
"GROUP BY logevent.LOGTYPE"
);
ps
.
setLong
(
2
,
collection
.
getId
());
ps
.
setLong
(
1
,
collection
.
getId
());
}
}
// create entries for each result, for start date and session id
// create entries for each result, for start date and session id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment