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
Modifier and TypeFieldDescriptionprotected static final String
protected int
protected String
protected int
protected Preferences
protected Preferences
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Оператор должен проверить свои настройки и если что-то не так - кинуть экзепшен.protected void
clearSnapshot
(Connection con, Date month) abstract void
createAbonentSnapshot
(Connection con, Date month) getChangedAbonents
(Connection con, Date toMonth) int
int
getId()
protected PreparedStatement
getInsertSnapshotPs
(Connection con, Date month) getLastPrevSnapshot
(Connection con, Date month) int
getReportList
(Date month) getReportList
(Date month, boolean hasSnapshot) getTitle()
boolean
hasShapshot
(Connection con, Date month) void
init
(int id, int cid, String title, int mid, Preferences moduleSetup, Preferences operatorSetup) abstract boolean
Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError
-
Field Details
-
id
protected int id -
mid
protected int mid -
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 cid, String title, int mid, Preferences 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
- экзепшен с сообщением.
-