Class ReferenceValueDirectory<K extends IdTitle,V>

java.lang.Object
ru.bitel.bgbilling.kernel.directory.api.common.ReferenceValueDirectory<K,V>
Direct Known Subclasses:
ProductSpecRuntimeMap, ReferenceDirectory, ServiceSpecRuntimeMap, TvAccountSpecRuntimeMap

public abstract class ReferenceValueDirectory<K extends IdTitle,V> extends Object
  • Constructor Details

    • ReferenceValueDirectory

      public ReferenceValueDirectory(boolean realtime, Connection con, int moduleId, Class<K> clazz) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
  • Method Details

    • onUpdate

      protected void onUpdate(Connection con, int moduleId, List<K> list) throws Exception
      Throws:
      Exception
    • onUpdate

      protected void onUpdate(List<K> list) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • init

      protected void init(Connection con, int moduleId, Class<K> clazz) throws Exception
      Throws:
      Exception
    • newValue

      protected V newValue(Connection con, int moduleId, K value)
    • newValue

      protected abstract V newValue(K value)
    • get

      public V get(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getRef

      public AtomicReference<V> getRef(int id)
    • list

      public List<V> list()