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
FieldsModifier and TypeFieldDescriptionprotected final NodeValidatorprotected final TaskDAOprotected final TaskUtilsFactoryFields inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
LOG, neo4jClient, neo4jTemplateFields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT -
Constructor Summary
ConstructorsConstructorDescriptionNeo4jTaskExecDAO(TaskDAO taskDAO, TaskUtilsFactory taskUtilsFactory, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()longcount(Task<?> task, OffsetDateTime before, OffsetDateTime after) <T extends Task<T>>
voidvoidvoiddeleteById(String key) booleanexistsById(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 StringBuilderquery(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 StringtoOrderByStatement(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:
existsByIdin interfaceDAO<TaskExec<?>>
-
findById
- Specified by:
findByIdin interfaceTaskExecDAO
-
findById
-
findRecent
-
findRecent
- Specified by:
findRecentin interfaceTaskExecDAO
-
findLatest
-
findLatestStarted
- Specified by:
findLatestStartedin interfaceTaskExecDAO
-
findLatestEnded
- Specified by:
findLatestEndedin interfaceTaskExecDAO
-
count
public long count() -
query
protected StringBuilder query(Task<?> task, OffsetDateTime before, OffsetDateTime after, Map<String, Object> parameters) -
count
- Specified by:
countin interfaceTaskExecDAO
-
toOrderByStatement
-
findAll
-
findAll
public List<TaskExec<?>> findAll(Task<?> task, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin 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:
saveAndAddin interfaceTaskExecDAO
-
delete
- Specified by:
deletein interfaceTaskExecDAO
-
delete
-
deleteById
- Specified by:
deleteByIdin interfaceDAO<TaskExec<?>>
-