Class SimpleNeo4jRepository<T,ID>
java.lang.Object
org.springframework.data.neo4j.repository.support.SimpleNeo4jRepository<T,ID>
- Type Parameters:
T
- the type of the domain class managed by this repositoryID
- the type of the unique identifier of the domain class
- All Implemented Interfaces:
CrudRepository<T,
,ID> PagingAndSortingRepository<T,
,ID> Repository<T,
ID>
@Repository
@Transactional(readOnly=true)
@API(status=STABLE,
since="6.0")
public class SimpleNeo4jRepository<T,ID>
extends Object
implements PagingAndSortingRepository<T,ID>, CrudRepository<T,ID>
Repository base implementation for Neo4j.
- Since:
- 6.0
- Author:
- Gerrit Meier, Michael J. Simons, Ján Šúr, Jens Schauder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SimpleNeo4jRepository
(Neo4jOperations neo4jOperations, Neo4jEntityInformation<T, ID> entityInformation) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
void
void
deleteAllById
(Iterable<? extends ID> ids) void
deleteById
(ID id) boolean
existsById
(ID id) findAll()
findAllById
(Iterable<ID> ids) <S extends T>
Ssave
(S entity)
-
Constructor Details
-
SimpleNeo4jRepository
protected SimpleNeo4jRepository(Neo4jOperations neo4jOperations, Neo4jEntityInformation<T, ID> entityInformation)
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
count
public long count()- Specified by:
count
in interfaceCrudRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceCrudRepository<T,
ID>
-
save
- Specified by:
save
in interfaceCrudRepository<T,
ID>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
ID>
-
deleteById
- Specified by:
deleteById
in interfaceCrudRepository<T,
ID>
-
delete
- Specified by:
delete
in interfaceCrudRepository<T,
ID>
-
deleteAllById
- Specified by:
deleteAllById
in interfaceCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceCrudRepository<T,
ID>
-