Class ChargeManager

java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
bitel.billing.server.contract.bean.ChargeManager

@Deprecated public class ChargeManager extends ru.bitel.bgbilling.common.dao.AbstractDaoConstant
Deprecated.
Использовать ChargeDao
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     

    Fields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant

    con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteCharge(int id)
    Deprecated.
    Удаляет расход из БД.
    getChargeById(int id)
    Deprecated.
    Возвращает расход по его коду.
    getChargeList(int contractId)
    Deprecated.
    Получет список расходов для договора.
    getChargeList(int contractId, int chargeTypeId)
    Deprecated.
     
    getChargeList(int contractId, int chargeTypeId, Period period)
    Deprecated.
     
    getChargeList(int contractId, int chargeTypeId, Period period, int members)
    Deprecated.
    Получает список расходов для договора
    Deprecated.
     
    void
    Deprecated.
    Обновляет существующий (charge.getId() > 0) или добавляет новый расход (charge.getId() invalid input: '<'= 0).

    Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant

    getPeriod, getPlaceholders, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParam, sqlDelete, sqlDeleteBatch, sqlInsert, sqlInsertBatch, sqlInsertGetId, sqlInsertOnDuplicateKeyUpdate, sqlInsertUpdateById, sqlUpdate, sqlUpdateBatch

    Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger

    error, error, error, getLogger, logError, logError, warn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ChargeManager

      public ChargeManager(Connection con)
      Deprecated.
  • Method Details

    • getChargeById

      public Charge getChargeById(int id) throws SQLException
      Deprecated.
      Возвращает расход по его коду.
      Parameters:
      id - код расхода
      Returns:
      null, если не найден
      Throws:
      SQLException
    • getChargeList

      public List<Charge> getChargeList(int contractId, int chargeTypeId, Period period, int members) throws SQLException
      Deprecated.
      Получает список расходов для договора
      Parameters:
      chargeTypeId - код типа расхода, если invalid input: '<'1, то значит всех типов.
      period - период начисления расхода для поиска.
      members - - если == 1, то только расходы данного договора, если = 2 то вернет еще и расходы з.субдоговоров, если = 3 то только расходы зависемых субдоговоров.
      cid - код договора.
      Returns:
      Throws:
      SQLException
    • getChargeList

      public List<Charge> getChargeList(int contractId, int chargeTypeId, Period period) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getChargeList

      public List<Charge> getChargeList(int contractId) throws SQLException
      Deprecated.
      Получет список расходов для договора.
      Parameters:
      cid - код договора
      Returns:
      Throws:
      SQLException
    • getChargeList

      public List<Charge> getChargeList(int contractId, int chargeTypeId) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteCharge

      public void deleteCharge(int id) throws SQLException
      Deprecated.
      Удаляет расход из БД.
      Parameters:
      id - код записи с расходом в БД
      Throws:
      SQLException
    • updateCharge

      public void updateCharge(Charge charge) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Обновляет существующий (charge.getId() > 0) или добавляет новый расход (charge.getId() invalid input: '<'= 0).
      Parameters:
      charge - объект с данными расхода
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getTypeTitleMap

      public Map<Integer,String> getTypeTitleMap()
      Deprecated.
      Returns:
      map(Ид расхода, название расхода)