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 processadosperiodoInicio- data mínima do período coberto;nullpara tipos sem períodoperiodoFim- data máxima do período coberto;nullpara tipos sem períodolinhasEnviadas- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResultadoProcessamento
ResultadoProcessamento.Ignorado, ResultadoProcessamento.Sucesso -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelinhasEfetivasrecord component.intReturns the value of thelinhasEnviadasrecord component.intReturns the value of thelinhasRemovidasrecord component.Returns the value of theperiodoFimrecord component.Returns the value of theperiodoIniciorecord component.intReturns the value of theregistrosrecord component.semPeriodo(int registros, int linhasEnviadas, int linhasEfetivas, int linhasRemovidas) Sucesso sem período (tipos que não cobrem intervalo de datas).final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Sucesso
public Sucesso(int registros, LocalDate periodoInicio, LocalDate periodoFim, int linhasEnviadas, int linhasEfetivas, int linhasRemovidas) Creates an instance of aSucessorecord class.- Parameters:
registros- the value for theregistrosrecord componentperiodoInicio- the value for theperiodoIniciorecord componentperiodoFim- the value for theperiodoFimrecord componentlinhasEnviadas- the value for thelinhasEnviadasrecord componentlinhasEfetivas- the value for thelinhasEfetivasrecord componentlinhasRemovidas- the value for thelinhasRemovidasrecord 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 processadoslinhasEnviadas- linhas enviadaslinhasEfetivas- linhas efetivaslinhasRemovidas- linhas removidas- Returns:
- resultado de sucesso com período nulo
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
registros
-
periodoInicio
Returns the value of theperiodoIniciorecord component.- Returns:
- the value of the
periodoIniciorecord component
-
periodoFim
Returns the value of theperiodoFimrecord component.- Returns:
- the value of the
periodoFimrecord component
-
linhasEnviadas
public int linhasEnviadas()Returns the value of thelinhasEnviadasrecord component.- Returns:
- the value of the
linhasEnviadasrecord component
-
linhasEfetivas
public int linhasEfetivas()Returns the value of thelinhasEfetivasrecord component.- Returns:
- the value of the
linhasEfetivasrecord component
-
linhasRemovidas
public int linhasRemovidas()Returns the value of thelinhasRemovidasrecord component.- Returns:
- the value of the
linhasRemovidasrecord component
-