Package bitel.billing.server.admin.bean
Class PaymentAndChargeTypeManager
java.lang.Object
bitel.billing.server.admin.bean.PaymentAndChargeTypeManager
@Deprecated
public class PaymentAndChargeTypeManager
extends java.lang.Object
Deprecated.
Исплользовать PaymentTypeDao или ChargeTypeDao если нужно прямое обращение к базе,
если же нужны просто сами типы, то вытаскивать через справочники: getDirectory( ChargeType.class, -1, true ) или так getDirectory( ChargeType.class ) в клиенте,
точно так же и с payment.
-
Field Summary
Fields Modifier and Type Field Description static intFLAG_EDITABLEDeprecated.static intFLAG_NOTEDITABLEDeprecated.static intTYPE_BRANCHDeprecated.static intTYPE_LEAFDeprecated. -
Constructor Summary
Constructors Constructor Description PaymentAndChargeTypeManager(java.sql.Connection con)Deprecated. -
Method Summary
Modifier and Type Method Description java.lang.StringgetChargeTitleById(int chid)Deprecated.java.lang.StringgetChargeTitleByID(int chid)Deprecated.java.util.List<IdTitle>getChargeTypes(java.lang.Integer flag)Deprecated.java.util.List<ChargeType>getChargeTypes(java.lang.Integer flag, java.lang.Integer type)Deprecated.protected java.util.Map<java.lang.String,java.lang.String>getPaymentOrChargeTypes(int mode)Deprecated.Мэп типов приходов/расходов.java.lang.StringgetPaymentTitleById(int pid)Deprecated.java.lang.StringgetPaymentTitleByID(int pid)Deprecated.java.util.List<IdTitle>getPaymentTypes(java.lang.Integer flag)Deprecated.Мэп типов платежей.java.util.List<PaymentType>getPaymentTypes(java.lang.Integer flag, java.lang.Integer type)Deprecated.booleanisPaymentTypeExists(int id)Deprecated.Использовать directory, если вернет null, значит не существует.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FLAG_EDITABLE
public static final int FLAG_EDITABLEDeprecated.- See Also:
- Constant Field Values
-
FLAG_NOTEDITABLE
public static final int FLAG_NOTEDITABLEDeprecated.- See Also:
- Constant Field Values
-
TYPE_BRANCH
public static final int TYPE_BRANCHDeprecated.- See Also:
- Constant Field Values
-
TYPE_LEAF
public static final int TYPE_LEAFDeprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
PaymentAndChargeTypeManager
public PaymentAndChargeTypeManager(java.sql.Connection con)Deprecated.
-
-
Method Details
-
getPaymentOrChargeTypes
protected java.util.Map<java.lang.String,java.lang.String> getPaymentOrChargeTypes(int mode) throws java.sql.SQLExceptionDeprecated.Мэп типов приходов/расходов. Берутся все, со всеми type и flag- Parameters:
mode- 0 - contract_payment_types, 1,(+ещё?) - contract_charge_types- Returns:
- мэп(ид=>заголовок)
- Throws:
java.sql.SQLException
-
getChargeTypes
Deprecated.- Throws:
java.sql.SQLException
-
getChargeTypes
Deprecated. -
getPaymentTypes
public java.util.List<IdTitle> getPaymentTypes(java.lang.Integer flag) throws java.sql.SQLExceptionDeprecated.Мэп типов платежей. Возвращается только type=0.- Parameters:
flag- если не null то возвращается только с указанным флагом- Returns:
- мэп(ид=>заголовок)
- Throws:
java.sql.SQLException
-
getPaymentTypes
public java.util.List<PaymentType> getPaymentTypes(java.lang.Integer flag, java.lang.Integer type) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getChargeTitleById
public java.lang.String getChargeTitleById(int chid)Deprecated. -
getChargeTitleByID
@Deprecated public java.lang.String getChargeTitleByID(int chid) throws java.sql.SQLExceptionDeprecated.ИспользоватьgetChargeTitleById(int).- Parameters:
chid-- Returns:
- Throws:
java.sql.SQLException
-
getPaymentTitleById
public java.lang.String getPaymentTitleById(int pid) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getPaymentTitleByID
@Deprecated public java.lang.String getPaymentTitleByID(int pid) throws java.sql.SQLExceptionDeprecated.ИспользоватьgetPaymentTitleById(int).- Parameters:
pid-- Returns:
- Throws:
java.sql.SQLException
-
isPaymentTypeExists
public boolean isPaymentTypeExists(int id)Deprecated.Использовать directory, если вернет null, значит не существует. Проверяет, существует ли данный тип платежа.- Parameters:
id- код типа платежа- Returns:
- true - если существует
-