Class Operator
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.modules.voice.server.bean.operator.Operator
public abstract class Operator
extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
Общий класс для каждого оператора (в каждом может быть несколько отчётов).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected intprotected Stringprotected intprotected ModuleSetupprotected Preferences -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidОператор должен проверить свои настройки и если что-то не так - кинуть экзепшен.protected voidclearSnapshot(Connection con, Date month) abstract voidcreateAbonentSnapshot(Connection con, Date month) getChangedAbonents(Connection con, Date toMonth) intintgetId()protected PreparedStatementgetInsertSnapshotPs(Connection con, Date month) getLastPrevSnapshot(Connection con, Date month) intgetReportList(Date month) getReportList(Date month, boolean hasSnapshot) getTitle()booleanhasShapshot(Connection con, Date month) voidinit(int id, int contractId, String title, int moduleId, ModuleSetup moduleSetup, Preferences operatorSetup) abstract booleanMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Field Details
-
id
protected int id -
moduleId
protected int moduleId -
moduleSetup
-
operatorSetup
-
serviceList
-
tariffList
-
billingToOperServiceMap
-
operToBillingServiceMap
-
ABONENT_SNAPSHOT_TABLE_PREFIX
- See Also:
-
incorrectOperatorMessage
-
-
Constructor Details
-
Operator
public Operator()
-
-
Method Details
-
init
public void init(int id, int contractId, String title, int moduleId, ModuleSetup moduleSetup, Preferences operatorSetup) -
getId
public int getId() -
getTitle
-
getModuleId
public int getModuleId() -
getContractId
public int getContractId() -
getServiceList
-
getBillingToOperServiceMap
-
getOperatorSetup
-
getOperToBillingServiceMap
-
getModuleSetup
-
hasShapshot
-
getLastPrevSnapshot
-
getInsertSnapshotPs
- Throws:
SQLException
-
clearSnapshot
- Throws:
SQLException
-
getChangedAbonents
-
getReport
-
needAbonentSnapshot
public abstract boolean needAbonentSnapshot() -
createAbonentSnapshot
-
getReportList
-
getReportList
-
getTariffList
-
checkCorrectOperator
public abstract void checkCorrectOperator() throws ru.bitel.bgbilling.common.BGExceptionОператор должен проверить свои настройки и если что-то не так - кинуть экзепшен.- Throws:
ru.bitel.bgbilling.common.BGException- экзепшен с сообщением.
-