Class ResourceUseManager<T extends ResourceUse>

java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceUseManager<T>
Direct Known Subclasses:
NumberResourceUseManager

public abstract class ResourceUseManager<T extends ResourceUse> extends Object
  • Field Details

    • con

      protected Connection con
    • tableName

      protected String tableName
    • mid

      protected int mid
  • Constructor Details

    • ResourceUseManager

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

    • getResourceUse

      public List<T> getResourceUse(int resourceId)
    • updateResourceUse

      public void updateResourceUse(int resourceId, List<T> useList)
    • insertResourceUseList

      protected abstract void insertResourceUseList(int resourceId, List<T> resourceUseList) throws Exception
      Throws:
      Exception
    • wasResourceUsed

      public boolean wasResourceUsed(String resourceId)
    • loadStandartResourceUseFromRs

      protected void loadStandartResourceUseFromRs(ResourceUse ruse, ResultSet rs) throws Exception
      Throws:
      Exception
    • getResourceUseFromRs

      protected abstract T getResourceUseFromRs(ResultSet rs)
    • getTableName

      protected abstract String getTableName()
    • freeResources

      public void freeResources(int cid)
    • closeResourceUse

      public void closeResourceUse(int cid, Date date)