Package ru.bgcrm.dao

Class CounterDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.CounterDAO

public class CounterDAO extends CommonDAO
  • Constructor Details

  • Method Details

    • getCounterValue

      public int getCounterValue(int counterId) throws BGException
      Возвращает значение счетчика по counterId
      Parameters:
      counterId - - id счетчика
      Returns:
      значение (-1 если счетчика с таким id не найдено)
      Throws:
      BGException
    • getCounter

      public Counter getCounter(int counterId) throws BGException
      Возвращает счетик
      Parameters:
      counterId - - id счетчика
      Returns:
      счетчик
      Throws:
      BGException
    • updateCounter

      public void updateCounter(Counter counter) throws BGException
      Изменение счетчика
      Parameters:
      counter - счетчик
      Throws:
      BGException
    • incrementCounter

      public void incrementCounter(int counterId) throws BGException
      Увеличивает счетчик на 1
      Parameters:
      counterId - - id счетчика
      Throws:
      BGException