Record Class ResultadoProcessamento.Sucesso

java.lang.Object
java.lang.Record
br.com.xadm.ingestao.ResultadoProcessamento.Sucesso
Record Components:
registros - número de registros de domínio processados
periodoInicio - data mínima do período coberto; null para tipos sem período
periodoFim - data máxima do período coberto; null para tipos sem período
linhasEnviadas - total de linhas enviadas ao banco (soma dos upserts)
linhasEfetivas - total de linhas efetivamente alteradas (parity-critical)
linhasRemovidas - linhas removidas por delete seletivo (0 se não se aplica)
All Implemented Interfaces:
ResultadoProcessamento
Enclosing interface:
ResultadoProcessamento

public static record ResultadoProcessamento.Sucesso(int registros, LocalDate periodoInicio, LocalDate periodoFim, int linhasEnviadas, int linhasEfetivas, int linhasRemovidas) extends Record implements ResultadoProcessamento
Processamento concluído com sucesso.
  • Constructor Details

    • Sucesso

      public Sucesso(int registros, LocalDate periodoInicio, LocalDate periodoFim, int linhasEnviadas, int linhasEfetivas, int linhasRemovidas)
      Creates an instance of a Sucesso record class.
      Parameters:
      registros - the value for the registros record component
      periodoInicio - the value for the periodoInicio record component
      periodoFim - the value for the periodoFim record component
      linhasEnviadas - the value for the linhasEnviadas record component
      linhasEfetivas - the value for the linhasEfetivas record component
      linhasRemovidas - the value for the linhasRemovidas record component
  • Method Details

    • semPeriodo

      public static ResultadoProcessamento.Sucesso semPeriodo(int registros, int linhasEnviadas, int linhasEfetivas, int linhasRemovidas)
      Sucesso sem período (tipos que não cobrem intervalo de datas).
      Parameters:
      registros - registros processados
      linhasEnviadas - linhas enviadas
      linhasEfetivas - linhas efetivas
      linhasRemovidas - linhas removidas
      Returns:
      resultado de sucesso com período nulo
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • registros

      public int registros()
      Returns the value of the registros record component.
      Returns:
      the value of the registros record component
    • periodoInicio

      public LocalDate periodoInicio()
      Returns the value of the periodoInicio record component.
      Returns:
      the value of the periodoInicio record component
    • periodoFim

      public LocalDate periodoFim()
      Returns the value of the periodoFim record component.
      Returns:
      the value of the periodoFim record component
    • linhasEnviadas

      public int linhasEnviadas()
      Returns the value of the linhasEnviadas record component.
      Returns:
      the value of the linhasEnviadas record component
    • linhasEfetivas

      public int linhasEfetivas()
      Returns the value of the linhasEfetivas record component.
      Returns:
      the value of the linhasEfetivas record component
    • linhasRemovidas

      public int linhasRemovidas()
      Returns the value of the linhasRemovidas record component.
      Returns:
      the value of the linhasRemovidas record component