Package com.pyranid

Class StatementLog.Builder

    • Method Detail

      • executionTime

        public StatementLog.Builder executionTime​(Optional<Long> executionTime)
        Specifies how long it took to execute a SQL statement, in nanoseconds.
        Parameters:
        executionTime - how long it took to execute a SQL statement, if available
        Returns:
        this Builder, for chaining
      • parameters

        public StatementLog.Builder parameters​(List<Object> parameters)
        The parameters bound to the SQL statement that was executed.
        Parameters:
        parameters - the parameters bound to the SQL statement that was executed, or an empty List if none
        Returns:
        this Builder, for chaining
      • batchSize

        public StatementLog.Builder batchSize​(Optional<Integer> batchSize)
        Specifies the size of the batch operation.
        Parameters:
        batchSize - how many records were processed as part of the batch operation, if available
        Returns:
        this Builder, for chaining
      • exception

        public StatementLog.Builder exception​(Optional<Exception> exception)
        Specifies the exception that occurred during SQL statement execution.
        Parameters:
        exception - the exception that occurred during SQL statement execution, if available
        Returns:
        this Builder, for chaining
      • build

        public StatementLog build()
        Constructs a StatementLog instance.
        Returns:
        a StatementLog instance