Class Neo4jTaskExecDAO
java.lang.Object
org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
org.apache.syncope.core.persistence.neo4j.dao.Neo4jTaskExecDAO
- All Implemented Interfaces:
DAO<TaskExec<?>>
,TaskExecDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final NodeValidator
protected final TaskDAO
protected final TaskUtilsFactory
Fields inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
LOG, neo4jClient, neo4jTemplate
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT
-
Constructor Summary
ConstructorDescriptionNeo4jTaskExecDAO
(TaskDAO taskDAO, TaskUtilsFactory taskUtilsFactory, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
long
count
(Task<?> task, OffsetDateTime before, OffsetDateTime after) <T extends Task<T>>
voidvoid
void
deleteById
(String key) boolean
existsById
(String key) findAll()
findAll
(Task<?> task, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) findLatest
(TaskType type, Task<?> task, String field) findLatestEnded
(TaskType type, Task<?> task) findLatestStarted
(TaskType type, Task<?> task) findRecent
(int max) findRecent
(TaskType type, int max) protected StringBuilder
query
(Task<?> task, OffsetDateTime before, OffsetDateTime after, Map<String, Object> parameters) <S extends TaskExec<?>>
Ssave
(S execution) <T extends Task<T>>
voidsaveAndAdd
(TaskType taskType, String taskKey, TaskExec<T> execution) protected String
toOrderByStatement
(Stream<org.springframework.data.domain.Sort.Order> orderByClauses) Methods inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
cascadeDelete, deleteRelationship, findById, findByRelationship, findByRelationship, toList, toOptional
-
Field Details
-
taskDAO
-
taskUtilsFactory
-
nodeValidator
-
-
Constructor Details
-
Neo4jTaskExecDAO
public Neo4jTaskExecDAO(TaskDAO taskDAO, TaskUtilsFactory taskUtilsFactory, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator)
-
-
Method Details
-
existsById
- Specified by:
existsById
in interfaceDAO<TaskExec<?>>
-
findById
- Specified by:
findById
in interfaceTaskExecDAO
-
findById
-
findRecent
-
findRecent
- Specified by:
findRecent
in interfaceTaskExecDAO
-
findLatest
-
findLatestStarted
- Specified by:
findLatestStarted
in interfaceTaskExecDAO
-
findLatestEnded
- Specified by:
findLatestEnded
in interfaceTaskExecDAO
-
count
public long count() -
query
protected StringBuilder query(Task<?> task, OffsetDateTime before, OffsetDateTime after, Map<String, Object> parameters) -
count
- Specified by:
count
in interfaceTaskExecDAO
-
toOrderByStatement
-
findAll
-
findAll
public List<TaskExec<?>> findAll(Task<?> task, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) - Specified by:
findAll
in interfaceTaskExecDAO
-
save
@Transactional(rollbackFor=java.lang.Throwable.class) public <S extends TaskExec<?>> S save(S execution) -
saveAndAdd
@Transactional(rollbackFor=java.lang.Throwable.class) public <T extends Task<T>> void saveAndAdd(TaskType taskType, String taskKey, TaskExec<T> execution) - Specified by:
saveAndAdd
in interfaceTaskExecDAO
-
delete
- Specified by:
delete
in interfaceTaskExecDAO
-
delete
-
deleteById
- Specified by:
deleteById
in interfaceDAO<TaskExec<?>>
-