Class Operator
java.lang.Object
ru.bitel.bgbilling.modules.voice.server.bean.operator.Operator
Общий класс для каждого оператора (в каждом может быть несколько отчётов).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected intprotected Stringprotected static org.apache.logging.log4j.Loggerprotected intprotected Preferencesprotected 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 cid, String title, int mid, Preferences moduleSetup, Preferences operatorSetup) abstract boolean
-
Field Details
-
log
protected static org.apache.logging.log4j.Logger log -
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- экзепшен с сообщением.
-