|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
PropertyType - public interface LaraOverwriteStorage<PropertyType extends LaraProperty<PropertyType,?>>
The interface is intended for simple storages that do not care about time steps (i.e. store only the latest entry for a specific key).
| Field Summary |
|---|
| Fields inherited from interface de.cesr.lara.components.container.LaraContainer |
|---|
UNLIMITED_CAPACITY |
| Method Summary | ||
|---|---|---|
void |
addStoragePropertyObserver(LaraStorageListener.StorageEvent eventType,
LaraStorageListener listener)
Adds a given LaraStorageListener for the specified
LaraStorageListener.StorageEvent |
|
void |
clear()
Clears the storage, i.e. removes all properties. |
|
boolean |
contains(Class<?> propertyType,
String key)
Checks whether the storage contains a property of the given type with the given key. |
|
boolean |
contains(PropertyType property)
Returns true, if, and only if, this storage contains the
given property. |
|
boolean |
contains(PropertyType property,
String key)
Checks whether the memory contains the given LaraProperty with
the given key. |
|
boolean |
contains(String key)
Returns true, if, and only if, this storage contains a
property for the specified key. |
|
|
fetch(Class<RequestPropertyType> propertyType,
String key)
Generic method that returns the most recently stored property that is of the specified type and identified with key. |
|
PropertyType |
fetch(String key)
Generic method that returns the most recently stored property that is identified with key. |
|
|
fetchAll(Class<RequestPropertyType> propertyType)
Generic method that returns a collection of all properties found. |
|
Set<String> |
getAllPropertyKeys()
Returns a set of Strings that represent the keys of properties stored in the storage such that any property in the storage is represented. |
|
PropertyType |
remove(PropertyType propertyToRemove)
Removes the specified property from this storage. |
|
PropertyType |
remove(String key)
Removes the specified property from this storage. |
|
Collection<PropertyType> |
removeAll(Collection<PropertyType> propertiesToBeRemoved)
Removes all properties in the specified collection from this storage. |
|
void |
removeStoragePropertyObserver(LaraStorageListener.StorageEvent eventType,
LaraStorageListener listener)
|
|
void |
store(PropertyType propertyToStore)
Tries to add the specified property to this storage. |
|
| Methods inherited from interface de.cesr.lara.components.container.LaraCapacityManageableContainer |
|---|
getCapacityManagementView, getCapacityManager, setCapacity, setCapacityManager |
| Methods inherited from interface de.cesr.lara.components.container.LaraContainer |
|---|
getCapacity, getSize, isEmpty, isFull |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void addStoragePropertyObserver(LaraStorageListener.StorageEvent eventType,
LaraStorageListener listener)
LaraStorageListener for the specified
LaraStorageListener.StorageEvent
eventType - the category of storage property events the listeners shall be
registered forlistener - the listener to be registered
void clear()
throws LRemoveException
LRemoveException
boolean contains(Class<?> propertyType,
String key)
key -
boolean contains(PropertyType property)
true, if, and only if, this storage contains the
given property.
property -
true, if, and only if, this storage contains the
given property.
boolean contains(PropertyType property,
String key)
LaraProperty with
the given key.
key -
boolean contains(String key)
true, if, and only if, this storage contains a
property for the specified key.
key -
true, if, and only if, this storage contains a
property for the specified key.
<RequestPropertyType extends PropertyType> RequestPropertyType fetch(Class<RequestPropertyType> propertyType,
String key)
throws LRetrieveException
key.
propertyType - key - identifier for the property to be retrieved.
key.
LRetrieveException
PropertyType fetch(String key)
throws LRetrieveException
key.
key - identifier for the property to be retrieved.
key.
LRetrieveException
<RequestPropertyType extends PropertyType> Collection<RequestPropertyType> fetchAll(Class<RequestPropertyType> propertyType)
throws LRetrieveException
propertyType - identifier for the properties to be retrieved.
step and identified with key.
LRetrieveExceptionSet<String> getAllPropertyKeys()
PropertyType remove(PropertyType propertyToRemove)
throws LRemoveException
propertyToRemove - the property to be removed.
LRemoveException
PropertyType remove(String key)
throws LRemoveException
key - Key of property that shall be removed the property to be
removed. Created by Michael Elbers on 22.02.2010
LRemoveException
Collection<PropertyType> removeAll(Collection<PropertyType> propertiesToBeRemoved)
throws LRemoveException
propertiesToBeRemoved - the properties to be removed
LRemoveException
void removeStoragePropertyObserver(LaraStorageListener.StorageEvent eventType,
LaraStorageListener listener)
eventType - the category of storage property events the listeners shall be
removed fromlistener - the listener to be removed
void store(PropertyType propertyToStore)
throws LContainerFullException,
LInvalidTimestampException
propertyToStore - the property to be stored.
LContainerFullException
LInvalidTimestampException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||