Class CounterSped

java.lang.Object
org.brerp.sped.base.common.CounterSped

public class CounterSped extends Object
CounterSped.java Counter Sped
Version:
$Id: CounterSped.java, 04/07/2022, 12:00, matheus.marcelino
Author:
Mario Grigioni, Ricardo Santana, ralexsander, Matheus Marcelino, matheus.marcelino
  • Constructor Details

    • CounterSped

      public CounterSped()
  • Method Details

    • clear

      public static void clear(int pInstanceID)
    • register

      public static void register(int pInstanceID, String regName)
      Adiciona o registro no contador
      Parameters:
      regName -
    • unregister

      public static void unregister(Integer pInstance, String regName)
      Remove o registro no contador
      Parameters:
      regName -
    • getRegsSped

      public static String[] getRegsSped(int pInstanceID)
      Retorna todos os registros do arquivo
      Returns:
      String[] registros
    • getCounter

      public static int getCounter(Integer pInstanceID, String regName)
      Retorna o contador do registro especificado
      Returns:
      int
    • getBlockCounter

      public static int getBlockCounter(Integer pInstanceID, String bloco)
      Retorna o contador do bloco especificado
      Returns:
      int
    • getTotalCounter

      public static long getTotalCounter(Integer pInstanceID)
      Retorna o contador total do arquivo
      Returns:
      int
    • addSpedVersion

      public static void addSpedVersion(int pInstanceID, int version)
    • getSpedVersion

      public static Integer getSpedVersion(int pInstanceID)
    • clearSpedVersion

      public static Integer clearSpedVersion(int pInstanceID)