Package org.languagetool.server
Class DatabaseCheckLogEntry
- java.lang.Object
-
- org.languagetool.server.DatabaseLogEntry
-
- org.languagetool.server.DatabaseCheckLogEntry
-
class DatabaseCheckLogEntry extends DatabaseLogEntry
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
checkMode
private java.lang.Long
client
private int
computationTime
private java.util.Calendar
date
private org.languagetool.Language
lang
private org.languagetool.Language
langDetected
private int
matches
private DatabaseRuleMatchLogEntry
ruleMatches
private java.lang.Long
server
private java.lang.Long
textSessionId
private int
textSize
private java.lang.Long
userId
-
Constructor Summary
Constructors Constructor Description DatabaseCheckLogEntry(java.lang.Long userId, java.lang.Long client, java.lang.Long server, int textSize, int matches, org.languagetool.Language lang, org.languagetool.Language langDetected, int computationTime, java.lang.Long textSessionId, java.lang.String checkMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseLogEntry
followup()
for interdependent log entries, i.e.java.util.Map<java.lang.Object,java.lang.Object>
getMapping()
java.lang.String
getMappingIdentifier()
void
setRuleMatches(DatabaseRuleMatchLogEntry entry)
-
Methods inherited from class org.languagetool.server.DatabaseLogEntry
print, print
-
-
-
-
Field Detail
-
userId
private final java.lang.Long userId
-
client
private final java.lang.Long client
-
server
private final java.lang.Long server
-
textSize
private final int textSize
-
matches
private final int matches
-
lang
private final org.languagetool.Language lang
-
langDetected
private final org.languagetool.Language langDetected
-
computationTime
private final int computationTime
-
textSessionId
private final java.lang.Long textSessionId
-
date
private final java.util.Calendar date
-
checkMode
private final java.lang.String checkMode
-
ruleMatches
private DatabaseRuleMatchLogEntry ruleMatches
-
-
Constructor Detail
-
DatabaseCheckLogEntry
public DatabaseCheckLogEntry(java.lang.Long userId, java.lang.Long client, java.lang.Long server, int textSize, int matches, org.languagetool.Language lang, org.languagetool.Language langDetected, int computationTime, java.lang.Long textSessionId, java.lang.String checkMode)
-
-
Method Detail
-
setRuleMatches
public void setRuleMatches(DatabaseRuleMatchLogEntry entry)
-
getMapping
public java.util.Map<java.lang.Object,java.lang.Object> getMapping()
- Specified by:
getMapping
in classDatabaseLogEntry
- Returns:
- parameters for mybatis SQL statement
-
getMappingIdentifier
public java.lang.String getMappingIdentifier()
- Specified by:
getMappingIdentifier
in classDatabaseLogEntry
- Returns:
- identifier for mybatis SQL statement
-
followup
public DatabaseLogEntry followup()
Description copied from class:DatabaseLogEntry
for interdependent log entries, i.e. with foreign keys referencing other entries- Overrides:
followup
in classDatabaseLogEntry
- Returns:
- null if no followup needed, else log entry that needs to be inserted directly afterwards e.g. to use LAST_INSERT_ID from mysql
-
-