org.openbandy.io.storage
Interface Selector

All Known Implementing Classes:
RmsSelector

public interface Selector

A Selector allows to access serializable objects in a storage.

(c) Copyright Philipp Bolliger 2008, ALL RIGHTS RESERVED.

Version:
0.1
Author:
Philipp Bolliger (philipp@bolliger.name)

Method Summary
 java.util.Vector getAll(Serializable serializable)
          This method returns all objects from a storage that have the same type as serializable
 java.util.Vector getObjectsWhere(java.lang.String typename, java.lang.String attributeName, java.lang.String attributeValue)
          This method returns all objects from a storage that match the constraints given as parameter.
 

Method Detail

getAll

java.util.Vector getAll(Serializable serializable)
This method returns all objects from a storage that have the same type as serializable

Parameters:
serializable - An exemplary instance of the type of the objects that should be returned
Returns:
A Vector of all objects in found in the store

getObjectsWhere

java.util.Vector getObjectsWhere(java.lang.String typename,
                                 java.lang.String attributeName,
                                 java.lang.String attributeValue)
This method returns all objects from a storage that match the constraints given as parameter. Thus, it allows to select certain objects from the storage.

Parameters:
typename - The short class name of the object that shall be retrieved (see org.openbandy.util.StringUtil)
attributeName - Name of the attribute used for selection
attributeValue - Attribute value used for selection
Returns: