org.openbandy.io.rms
Class RmsSelector

java.lang.Object
  extended by org.openbandy.io.rms.RmsSelector
All Implemented Interfaces:
Selector

public class RmsSelector
extends java.lang.Object
implements Selector

The RmsSelector is an implementation of the Selector interface for the RecordManagementStore (RMS).

(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.

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

Constructor Summary
RmsSelector(RmsSerializer rmsSerializer)
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmsSelector

public RmsSelector(RmsSerializer rmsSerializer)
Method Detail

getAll

public java.util.Vector getAll(Serializable serializable)
Description copied from interface: Selector
This method returns all objects from a storage that have the same type as serializable

Specified by:
getAll in interface Selector
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

public java.util.Vector getObjectsWhere(java.lang.String typename,
                                        java.lang.String attributeName,
                                        java.lang.String attributeValue)
Description copied from interface: Selector
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.

Specified by:
getObjectsWhere in interface Selector
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: