S - T - public static interface RelationService.RelationFinder<S extends Relatable,T extends Relatable> extends ManyFetcher<RelationInstance<S,T>>, SingleFetcher<RelationInstance<S,T>>
Currently both one of a source or source class and a target or targetClass is required.
| Modifier and Type | Method and Description |
|---|---|
RelationService.RelationFinder<S,T> |
fromSource(S source)
Apply a filter that restricts the returned relations to those that have the given entity as the source of the relation
|
RelationService.RelationFinder<S,T> |
fromSourceClass(Class<S> sourceClass)
Apply a filter that restricts the returned relations to those that have the given class as a source type.
|
RelationService.RelationFinder<S,T> |
toTarget(T target)
Apply a filter that restricts the returned relations to those that have the given entity as the target of the relation
|
RelationService.RelationFinder<S,T> |
toTargetClass(Class<T> targetClass)
Apply a filter that restricts the returned relations to those that have the given class as a target type.
|
RelationService.RelationFinder<S,T> |
withName(String name)
Apply a filter that restricts the returned relations to those with the given name
|
fetchManyfetchOne, fetchOneOrNullRelationService.RelationFinder<S,T> toTargetClass(Class<T> targetClass)
targetClass - RelationService.RelationFinder<S,T> fromSourceClass(Class<S> sourceClass)
sourceClass - RelationService.RelationFinder<S,T> toTarget(T target)
target - RelationService.RelationFinder<S,T> fromSource(S source)
source - RelationService.RelationFinder<S,T> withName(String name)
name - Copyright © 2003–2017 Atlassian. All rights reserved.