Package bitel.billing.server.admin.bean
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
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.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 -
Method Summary
Modifier and TypeMethodDescriptiongetChargeTitleById(int chid) Deprecated.getChargeTitleByID(int chid) Deprecated.getChargeTypes(Integer flag) Deprecated.getChargeTypes(Integer flag, Integer type) Deprecated.getPaymentOrChargeTypes(int mode) Deprecated.Мэп типов приходов/расходов.getPaymentTitleById(int pid) Deprecated.getPaymentTitleByID(int pid) Deprecated.getPaymentTypes(Integer flag) Deprecated.Мэп типов платежей.getPaymentTypes(Integer flag, Integer type) Deprecated.booleanisPaymentTypeExists(int id) 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, sqlUpdateBatchMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Field Details
-
FLAG_EDITABLE
public static final int FLAG_EDITABLEDeprecated.- See Also:
-
FLAG_NOTEDITABLE
public static final int FLAG_NOTEDITABLEDeprecated.- See Also:
-
TYPE_BRANCH
public static final int TYPE_BRANCHDeprecated.- See Also:
-
TYPE_LEAF
public static final int TYPE_LEAFDeprecated.- See Also:
-
-
Constructor Details
-
PaymentAndChargeTypeManager
Deprecated.
-
-
Method Details
-
getPaymentOrChargeTypes
Deprecated.Мэп типов приходов/расходов. Берутся все, со всеми type и flag- Parameters:
mode- 0 - contract_payment_types, 1,(+ещё?) - contract_charge_types- Returns:
- мэп(ид=>заголовок)
- Throws:
SQLException
-
getChargeTypes
Deprecated.- Throws:
SQLException
-
getChargeTypes
Deprecated. -
getPaymentTypes
Deprecated.Мэп типов платежей. Возвращается только type=0.- Parameters:
flag- если не null то возвращается только с указанным флагом- Returns:
- мэп(ид=>заголовок)
- Throws:
SQLException
-
getPaymentTypes
Deprecated.- Throws:
SQLException
-
getChargeTitleById
Deprecated. -
getChargeTitleByID
Deprecated.ИспользоватьgetChargeTitleById(int).- Parameters:
chid-- Returns:
- Throws:
SQLException
-
getPaymentTitleById
Deprecated.- Throws:
SQLException
-
getPaymentTitleByID
Deprecated.ИспользоватьgetPaymentTitleById(int).- Parameters:
pid-- Returns:
- Throws:
SQLException
-
isPaymentTypeExists
public boolean isPaymentTypeExists(int id) Deprecated.Использовать directory, если вернет null, значит не существует. Проверяет, существует ли данный тип платежа.- Parameters:
id- код типа платежа- Returns:
- true - если существует
-