Package tigase.db.comp
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.db.Repository
Repository.Meta, Repository.SchemaId -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UserRepositorystatic final Stringstatic final StringFields inherited from class tigase.db.comp.ConfigRepository
autoReloadInterval, items, itemsHashFields inherited from interface tigase.db.comp.ComponentRepository
COMP_REPO_BIND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BareJIDvoidreload()This method is called to reload items from the database or other permanent storage.voidsetRepo(UserRepository userRepository) voidstore()The method is called to store all data in the database.Methods inherited from class tigase.db.comp.ConfigRepository
addItem, addItemNoStore, addRepoChangeListener, allItems, beforeUnregister, contains, getConfigKey, getDefaultItems, getDefaultPropetyItems, getDefaults, getItem, getItemsOld, getPropertyKey, initialize, initItemsMap, isInitialized, itemChanged, iterator, removeItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, setProperties, size, toString, validateItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tigase.db.comp.ComponentRepository
destroy, getItemInstanceMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface tigase.db.Repository
initRepository
-
Field Details
-
REPO_CLASS_PROP_KEY
- See Also:
-
REPO_URI_PROP_KEY
- See Also:
-
repo
-
-
Constructor Details
-
UserRepoRepository
public UserRepoRepository()
-
-
Method Details
-
getRepoUser
-
getItemsListPKey
-
reload
public void reload()Description copied from interface:ComponentRepositoryThis 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:
reloadin interfaceComponentRepository<Item extends RepositoryItem>- Overrides:
reloadin classConfigRepository<Item extends RepositoryItem>
-
setRepo
-
store
public void store()Description copied from interface:ComponentRepositoryThe 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:
storein interfaceComponentRepository<Item extends RepositoryItem>- Overrides:
storein classConfigRepository<Item extends RepositoryItem>
-