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.StringcheckModeprivate java.lang.Longclientprivate intcomputationTimeprivate java.util.Calendardateprivate org.languagetool.Languagelangprivate org.languagetool.LanguagelangDetectedprivate intmatchesprivate DatabaseRuleMatchLogEntryruleMatchesprivate java.lang.Longserverprivate java.lang.LongtextSessionIdprivate inttextSizeprivate java.lang.LonguserId
-
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 DatabaseLogEntryfollowup()for interdependent log entries, i.e.java.util.Map<java.lang.Object,java.lang.Object>getMapping()java.lang.StringgetMappingIdentifier()voidsetRuleMatches(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:
getMappingin classDatabaseLogEntry- Returns:
- parameters for mybatis SQL statement
-
getMappingIdentifier
public java.lang.String getMappingIdentifier()
- Specified by:
getMappingIdentifierin classDatabaseLogEntry- Returns:
- identifier for mybatis SQL statement
-
followup
public DatabaseLogEntry followup()
Description copied from class:DatabaseLogEntryfor interdependent log entries, i.e. with foreign keys referencing other entries- Overrides:
followupin 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
-
-