public abstract class Operator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ABONENT_SNAPSHOT_TABLE_PREFIX |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
billingToOperServiceMap |
protected int |
id |
protected java.lang.String |
incorrectOperatorMessage |
protected static org.apache.log4j.Logger |
log |
protected int |
mid |
protected Preferences |
moduleSetup |
protected Preferences |
operatorSetup |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
operToBillingServiceMap |
protected java.util.List<java.lang.Integer> |
serviceList |
protected java.util.List<java.lang.Integer> |
tariffList |
Constructor and Description |
---|
Operator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
checkCorrectOperator()
Оператор должен проверить свои настройки и если что-то не так - кинуть экзепшен.
|
protected void |
clearSnapshot(java.sql.Connection con,
java.util.Date month) |
abstract void |
createAbonentSnapshot(java.sql.Connection con,
java.util.Date month) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getBillingToOperServiceMap() |
java.util.Set<java.lang.Integer> |
getChangedAbonents(java.sql.Connection con,
java.util.Date toMonth) |
int |
getContractId() |
int |
getId() |
protected java.sql.PreparedStatement |
getInsertSnapshotPs(java.sql.Connection con,
java.util.Date month) |
java.util.Date |
getLastPrevSnapshot(java.sql.Connection con,
java.util.Date month) |
int |
getModuleId() |
Preferences |
getModuleSetup() |
Preferences |
getOperatorSetup() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getOperToBillingServiceMap() |
Report |
getReport(int id,
java.util.Date month) |
java.util.List<Report> |
getReportList(java.util.Date month) |
abstract java.util.List<Report> |
getReportList(java.util.Date month,
boolean hasSnapshot) |
java.util.List<java.lang.Integer> |
getServiceList() |
java.util.List<java.lang.Integer> |
getTariffList() |
java.lang.String |
getTitle() |
boolean |
hasShapshot(java.sql.Connection con,
java.util.Date month) |
void |
init(int id,
int cid,
java.lang.String title,
int mid,
Preferences moduleSetup,
Preferences operatorSetup) |
abstract boolean |
needAbonentSnapshot() |
protected static org.apache.log4j.Logger log
protected int id
protected int mid
protected Preferences moduleSetup
protected Preferences operatorSetup
protected java.util.List<java.lang.Integer> serviceList
protected java.util.List<java.lang.Integer> tariffList
protected java.util.Map<java.lang.Integer,java.lang.Integer> billingToOperServiceMap
protected java.util.Map<java.lang.Integer,java.lang.Integer> operToBillingServiceMap
protected static final java.lang.String ABONENT_SNAPSHOT_TABLE_PREFIX
protected java.lang.String incorrectOperatorMessage
public void init(int id, int cid, java.lang.String title, int mid, Preferences moduleSetup, Preferences operatorSetup)
public int getId()
public java.lang.String getTitle()
public int getModuleId()
public int getContractId()
public java.util.List<java.lang.Integer> getServiceList()
public java.util.Map<java.lang.Integer,java.lang.Integer> getBillingToOperServiceMap()
public Preferences getOperatorSetup()
public java.util.Map<java.lang.Integer,java.lang.Integer> getOperToBillingServiceMap()
public Preferences getModuleSetup()
public boolean hasShapshot(java.sql.Connection con, java.util.Date month)
public java.util.Date getLastPrevSnapshot(java.sql.Connection con, java.util.Date month)
protected java.sql.PreparedStatement getInsertSnapshotPs(java.sql.Connection con, java.util.Date month) throws java.sql.SQLException
java.sql.SQLException
protected void clearSnapshot(java.sql.Connection con, java.util.Date month) throws java.sql.SQLException
java.sql.SQLException
public java.util.Set<java.lang.Integer> getChangedAbonents(java.sql.Connection con, java.util.Date toMonth)
public Report getReport(int id, java.util.Date month)
public abstract boolean needAbonentSnapshot()
public abstract void createAbonentSnapshot(java.sql.Connection con, java.util.Date month)
public java.util.List<Report> getReportList(java.util.Date month)
public abstract java.util.List<Report> getReportList(java.util.Date month, boolean hasSnapshot)
public java.util.List<java.lang.Integer> getTariffList()
public abstract void checkCorrectOperator() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
- экзепшен с сообщением.