Class Operator
java.lang.Object
ru.bitel.bgbilling.modules.phone.server.bean.oper.Operator
Общий класс для каждого оператора (в каждом может быть несколько отчётов).
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected int
protected String
protected static org.apache.logging.log4j.Logger
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
-
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
- экзепшен с сообщением.
-