Record Class OrdemResolvidaDTO

java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.pcpc.rotinarecalculo.dto.OrdemResolvidaDTO
Record Components:
ordemConfeccao - número de ordem de confecção a usar no INSERT da PCPC_040
periodoProducao - período de produção correspondente (pode vir da TMRP_615 se reaproveitado)
reaproveitada - true se o número veio da TMRP_615; quando false, o PCPC_010.ultimo_numero deve ser atualizado ao final do processo

public record OrdemResolvidaDTO(int ordemConfeccao, int periodoProducao, boolean reaproveitada) extends Record
Resultado da resolução de uma ordem de confecção no loop de lotes do recálculo.
  • Constructor Details

    • OrdemResolvidaDTO

      public OrdemResolvidaDTO(int ordemConfeccao, int periodoProducao, boolean reaproveitada)
      Creates an instance of a OrdemResolvidaDTO record class.
      Parameters:
      ordemConfeccao - the value for the ordemConfeccao record component
      periodoProducao - the value for the periodoProducao record component
      reaproveitada - the value for the reaproveitada 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 '=='.
      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.
    • ordemConfeccao

      public int ordemConfeccao()
      Returns the value of the ordemConfeccao record component.
      Returns:
      the value of the ordemConfeccao record component
    • periodoProducao

      public int periodoProducao()
      Returns the value of the periodoProducao record component.
      Returns:
      the value of the periodoProducao record component
    • reaproveitada

      public boolean reaproveitada()
      Returns the value of the reaproveitada record component.
      Returns:
      the value of the reaproveitada record component