Class DatabaseCheckLogEntry

    • 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
    • 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

      • getMapping

        public java.util.Map<java.lang.Object,​java.lang.Object> getMapping()
        Specified by:
        getMapping in class DatabaseLogEntry
        Returns:
        parameters for mybatis SQL statement
      • getMappingIdentifier

        public java.lang.String getMappingIdentifier()
        Specified by:
        getMappingIdentifier in class DatabaseLogEntry
        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 class DatabaseLogEntry
        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