Class ResourceManager<T extends Resource>

java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceManager<T>
Direct Known Subclasses:
IPResourceRangeManager, NumberResourceManager

public abstract class ResourceManager<T extends Resource> extends Object
  • Field Details

    • con

      protected Connection con
    • mid

      protected int mid
    • tableName

      protected String tableName
  • Constructor Details

    • ResourceManager

      public ResourceManager(Connection con, int mid)
  • Method Details

    • changeResourceCategory

      public void changeResourceCategory(String ids, int categoryId)
    • getResourceCount

      public int getResourceCount(int categoryId)
    • deleteResource

      public void deleteResource(String id)
    • loadStandartResourceFromRs

      protected void loadStandartResourceFromRs(ResultSet rs, Resource res) throws SQLException
      Throws:
      SQLException
    • updateResource

      public abstract void updateResource(T res) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getResourceFromRs

      protected abstract T getResourceFromRs(ResultSet rs) throws SQLException
      Throws:
      SQLException
    • getTableName

      protected abstract String 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