Class POJORepositoryMapImpl<T>
java.lang.Object
info.ejava.assignments.api.houserenters.svc.POJORepositoryMapImpl<T>
- Type Parameters:
T
- object type
- All Implemented Interfaces:
POJORepository<T>
,org.springframework.data.repository.CrudRepository<T,
,String> org.springframework.data.repository.ListCrudRepository<T,
,String> org.springframework.data.repository.ListPagingAndSortingRepository<T,
,String> org.springframework.data.repository.PagingAndSortingRepository<T,
,String> org.springframework.data.repository.Repository<T,
String>
- Direct Known Subclasses:
RentersDTORepositoryMapImpl
This class implemenets the full Spring Data CRUD Repository interface
for a templated object type using a String primary key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
methods to round out the interfacevoid
void
void
deleteAllById
(Iterable<? extends String> ids) void
deleteById
(String id) boolean
existsById
(String id) findAll()
protected org.springframework.data.domain.Page
<T> org.springframework.data.domain.Page
<T> findAll
(org.springframework.data.domain.Pageable pageable) findAll
(org.springframework.data.domain.Sort sort) findAllById
(Iterable<String> strings) protected String
nextId()
<S extends T>
Ssave
(S obj)
-
Field Details
-
ID
-
objects
-
getId
-
setId
-
idPrefix
-
-
Constructor Details
-
POJORepositoryMapImpl
public POJORepositoryMapImpl()
-
-
Method Details
-
nextId
-
save
-
saveAll
-
findById
-
existsById
-
findAll
-
findAllById
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable) -
findAll
-
findAll
-
findFirst
-
count
public long count() -
deleteById
-
deleteAll
public void deleteAll() -
delete
methods to round out the interface -
deleteAllById
-
deleteAll
-
findAll
-