Record Class ResetarPowersyncResumo
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.powersync.ResetarPowersyncResumo
- Record Components:
id- identificador do resetiniciadoEm- quando o reset começouiniciadoPor- quem disparoumotivo- motivo informadostatus- situação do resettempoMs- duração em ms (quando concluído)
public record ResetarPowersyncResumo(Long id, LocalDateTime iniciadoEm, String iniciadoPor, String motivo, ResetStatus status, Long tempoMs)
extends Record
View-model do reset para a listagem da tela admin — projeção dos campos que o template
admin/powersync exibe. Existe para a entidade ResetarPowersync (@MappedEntity)
não cruzar o controller até o template (mesma fronteira da API; padrão de views da casa).-
Constructor Summary
ConstructorsConstructorDescriptionResetarPowersyncResumo(Long id, LocalDateTime iniciadoEm, String iniciadoPor, String motivo, ResetStatus status, Long tempoMs) Creates an instance of aResetarPowersyncResumorecord class. -
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.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.tempoMs()Returns the value of thetempoMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResetarPowersyncResumo
public ResetarPowersyncResumo(Long id, LocalDateTime iniciadoEm, String iniciadoPor, String motivo, ResetStatus status, Long tempoMs) Creates an instance of aResetarPowersyncResumorecord class.- Parameters:
id- the value for theidrecord componentiniciadoEm- the value for theiniciadoEmrecord componentiniciadoPor- the value for theiniciadoPorrecord componentmotivo- the value for themotivorecord componentstatus- the value for thestatusrecord componenttempoMs- the value for thetempoMsrecord 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
-
iniciadoEm
Returns the value of theiniciadoEmrecord component.- Returns:
- the value of the
iniciadoEmrecord component
-
iniciadoPor
Returns the value of theiniciadoPorrecord component.- Returns:
- the value of the
iniciadoPorrecord component
-
motivo
-
status
-
tempoMs
-