public class EntityJoinsImpl implements EntityJoins
Default interface EntityJoins
implementation.
interface EntityJoins
public static com.weedow.spring.data.search.join.EntityJoinsImpl.Companion Companion
public EntityJoinsImpl(@NotNull java.lang.Class<?> rootClass)
Default interface EntityJoins
implementation.
interface EntityJoins
public boolean alreadyProcessed(@NotNull java.lang.Class<?> entityClass, @NotNull java.lang.reflect.Field field)
Check if the class of the given field has been already processed, and so prevent to store the same class EntityJoin
more than once.
If the field class is the same class as the root entity, the field is considered as already processed.
entityClass
- Class of the Entityfield
- a field of the Entity declared with a with a Join Annotationclass EntityJoin
public void add(@NotNull EntityJoin entityJoin)
Add a new class EntityJoin
.
class EntityJoin
@NotNull public <T> javax.persistence.criteria.Path<?> getPath(@NotNull java.lang.String fieldPath, @NotNull javax.persistence.criteria.Root<T> root)
Returns the Path corresponding to given fieldPath
relative to the specified Root.
@NotNull public java.util.Map<java.lang.String,com.weedow.spring.data.search.join.EntityJoin> getJoins(@NotNull kotlin.jvm.functions.Function1<? super com.weedow.spring.data.search.join.EntityJoin,java.lang.Boolean> filter)
Returns every computed joins for the root Entity.
filter
- allow to filter the joins and return a sub set according to the filter predicate