Class IPResourceRangeManager
java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceManager<IPResourceRange>
bitel.billing.server.admin.resource.bean.ip.IPResourceRangeManager
- Direct Known Subclasses:
IPNResourceManager
-
Field Summary
Fields inherited from class bitel.billing.server.admin.resource.bean.ResourceManager
con, mid, tableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFilters
(int categoryId, long ip1, long ip2, StringBuilder query, boolean mask) void
addResources
(int categoryId, Calendar date, long ip1, long ip2) void
checkResource
(long ip1, long ip2, Calendar date) void
deleteResource
(String id) getResource
(int id) protected IPResourceRange
getResourceIterator
(int categoryId, long ip1, long ip2, boolean mask) getResourceList
(int categoryId, long ip1, long ip2, boolean mask) protected IPResourceRangeUse
protected String
void
void
void
updateResource
(IPResourceRange range) void
updateResourcePeriod
(String ids, Calendar date1, Calendar date2) Methods inherited from class bitel.billing.server.admin.resource.bean.ResourceManager
changeResourceCategory, getResourceCount, loadStandartResourceFromRs, newResourceManager, syncResourceUse
-
Constructor Details
-
IPResourceRangeManager
-
-
Method Details
-
updateResource
- Specified by:
updateResource
in classResourceManager<IPResourceRange>
- Throws:
ru.bitel.bgbilling.common.BGException
-
getResourceList
public List<IPResourceRange> getResourceList(int categoryId, long ip1, long ip2, boolean mask) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getResourceFromRs
- Specified by:
getResourceFromRs
in classResourceManager<IPResourceRange>
- Throws:
SQLException
-
addFilters
-
getTableName
- Specified by:
getTableName
in classResourceManager<IPResourceRange>
-
checkResource
public void checkResource(long ip1, long ip2, Calendar date) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addResources
-
deleteResource
- Overrides:
deleteResource
in classResourceManager<IPResourceRange>
-
getResourceIterator
public Iterable<IPResourceRange> getResourceIterator(int categoryId, long ip1, long ip2, boolean mask) -
updateResourcePeriod
-
getResourceListByIds
-
getResource
-
getResourceUseFromRs
- Throws:
SQLException
-
installModule
- Throws:
SQLException
-
uninstallModule
- Throws:
SQLException
-