Class InternalEntityLinkQueryImpl<E extends Entity & EntityLinkInfo>
java.lang.Object
org.flowable.entitylink.service.impl.InternalEntityLinkQueryImpl<E>
- All Implemented Interfaces:
SingleCachedEntityMatcher<E>
,CachedEntityMatcher<E>
,InternalEntityLinkQuery<E>
public class InternalEntityLinkQueryImpl<E extends Entity & EntityLinkInfo>
extends Object
implements InternalEntityLinkQuery<E>, CachedEntityMatcher<E>, SingleCachedEntityMatcher<E>
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected final Function<InternalEntityLinkQueryImpl<E>,
List<E>> protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Collection<String>
protected String
protected final Function<InternalEntityLinkQueryImpl<E>,
E> -
Constructor Summary
ConstructorsConstructorDescriptionInternalEntityLinkQueryImpl
(Function<InternalEntityLinkQueryImpl<E>, List<E>> listProvider, Function<InternalEntityLinkQueryImpl<E>, E> singleResultProvider) -
Method Summary
Modifier and TypeMethodDescriptionhierarchyType
(String hierarchyType) Query entity links with the given hierarchy type.boolean
isRetained
(E entity, Object param) boolean
isRetained
(E entity, InternalEntityLinkQueryImpl<?> param) boolean
isRetained
(Collection<E> databaseEntities, Collection<CachedEntity> cachedEntities, E entity, Object param) Returns true if an entity from the cache should be retained (i.e.Query entity links with the given link type.list()
referenceScopeDefinitionId
(String referenceScopeDefinitionId) Query entity links with the given reference scope definition id.referenceScopeId
(String referenceScopeId) Query entity links with the given reference scope id.referenceScopeType
(String referenceScopeType) Query entity links with the given reference scope type.rootScopeId
(String rootScopeId) Query entity links with the given root scope id.rootScopeType
(String rootScopeType) Query entity links with the given root scope type.scopeDefinitionId
(String scopeDefinitionId) Query entity links with the given scope definition id.Query entity links with the given scope id.scopeIds
(Collection<String> scopeIds) Query entity links with the given scope ids.Query entity links with the given scope type.
-
Field Details
-
listProvider
protected final Function<InternalEntityLinkQueryImpl<E extends Entity & EntityLinkInfo>,List<E extends Entity & EntityLinkInfo>> listProvider -
singleResultProvider
protected final Function<InternalEntityLinkQueryImpl<E extends Entity & EntityLinkInfo>,E extends Entity & EntityLinkInfo> singleResultProvider -
scopeId
-
scopeIds
-
scopeDefinitionId
-
scopeType
-
referenceScopeId
-
referenceScopeDefinitionId
-
referenceScopeType
-
rootScopeId
-
rootScopeType
-
linkType
-
hierarchyType
-
-
Constructor Details
-
InternalEntityLinkQueryImpl
public InternalEntityLinkQueryImpl(Function<InternalEntityLinkQueryImpl<E>, List<E>> listProvider, Function<InternalEntityLinkQueryImpl<E>, E> singleResultProvider)
-
-
Method Details
-
scopeId
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given scope id.- Specified by:
scopeId
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
scopeIds
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given scope ids.- Specified by:
scopeIds
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
scopeDefinitionId
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given scope definition id.- Specified by:
scopeDefinitionId
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
scopeType
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given scope type.- Specified by:
scopeType
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
referenceScopeId
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given reference scope id.- Specified by:
referenceScopeId
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
referenceScopeDefinitionId
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given reference scope definition id.- Specified by:
referenceScopeDefinitionId
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
referenceScopeType
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given reference scope type.- Specified by:
referenceScopeType
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
rootScopeId
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given root scope id.- Specified by:
rootScopeId
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
rootScopeType
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given root scope type.- Specified by:
rootScopeType
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
linkType
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given link type.- Specified by:
linkType
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
hierarchyType
Description copied from interface:InternalEntityLinkQuery
Query entity links with the given hierarchy type.- Specified by:
hierarchyType
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
list
- Specified by:
list
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
singleResult
- Specified by:
singleResult
in interfaceInternalEntityLinkQuery<E extends Entity & EntityLinkInfo>
-
getScopeIds
-
getScopeId
-
getScopeDefinitionId
-
getScopeType
-
getReferenceScopeId
-
getReferenceScopeDefinitionId
-
getReferenceScopeType
-
getRootScopeId
-
getRootScopeType
-
getLinkType
-
getHierarchyType
-
getParameter
-
isRetained
- Specified by:
isRetained
in interfaceSingleCachedEntityMatcher<E extends Entity & EntityLinkInfo>
-
isRetained
public boolean isRetained(Collection<E> databaseEntities, Collection<CachedEntity> cachedEntities, E entity, Object param) Description copied from interface:CachedEntityMatcher
Returns true if an entity from the cache should be retained (i.e. used as return result for a query). Most implementations of this interface probably don't need this method, and should extend the simplerCachedEntityMatcherAdapter
, which hides this method. Note that the databaseEntities collection can be null, in case only the cache is checked.- Specified by:
isRetained
in interfaceCachedEntityMatcher<E extends Entity & EntityLinkInfo>
-
isRetained
-