Package com.tridion.storage.management
Interface StorageRegistry<T>
- Type Parameters:
T- the type.
public interface StorageRegistry<T>
This is responsible for maintaining all dao factories (either FS or JPA ) for given storage id.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this StorageRegistry contains a mapping for the specified key.Returns the value to which the specified key is mapped, ornullif this map contains no mapping for the key.voidStores given storageObject with given key.values()Returns aCollectionview of the values contained in this StorageRegistry.
-
Method Details
-
put
Stores given storageObject with given key. If key exist then it throws StorageException.- Parameters:
key- storage idstorageObject- object which you want to store- Throws:
com.tridion.broker.StorageException- if given key is already exist.
-
contains
Returns true if this StorageRegistry contains a mapping for the specified key.- Parameters:
key- key whose presence in this map is to be tested- Returns:
- true if this StorageRegistry contains a mapping for the specified key
- Throws:
com.tridion.broker.StorageException
-
get
Returns the value to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key - Throws:
com.tridion.broker.StorageException
-
values
Returns aCollectionview of the values contained in this StorageRegistry.- Returns:
- a collection view of the values contained in this map
- Throws:
com.tridion.broker.StorageException
-