Class UserRepoRepository<Item extends RepositoryItem>

java.lang.Object
tigase.db.comp.ConfigRepository<Item>
tigase.db.comp.UserRepoRepository<Item>
All Implemented Interfaces:
Iterable<Item>, ComponentRepository<Item>, Repository, Initializable, UnregisterAware
Direct Known Subclasses:
AbstractCompDBRepository, CertificateRepository, ExtServiceDiscoveryUserRepoRepository, TaskConfigItemJDBCRepository, VHostJDBCRepository

public abstract class UserRepoRepository<Item extends RepositoryItem> extends ConfigRepository<Item>
Created: Oct 3, 2009 3:55:27 PM
Author:
Artur Hefczyc
  • Field Details

  • Constructor Details

    • UserRepoRepository

      public UserRepoRepository()
  • Method Details

    • getRepoUser

      public abstract BareJID getRepoUser()
    • getItemsListPKey

      public String getItemsListPKey()
    • reload

      public void reload()
      Description copied from interface: ComponentRepository
      This method is called to reload items from the database or other permanent storage. It is possible that items list is modified externally by third-party system. When all modifications are done this method is called to refresh the class cache. Whether the implementation load whole list or just last modifications is implementation dependent.
      Specified by:
      reload in interface ComponentRepository<Item extends RepositoryItem>
      Overrides:
      reload in class ConfigRepository<Item extends RepositoryItem>
    • setRepo

      public void setRepo(UserRepository userRepository)
    • store

      public void store()
      Description copied from interface: ComponentRepository
      The method is called to store all data in the database. It is used when the repository has been changed in some way and the changes have to be put to a permanent storage for later retrieval.
      Specified by:
      store in interface ComponentRepository<Item extends RepositoryItem>
      Overrides:
      store in class ConfigRepository<Item extends RepositoryItem>