Class ResourceManager<T extends Resource>
java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceManager<T>
- Direct Known Subclasses:
IPResourceRangeManager
,NumberResourceManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeResourceCategory
(String ids, int categoryId) void
deleteResource
(String id) int
getResourceCount
(int categoryId) protected abstract T
protected abstract String
protected void
loadStandartResourceFromRs
(ResultSet rs, Resource res) static ResourceManager<?>
newResourceManager
(String module, Connection con, int mid) void
abstract void
updateResource
(T res)
-
Field Details
-
con
-
mid
protected int mid -
tableName
-
-
Constructor Details
-
ResourceManager
-
-
Method Details
-
changeResourceCategory
-
getResourceCount
public int getResourceCount(int categoryId) -
deleteResource
-
loadStandartResourceFromRs
- Throws:
SQLException
-
updateResource
- Throws:
ru.bitel.bgbilling.common.BGException
-
getResourceFromRs
- Throws:
SQLException
-
getTableName
-
newResourceManager
public static ResourceManager<?> newResourceManager(String module, Connection con, int mid) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
syncResourceUse
public void syncResourceUse() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-