Class PreferenceRepositoryImpl
java.lang.Object
org.openwms.core.preferences.impl.jpa.PreferenceRepositoryImpl
- All Implemented Interfaces:
PreferenceRepositoryCustom
@Transactional(propagation=MANDATORY)
class PreferenceRepositoryImpl
extends Object
implements PreferenceRepositoryCustom
A PreferenceRepositoryImpl implements custom generic find methods of
PreferenceRepositoryCustom
.
All methods have to be invoked within an active transaction context.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends PreferenceEO>
List<T> findByType
(Class<T> clazz) Find and return all preferences that are of the givenclazz
type.
-
Field Details
-
em
private javax.persistence.EntityManager em
-
-
Constructor Details
-
PreferenceRepositoryImpl
PreferenceRepositoryImpl()
-
-
Method Details
-
findByType
Find and return all preferences that are of the givenclazz
type.- Specified by:
findByType
in interfacePreferenceRepositoryCustom
- Type Parameters:
T
- Any type ofPreferenceEO
- Parameters:
clazz
- A subclass ofPreferenceEO
to search for- Returns:
- A list of all preferences or an empty list, never null
-