Package tigase.conf
Class ConfigSQLRepository
- java.lang.Object
-
- tigase.conf.ConfigurationCache
-
- tigase.conf.ConfigSQLRepository
-
- All Implemented Interfaces:
java.lang.Iterable<ConfigItem>
,ConfigRepositoryIfc
,ComponentRepository<ConfigItem>
,Repository
@Deprecated public class ConfigSQLRepository extends ConfigurationCache
Deprecated.Created: Dec 15, 2009 10:44:00 PM- Author:
- Artur Hefczyc
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.db.Repository
Repository.Meta, Repository.SchemaId
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_REPO_URI_INIT_KEY
Deprecated.static java.lang.String
CONFIG_REPO_URI_PROP_KEY
Deprecated.-
Fields inherited from class tigase.conf.ConfigurationCache
CONFIG_DUMP_FILE_PROP_DEF, CONFIG_DUMP_FILE_PROP_KEY
-
Fields inherited from interface tigase.db.comp.ComponentRepository
COMP_REPO_BIND
-
Fields inherited from interface tigase.conf.ConfigRepositoryIfc
RELOAD_DELAY, RESOURCE_URI
-
-
Constructor Summary
Constructors Constructor Description ConfigSQLRepository()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addItem(java.lang.String compName, ConfigItem item)
Deprecated.java.util.Collection<ConfigItem>
allItems()
Deprecated.Returns a collection with all items stored in the repository.java.lang.String[]
getCompNames()
Deprecated.Returns all component names for which there are some configuration settings available.ConfigItem
getItem(java.lang.String compName, java.lang.String node, java.lang.String key)
Deprecated.java.util.Set<ConfigItem>
getItemsForComponent(java.lang.String compName)
Deprecated.Get set of config items stored for componentjava.lang.String[]
getKeys(java.lang.String compName, java.lang.String node)
Deprecated.Returns an array of all configuration keys for a given component and configuration node.void
initRepository(java.lang.String repo_uri, java.util.Map<java.lang.String,java.lang.String> params)
Deprecated.Method is deprecated and should not be user any more.void
removeItem(java.lang.String compName, ConfigItem item)
Deprecated.int
size()
Deprecated.The method returns number of items in the repository.-
Methods inherited from class tigase.conf.ConfigurationCache
addItem, addItem, addItemNoStore, addRepoChangeListener, contains, destroy, get, getDefaults, getDefHostname, getInitProperties, getItem, getItemInstance, getProperties, iterator, putProperties, reload, remove, removeItem, removeItemNoStore, removeRepoChangeListener, set, setAutoloadTimer, setDefHostname, setProperties, store, validateItem
-
-
-
-
Field Detail
-
CONFIG_REPO_URI_PROP_KEY
public static final java.lang.String CONFIG_REPO_URI_PROP_KEY
Deprecated.- See Also:
- Constant Field Values
-
CONFIG_REPO_URI_INIT_KEY
public static final java.lang.String CONFIG_REPO_URI_INIT_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
addItem
public void addItem(java.lang.String compName, ConfigItem item)
Deprecated.- Overrides:
addItem
in classConfigurationCache
-
allItems
public java.util.Collection<ConfigItem> allItems() throws TigaseDBException
Deprecated.Description copied from interface:ComponentRepository
Returns a collection with all items stored in the repository.- Specified by:
allItems
in interfaceComponentRepository<ConfigItem>
- Overrides:
allItems
in classConfigurationCache
- Throws:
TigaseDBException
-
getCompNames
public java.lang.String[] getCompNames()
Deprecated.Description copied from interface:ConfigRepositoryIfc
Returns all component names for which there are some configuration settings available.- Specified by:
getCompNames
in interfaceConfigRepositoryIfc
- Overrides:
getCompNames
in classConfigurationCache
- Returns:
- array of component names
-
getItem
public ConfigItem getItem(java.lang.String compName, java.lang.String node, java.lang.String key)
Deprecated.- Overrides:
getItem
in classConfigurationCache
-
getItemsForComponent
public java.util.Set<ConfigItem> getItemsForComponent(java.lang.String compName)
Deprecated.Description copied from interface:ConfigRepositoryIfc
Get set of config items stored for component- Specified by:
getItemsForComponent
in interfaceConfigRepositoryIfc
- Overrides:
getItemsForComponent
in classConfigurationCache
- Returns:
- set of component items
-
getKeys
public java.lang.String[] getKeys(java.lang.String compName, java.lang.String node)
Deprecated.Description copied from interface:ConfigRepositoryIfc
Returns an array of all configuration keys for a given component and configuration node.- Specified by:
getKeys
in interfaceConfigRepositoryIfc
- Overrides:
getKeys
in classConfigurationCache
- Returns:
- array of keys for component and node
-
initRepository
public void initRepository(java.lang.String repo_uri, java.util.Map<java.lang.String,java.lang.String> params) throws DBInitException
Deprecated.Description copied from interface:Repository
Method is deprecated and should not be user any more.
The method is called to initialize the data repository. Depending on the implementation all the initialization parameters can be passed either viaresource_uri
parameter as the database connection string or viaparams
map if the required repository parameters are more complex or both.- Specified by:
initRepository
in interfaceRepository
- Overrides:
initRepository
in classConfigurationCache
- Parameters:
repo_uri
- value in most cases representing the database connection string.params
- is aMap
with repository properties necessary to initialize and perform all the functions. The initialization parameters are implementation dependent.- Throws:
DBInitException
- if there was an error during repository initialization. Some implementations, though, perform so called lazy initialization so even though there is a problem with the underlying repository it may not be signaled through this method call.
-
removeItem
public void removeItem(java.lang.String compName, ConfigItem item)
Deprecated.- Overrides:
removeItem
in classConfigurationCache
-
size
public int size()
Deprecated.Description copied from interface:ComponentRepository
The method returns number of items in the repository.- Specified by:
size
in interfaceComponentRepository<ConfigItem>
- Overrides:
size
in classConfigurationCache
- Returns:
- an
int
value with number of items in the repository.
-
-