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>, QueryByExampleExecutor<T>, Repository<T, ID>
@Transactional(readOnly=true)
public class SimpleJdbcRepository<T,ID>
extends Object
implements CrudRepository<T,ID>, PagingAndSortingRepository<T,ID>, QueryByExampleExecutor<T>
Default implementation of the
CrudRepository interface.- Author:
- Jens Schauder, Oliver Gierke, Milan Milanov, Chirag Tailor, Diego Krupitza, Dmitriy Kovalenko
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleJdbcRepository(JdbcAggregateOperations entityOperations, PersistentEntity<T, ?> entity, JdbcConverter converter) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()<S extends T>
longvoidvoidvoidvoiddeleteAllById(Iterable<? extends ID> ids) voiddeleteById(ID id) <S extends T>
booleanbooleanexistsById(ID id) findAll()findAllById(Iterable<ID> ids) <S extends T, R>
RfindBy(Example<S> example, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) <S extends T>
Ssave(S instance)
-
Constructor Details
-
SimpleJdbcRepository
public SimpleJdbcRepository(JdbcAggregateOperations entityOperations, PersistentEntity<T, ?> entity, JdbcConverter converter)
-
-
Method Details
-
save
- Specified by:
savein interfaceCrudRepository<T,ID>
-
saveAll
- Specified by:
saveAllin interfaceCrudRepository<T,ID>
-
findById
-
existsById
- Specified by:
existsByIdin interfaceCrudRepository<T,ID>
-
findAll
-
findAllById
- Specified by:
findAllByIdin interfaceCrudRepository<T,ID>
-
count
public long count()- Specified by:
countin interfaceCrudRepository<T,ID>
-
deleteById
- Specified by:
deleteByIdin interfaceCrudRepository<T,ID>
-
delete
- Specified by:
deletein interfaceCrudRepository<T,ID>
-
deleteAllById
- Specified by:
deleteAllByIdin interfaceCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
findAll
-
findAll
-
findOne
-
findAll
-
findAll
-
findAll
-
count
- Specified by:
countin interfaceQueryByExampleExecutor<T>
-
exists
- Specified by:
existsin interfaceQueryByExampleExecutor<T>
-
findBy
public <S extends T, R> R findBy(Example<S> example, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) - Specified by:
findByin interfaceQueryByExampleExecutor<T>
-