Class SimpleJdbcRepository<T,ID>
java.lang.Object
org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
- All Implemented Interfaces:
CrudRepository<T,
,ID> PagingAndSortingRepository<T,
,ID> Repository<T,
ID>
@Transactional(readOnly=true)
public class SimpleJdbcRepository<T,ID>
extends Object
implements PagingAndSortingRepository<T,ID>
Default implementation of the
CrudRepository
interface.- Author:
- Jens Schauder, Oliver Gierke, Milan Milanov
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleJdbcRepository
(JdbcAggregateOperations entityOperations, PersistentEntity<T, ?> entity) -
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 instance)
-
Constructor Details
-
SimpleJdbcRepository
-
-
Method Details
-
save
- Specified by:
save
in interfaceCrudRepository<T,
ID>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
ID>
-
findById
- Specified by:
findById
in interfaceCrudRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceCrudRepository<T,
ID>
-
count
public long count()- Specified by:
count
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>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-