Package cz.encircled.joiner.core
Class Joiner
- java.lang.Object
-
- cz.encircled.joiner.core.Joiner
-
public class Joiner extends Object
Base class of Joiner. Contains basic database operations.In spring-based environment can be instantiated using spring JoinerConfiguration.
For repository-per-entity approach this class should not be accessed directly. Instead repositories can implement
JoinerRepository.- Author:
- Kisel on 26.01.2016.
-
-
Constructor Summary
Constructors Constructor Description Joiner(javax.persistence.EntityManager entityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
List<R>find(JoinerQuery<T,R> request)<T,R>
RfindOne(JoinerQuery<T,R> request)voidsetJoinGraphRegistry(JoinGraphRegistry joinGraphRegistry)<T,R>
ExtendedJPAQuery<R>toJPAQuery(JoinerQuery<T,R> request)
-
-
-
Method Detail
-
findOne
public <T,R> R findOne(JoinerQuery<T,R> request)
-
find
public <T,R> List<R> find(JoinerQuery<T,R> request)
-
toJPAQuery
public <T,R> ExtendedJPAQuery<R> toJPAQuery(JoinerQuery<T,R> request)
-
setJoinGraphRegistry
public void setJoinGraphRegistry(JoinGraphRegistry joinGraphRegistry)
-
-