Record Class ResetarPowersyncDetalheView
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.powersync.ResetarPowersyncDetalheView
- Record Components:
id- identificador do resetmotivo- motivo informadoiniciadoPor- quem disparouiniciadoEm- quando começouconcluidoEm- quando terminou (ounull)status- situação do resetstepAtual- step correnteatividadeAtual- descrição da atividade corrente (polling)erroMensagem- mensagem de erro (quando ERRO)tempoMs- duração em msdetalhes- JSON achatado de métricas (lido cru pelo template)
public record ResetarPowersyncDetalheView(Long id, String motivo, String iniciadoPor, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, ResetStatus status, String stepAtual, String atividadeAtual, String erroMensagem, Long tempoMs, String detalhes)
extends Record
View-model do reset para a tela de detalhe (
admin/resetar-powersync-detalhe) — projeção
dos campos que o template exibe. Mantém a entidade ResetarPowersync (@MappedEntity)
fora do template (mesma fronteira da API; padrão de views da casa). Os derivados (checkpoints,
steps, recovery) o controller calcula à parte a partir da entidade.-
Constructor Summary
ConstructorsConstructorDescriptionResetarPowersyncDetalheView(Long id, String motivo, String iniciadoPor, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, ResetStatus status, String stepAtual, String atividadeAtual, String erroMensagem, Long tempoMs, String detalhes) Creates an instance of aResetarPowersyncDetalheViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatividadeAtualrecord component.Returns the value of theconcluidoEmrecord component.detalhes()Returns the value of thedetalhesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerroMensagemrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theiniciadoEmrecord component.Returns the value of theiniciadoPorrecord component.motivo()Returns the value of themotivorecord component.status()Returns the value of thestatusrecord component.Returns the value of thestepAtualrecord component.tempoMs()Returns the value of thetempoMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResetarPowersyncDetalheView
public ResetarPowersyncDetalheView(Long id, String motivo, String iniciadoPor, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, ResetStatus status, String stepAtual, String atividadeAtual, String erroMensagem, Long tempoMs, String detalhes) Creates an instance of aResetarPowersyncDetalheViewrecord class.- Parameters:
id- the value for theidrecord componentmotivo- the value for themotivorecord componentiniciadoPor- the value for theiniciadoPorrecord componentiniciadoEm- the value for theiniciadoEmrecord componentconcluidoEm- the value for theconcluidoEmrecord componentstatus- the value for thestatusrecord componentstepAtual- the value for thestepAtualrecord componentatividadeAtual- the value for theatividadeAtualrecord componenterroMensagem- the value for theerroMensagemrecord componenttempoMs- the value for thetempoMsrecord componentdetalhes- the value for thedetalhesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
motivo
-
iniciadoPor
Returns the value of theiniciadoPorrecord component.- Returns:
- the value of the
iniciadoPorrecord component
-
iniciadoEm
Returns the value of theiniciadoEmrecord component.- Returns:
- the value of the
iniciadoEmrecord component
-
concluidoEm
Returns the value of theconcluidoEmrecord component.- Returns:
- the value of the
concluidoEmrecord component
-
status
-
stepAtual
-
atividadeAtual
Returns the value of theatividadeAtualrecord component.- Returns:
- the value of the
atividadeAtualrecord component
-
erroMensagem
Returns the value of theerroMensagemrecord component.- Returns:
- the value of the
erroMensagemrecord component
-
tempoMs
-
detalhes
-