org.openwms.core.integration
Interface PreferenceDao<ID extends Serializable>

Type Parameters:
ID - The type of the entity class' unique id
All Known Subinterfaces:
PreferenceWriter<ID>
All Known Implementing Classes:
PreferencesDaoImpl, PreferencesDaoImpl

public interface PreferenceDao<ID extends Serializable>

A PreferenceDao offers basic functionality to find and retrieve AbstractPreference s.

Since:
0.1
Version:
$Revision: $
Author:
Heiko Scherrer

Method Summary
 List<AbstractPreference> findAll()
          Find all entities and return them as a List.
 AbstractPreference findByKey(ID id)
          Find and return the entity identified by the natural unique key.
<T extends AbstractPreference>
List<T>
findByType(Class<T> clazz)
          Find all preferences of a particular type.
 

Method Detail

findByKey

AbstractPreference findByKey(ID id)
Find and return the entity identified by the natural unique key.

Parameters:
id - Natural key to find the entity (also known as business key)
Returns:
The found entity

findByType

<T extends AbstractPreference> List<T> findByType(Class<T> clazz)
Find all preferences of a particular type.

Type Parameters:
T - Any subtype of AbstractPreference
Parameters:
clazz - The type to search for
Returns:
A list of entities

findAll

List<AbstractPreference> findAll()
Find all entities and return them as a List.

Returns:
List of all entities


Copyright © 2005-2011 openwms.org. All Rights Reserved.