Record Class GraReferenciaFiltro

java.lang.Object
java.lang.Record
systextil.bo.inte.gra.dto.GraReferenciaFiltro
Record Components:
fornecedor - CNPJ/CPF (inteiro ou o comeco, com ou sem mascara) ou parte do nome
referencia - comeco da referencia do fornecedor
produto - SKU vinculado no formato nivel.grupo.subgrupo.item; cada parte e opcional
status - codigos do status_integracao (StatusFila), separados por virgula ("1,2,8,9" = nao enviadas); vazio: todos
motivo - codigo da categoria de erro (CategoriaErroReferenciaEnum)
dataInicio - inicio do periodo (yyyy-MM-dd): incluida ou modificada no intervalo
dataFim - fim do periodo (yyyy-MM-dd)
ordenacao - chave da coluna da grid; padrao: "Modificado em"
direcao - ASC ou DESC; padrao: DESC
offset - linhas ja carregadas pela tela
limite - linhas desta pagina

public record GraReferenciaFiltro(String fornecedor, String referencia, String produto, String status, String motivo, String dataInicio, String dataFim, String ordenacao, String direcao, int offset, int limite) extends Record
Filtros, ordem e pagina da aba Referencia Cruzada, como chegam da tela. Valor vazio ou nulo nao filtra; texto desconhecido em motivo, ordenacao ou direcao cai no padrao (o SQL nunca recebe o texto da tela).
  • Constructor Details

    • GraReferenciaFiltro

      public GraReferenciaFiltro(String fornecedor, String referencia, String produto, String status, String motivo, String dataInicio, String dataFim, String ordenacao, String direcao, int offset, int limite)
      Creates an instance of a GraReferenciaFiltro record class.
      Parameters:
      fornecedor - the value for the fornecedor record component
      referencia - the value for the referencia record component
      produto - the value for the produto record component
      status - the value for the status record component
      motivo - the value for the motivo record component
      dataInicio - the value for the dataInicio record component
      dataFim - the value for the dataFim record component
      ordenacao - the value for the ordenacao record component
      direcao - the value for the direcao record component
      offset - the value for the offset record component
      limite - the value for the limite 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • fornecedor

      public String fornecedor()
      Returns the value of the fornecedor record component.
      Returns:
      the value of the fornecedor record component
    • referencia

      public String referencia()
      Returns the value of the referencia record component.
      Returns:
      the value of the referencia record component
    • produto

      public String produto()
      Returns the value of the produto record component.
      Returns:
      the value of the produto record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • motivo

      public String motivo()
      Returns the value of the motivo record component.
      Returns:
      the value of the motivo record component
    • dataInicio

      public String dataInicio()
      Returns the value of the dataInicio record component.
      Returns:
      the value of the dataInicio record component
    • dataFim

      public String dataFim()
      Returns the value of the dataFim record component.
      Returns:
      the value of the dataFim record component
    • ordenacao

      public String ordenacao()
      Returns the value of the ordenacao record component.
      Returns:
      the value of the ordenacao record component
    • direcao

      public String direcao()
      Returns the value of the direcao record component.
      Returns:
      the value of the direcao record component
    • offset

      public int offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • limite

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