Class TaskAuditRepositoryImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      TaskAuditRepositoryImpl​(javax.sql.DataSource dataSource, com.fasterxml.jackson.databind.ObjectMapper mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean auditTask​(java.lang.String key, java.lang.String method, java.lang.String server, java.time.Instant start, java.time.Instant end, java.lang.Exception exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MYSQL_INSERT_QUERY

        protected static final java.lang.String MYSQL_INSERT_QUERY
        See Also:
        Constant Field Values
      • POSTGRE_INSERT_QUERY

        protected static final java.lang.String POSTGRE_INSERT_QUERY
        See Also:
        Constant Field Values
      • MSSQL_INSERT_QUERY

        protected static final java.lang.String MSSQL_INSERT_QUERY
        See Also:
        Constant Field Values
      • H2_INSERT_QUERY

        protected static final java.lang.String H2_INSERT_QUERY
        See Also:
        Constant Field Values
    • Constructor Detail

      • TaskAuditRepositoryImpl

        public TaskAuditRepositoryImpl​(javax.sql.DataSource dataSource,
                                       com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • auditTask

        public boolean auditTask​(java.lang.String key,
                                 java.lang.String method,
                                 java.lang.String server,
                                 java.time.Instant start,
                                 java.time.Instant end,
                                 java.lang.Exception exception)
                          throws DatabaseException
        Specified by:
        auditTask in interface TaskAuditRepository
        Parameters:
        key - that identifies task
        method - class and method where task was running
        server - identification (server hostname)
        start - is the instant that task start running
        end - is the instant that task end running
        exception - occurred during run
        Returns:
        result of operation
        Throws:
        DatabaseException - that was thrown when do not have database configured