Class PaymentAndChargeTypeManager

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

@Deprecated public class PaymentAndChargeTypeManager extends ru.bitel.bgbilling.common.dao.AbstractDaoConstant
Deprecated.
Исплользовать PaymentTypeDao или ChargeTypeDao если нужно прямое обращение к базе, если же нужны просто сами типы, то вытаскивать через справочники: getDirectory( ChargeType.class, -1, true ) или так getDirectory( ChargeType.class ) в клиенте, точно так же и с payment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    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_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
    Deprecated.
     
    Deprecated.
    Deprecated.
     
    Deprecated.
     
    protected Map<String,String>
    Deprecated.
    Мэп типов приходов/расходов.
    Deprecated.
     
    Deprecated.
    Deprecated.
    Мэп типов платежей.
    Deprecated.
     
    boolean
    Deprecated.
    Использовать directory, если вернет null, значит не существует.

    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, sqlInsertGetLongId, sqlInsertOnDuplicateKeyUpdate, sqlInsertSelect, sqlInsertUpdateById, sqlSelectCountAsInt, 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

    • PaymentAndChargeTypeManager

      public PaymentAndChargeTypeManager(Connection con)
      Deprecated.
  • Method Details

    • getPaymentOrChargeTypes

      protected Map<String,String> getPaymentOrChargeTypes(int mode) throws SQLException
      Deprecated.
      Мэп типов приходов/расходов. Берутся все, со всеми type и flag
      Parameters:
      mode - 0 - contract_payment_types, 1,(+ещё?) - contract_charge_types
      Returns:
      мэп(ид=>заголовок)
      Throws:
      SQLException
    • getChargeTypes

      public List<IdTitle> getChargeTypes(Integer flag) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getChargeTypes

      public List<ChargeType> getChargeTypes(Integer flag, Integer type)
      Deprecated.
    • getPaymentTypes

      public List<IdTitle> getPaymentTypes(Integer flag) throws SQLException
      Deprecated.
      Мэп типов платежей. Возвращается только type=0.
      Parameters:
      flag - если не null то возвращается только с указанным флагом
      Returns:
      мэп(ид=>заголовок)
      Throws:
      SQLException
    • getPaymentTypes

      public List<PaymentType> getPaymentTypes(Integer flag, Integer type) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getChargeTitleById

      public String getChargeTitleById(int chid)
      Deprecated.
    • getChargeTitleByID

      @Deprecated public String getChargeTitleByID(int chid) throws SQLException
      Deprecated.
      Использовать getChargeTitleById(int).
      Parameters:
      chid -
      Returns:
      Throws:
      SQLException
    • getPaymentTitleById

      public String getPaymentTitleById(int pid) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getPaymentTitleByID

      @Deprecated public String getPaymentTitleByID(int pid) throws SQLException
      Deprecated.
      Использовать getPaymentTitleById(int).
      Parameters:
      pid -
      Returns:
      Throws:
      SQLException
    • isPaymentTypeExists

      public boolean isPaymentTypeExists(int id)
      Deprecated.
      Использовать directory, если вернет null, значит не существует. Проверяет, существует ли данный тип платежа.
      Parameters:
      id - код типа платежа
      Returns:
      true - если существует