Package cz.encircled.joiner.spring
Class SpringJoinerRepositoryImpl<T>
java.lang.Object
cz.encircled.joiner.spring.SpringJoinerRepositoryImpl<T>
- All Implemented Interfaces:
JoinerRepository<T>,SpringJoinerRepository<T>
public abstract class SpringJoinerRepositoryImpl<T>
extends Object
implements SpringJoinerRepository<T>
Parent class for entity repositories with Joiner support within spring context.
Instance of Joiner must be available in context. JoinerConfiguration can be used
- Author:
- Vlad on 14-Aug-16.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(JoinerQuery<U, R> request) <R,U extends T>
RfindOne(JoinerQuery<U, R> request) <R,U extends T>
org.springframework.data.domain.Page<R> findPage(JoinerQuery<U, R> request, org.springframework.data.domain.Pageable pageable) This "find" method support springPageableand converts result to springPage
-
Field Details
-
delegate
-
-
Constructor Details
-
SpringJoinerRepositoryImpl
public SpringJoinerRepositoryImpl()
-
-
Method Details
-
find
- Specified by:
findin interfaceJoinerRepository<T>
-
findPage
public <R,U extends T> org.springframework.data.domain.Page<R> findPage(JoinerQuery<U, R> request, org.springframework.data.domain.Pageable pageable) Description copied from interface:SpringJoinerRepositoryThis "find" method support springPageableand converts result to springPagePageableFeatureis used- Specified by:
findPagein interfaceSpringJoinerRepository<T>- Type Parameters:
R- return type- Parameters:
request- query request- Returns:
- find result converted to spring page
- See Also:
-
findOne
- Specified by:
findOnein interfaceJoinerRepository<T>
-