Record Class ProcessamentoResumoDto

java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.processamento.ProcessamentoResumoDto
Record Components:
id - identificador
recebidoEm - data/hora de recebimento
nomeArquivo - nome do arquivo enviado
status - status do processamento
checksumSha256 - checksum SHA-256 do arquivo
periodoInicial - período inicial extraído do XLS (se já processado)
periodoFinal - período final extraído do XLS (se já processado)
tempoMs - duração do processamento em ms, se concluído
registrosFaturamento - registros de faturamento gravados
registrosMovimento - registros de movimento gravados

public record ProcessamentoResumoDto(Long id, LocalDateTime recebidoEm, String nomeArquivo, String status, String checksumSha256, LocalDate periodoInicial, LocalDate periodoFinal, Long tempoMs, Integer registrosFaturamento, Integer registrosMovimento) extends Record
Linha da lista de processamentos (JTE e GET /api/transporte/processamentos).
  • Constructor Details

    • ProcessamentoResumoDto

      public ProcessamentoResumoDto(Long id, LocalDateTime recebidoEm, String nomeArquivo, String status, String checksumSha256, LocalDate periodoInicial, LocalDate periodoFinal, Long tempoMs, Integer registrosFaturamento, Integer registrosMovimento)
      Creates an instance of a ProcessamentoResumoDto record class.
      Parameters:
      id - the value for the id record component
      recebidoEm - the value for the recebidoEm record component
      nomeArquivo - the value for the nomeArquivo record component
      status - the value for the status record component
      checksumSha256 - the value for the checksumSha256 record component
      periodoInicial - the value for the periodoInicial record component
      periodoFinal - the value for the periodoFinal record component
      tempoMs - the value for the tempoMs record component
      registrosFaturamento - the value for the registrosFaturamento record component
      registrosMovimento - the value for the registrosMovimento record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • recebidoEm

      public LocalDateTime recebidoEm()
      Returns the value of the recebidoEm record component.
      Returns:
      the value of the recebidoEm record component
    • nomeArquivo

      public String nomeArquivo()
      Returns the value of the nomeArquivo record component.
      Returns:
      the value of the nomeArquivo record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • checksumSha256

      public String checksumSha256()
      Returns the value of the checksumSha256 record component.
      Returns:
      the value of the checksumSha256 record component
    • periodoInicial

      public LocalDate periodoInicial()
      Returns the value of the periodoInicial record component.
      Returns:
      the value of the periodoInicial record component
    • periodoFinal

      public LocalDate periodoFinal()
      Returns the value of the periodoFinal record component.
      Returns:
      the value of the periodoFinal record component
    • tempoMs

      public Long tempoMs()
      Returns the value of the tempoMs record component.
      Returns:
      the value of the tempoMs record component
    • registrosFaturamento

      public Integer registrosFaturamento()
      Returns the value of the registrosFaturamento record component.
      Returns:
      the value of the registrosFaturamento record component
    • registrosMovimento

      public Integer registrosMovimento()
      Returns the value of the registrosMovimento record component.
      Returns:
      the value of the registrosMovimento record component