Class AbstractDAO
java.lang.Object
org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
- Direct Known Subclasses:
AbstractAnyRepoExt,AbstractClientRepoExt,AbstractSchemaRepoExt,AnyTypeClassRepoExtImpl,AnyTypeRepoExtImpl,DelegationRepoExtImpl,DynRealmRepoExtImpl,ExternalResourceRepoExtImpl,FIQLQueryRepoExtImpl,ImplementationRepoExtImpl,Neo4jPolicyDAO,Neo4jRealmDAO,Neo4jRealmSearchDAO,Neo4jTaskDAO,Neo4jTaskExecDAO,NotificationRepoExtImpl,RelationshipTypeRepoExtImpl,RemediationRepoExtImpl,ReportExecRepoExtImpl,RoleRepoExtImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected final org.springframework.data.neo4j.core.Neo4jClientprotected final org.springframework.data.neo4j.core.Neo4jTemplate -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDAO(org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcascadeDelete(String leftNode, String rightNode, String rightNodeKey) protected voiddeleteRelationship(String leftNode, String rightNode, String leftNodeKey, String rightNodeKey, String relationshipType) protected <N extends AbstractNode>
Optional<N> findById(String key, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache) protected <E extends Entity,N extends AbstractNode>
List<E> findByRelationship(String leftNode, String rightNode, String rightNodeKey, Class<N> leftDomainType, javax.cache.Cache<EntityCacheKey, N> cache) protected <E extends Entity,N extends AbstractNode>
List<E> findByRelationship(String leftNode, String rightNode, String rightNodeKey, String relationshipType, Class<N> leftDomainType, javax.cache.Cache<EntityCacheKey, N> cache) protected <E extends Entity,N extends AbstractNode>
List<E> toList(Collection<Map<String, Object>> result, String property, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache) toOptional(String property, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache)
-
Field Details
-
LOG
-
neo4jTemplate
protected final org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate -
neo4jClient
protected final org.springframework.data.neo4j.core.Neo4jClient neo4jClient
-
-
Constructor Details
-
AbstractDAO
public AbstractDAO(org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient)
-
-
Method Details
-
findById
protected <N extends AbstractNode> Optional<N> findById(String key, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache) -
findByRelationship
protected <E extends Entity,N extends AbstractNode> List<E> findByRelationship(String leftNode, String rightNode, String rightNodeKey, Class<N> leftDomainType, javax.cache.Cache<EntityCacheKey, N> cache) -
findByRelationship
protected <E extends Entity,N extends AbstractNode> List<E> findByRelationship(String leftNode, String rightNode, String rightNodeKey, String relationshipType, Class<N> leftDomainType, javax.cache.Cache<EntityCacheKey, N> cache) -
toOptional
protected <E extends Entity,N extends AbstractNode> Function<Map<String,Object>, toOptionalOptional<E>> (String property, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache) -
toList
protected <E extends Entity,N extends AbstractNode> List<E> toList(Collection<Map<String, Object>> result, String property, Class<N> domainType, javax.cache.Cache<EntityCacheKey, N> cache) -
cascadeDelete
-
deleteRelationship
-