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

public abstract class IPResourceRangeManager
extends ResourceManager<IPResourceRange>
  • Constructor Details

    • IPResourceRangeManager

      public IPResourceRangeManager​(java.sql.Connection con, int mid)
  • Method Details

    • updateResource

      public void updateResource​(IPResourceRange range) throws ru.bitel.bgbilling.common.BGException
      Specified by:
      updateResource in class ResourceManager<IPResourceRange>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getResourceList

      public java.util.List<IPResourceRange> getResourceList​(int categoryId, long ip1, long ip2, boolean mask) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getResourceFromRs

      protected IPResourceRange getResourceFromRs​(java.sql.ResultSet rs) throws java.sql.SQLException
      Specified by:
      getResourceFromRs in class ResourceManager<IPResourceRange>
      Throws:
      java.sql.SQLException
    • addFilters

      protected void addFilters​(int categoryId, long ip1, long ip2, java.lang.StringBuilder query, boolean mask)
    • getTableName

      protected java.lang.String getTableName()
      Specified by:
      getTableName in class ResourceManager<IPResourceRange>
    • checkResource

      public void checkResource​(long ip1, long ip2, java.util.Calendar date) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • addResources

      public void addResources​(int categoryId, java.util.Calendar date, long ip1, long ip2)
    • deleteResource

      public void deleteResource​(java.lang.String id)
      Overrides:
      deleteResource in class ResourceManager<IPResourceRange>
    • getResourceIterator

      public java.lang.Iterable<IPResourceRange> getResourceIterator​(int categoryId, long ip1, long ip2, boolean mask)
    • updateResourcePeriod

      public void updateResourcePeriod​(java.lang.String ids, java.util.Calendar date1, java.util.Calendar date2)
    • getResourceListByIds

      public java.util.List<IPResourceRange> getResourceListByIds​(java.lang.String ids)
    • getResource

      public IPResourceRange getResource​(int id)
    • getResourceUseFromRs

      protected IPResourceRangeUse getResourceUseFromRs​(java.sql.ResultSet rs) throws java.sql.SQLException
      Throws:
      java.sql.SQLException
    • installModule

      public void installModule() throws java.sql.SQLException
      Throws:
      java.sql.SQLException
    • uninstallModule

      public void uninstallModule() throws java.sql.SQLException
      Throws:
      java.sql.SQLException