org.nhindirect.config.store.dao
Interface SettingDao

All Known Implementing Classes:
SettingDaoImpl

public interface SettingDao

Settings data access methods.


Method Summary
 void add(String name, String value)
          Adds a new setting.
 void delete(Collection<String> names)
          Delete a set of settings with the given names.
 Collection<Setting> getAll()
          Get all settings.
 Collection<Setting> getByNames(Collection<String> names)
          Get a collection of settings by names.
 void update(String name, String value)
          Updates a setting.
 

Method Detail

getAll

Collection<Setting> getAll()
Get all settings.

Returns:
All settings

getByNames

Collection<Setting> getByNames(Collection<String> names)
Get a collection of settings by names.

Parameters:
names - The names to search for.
Returns:
A collection of settings matching the names.

add

void add(String name,
         String value)
Adds a new setting. Fails if the setting already exists.

Parameters:
name - The name of the setting to add.
value - The value of the setting to add.

update

void update(String name,
            String value)
Updates a setting.

Parameters:
name - The name of the setting to update.
value - The value of the setting to update.

delete

void delete(Collection<String> names)
Delete a set of settings with the given names.

Parameters:
names - The names of the settings to delete.


Copyright © 2011. All Rights Reserved.