Class ResourceManager<T extends Resource>
java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceManager<T>
- Direct Known Subclasses:
IPResourceRangeManager,NumberResourceManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeResourceCategory(String ids, int categoryId) voiddeleteResource(String id) intgetResourceCount(int categoryId) protected abstract Tprotected abstract Stringprotected voidloadStandartResourceFromRs(ResultSet rs, Resource res) static ResourceManager<?>newResourceManager(String module, Connection con, int mid) voidabstract voidupdateResource(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
-