Package ru.bgcrm.plugin.bgbilling.proto.dao.directory

# Class Directory<T extends Id>

java.lang.Object
ru.bgcrm.plugin.bgbilling.proto.dao.directory.Directory<T>

Direct Known Subclasses:
  `ChargeTypeDirectory`, `PaymentTypeDirectory`, `UserInfoDirectory`

public abstract class Directory<T extends Id> extends Object
Cached directory

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final DBInfo`
  `dbInfo`
  `protected final String`
  `directoryItemClass`
  `protected final int`
  `moduleId`

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Directory(DBInfo dbInfo, int moduleId, String directoryItemClass)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `get(User user, int id)`
  `Map<Integer,T>`
  `getValues(User user)`
  `protected abstract List<T>`
  `list(User user)`
  `protected abstract T`
  `missingValue(int id)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### dbInfo

    protected final DBInfo dbInfo

  - ### moduleId

    protected final int moduleId

  - ### directoryItemClass

    protected final String directoryItemClass

- ## Constructor Details

  - ### Directory

    protected Directory(DBInfo dbInfo, int moduleId, String directoryItemClass)

- ## Method Details

  - ### get

    public T get(User user, int id)

  - ### getValues

    public Map<Integer,T> getValues(User user)

  - ### list

    protected abstract List<T> list(User user)

  - ### missingValue

    protected abstract T missingValue(int id)