Interface TranslationsRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<LocalizedText,java.lang.String>
,org.springframework.data.mongodb.repository.MongoRepository<LocalizedText,java.lang.String>
,org.springframework.data.repository.PagingAndSortingRepository<LocalizedText,java.lang.String>
,org.springframework.data.repository.query.QueryByExampleExecutor<LocalizedText>
,org.springframework.data.repository.Repository<LocalizedText,java.lang.String>
@Repository public interface TranslationsRepository extends org.springframework.data.mongodb.repository.MongoRepository<LocalizedText,java.lang.String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteById(java.lang.String s)
java.util.List<LocalizedText>
findByLangId(java.lang.String langId)
java.util.List<LocalizedText>
findByTextAndLang(java.lang.String text, Language lang)
<S extends LocalizedText>
Sinsert(S entity)
<S extends LocalizedText>
Ssave(S entity)
org.springframework.data.domain.Page<LocalizedText>
search(java.lang.String query, org.springframework.data.domain.Pageable page)
java.util.List<LocalizedText>
searchById(java.lang.String query)
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, existsById, findAllById, findById
-
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, findAll, findAll, insert, saveAll
-
-
-
-
Method Detail
-
insert
@CacheEvict(value="translations", allEntries=true) <S extends LocalizedText> S insert(S entity)
- Specified by:
insert
in interfaceorg.springframework.data.mongodb.repository.MongoRepository<LocalizedText,java.lang.String>
-
save
@CacheEvict(value="translations", allEntries=true) <S extends LocalizedText> S save(S entity)
- Specified by:
save
in interfaceorg.springframework.data.repository.CrudRepository<LocalizedText,java.lang.String>
-
deleteById
@CacheEvict(value="translations", allEntries=true) void deleteById(java.lang.String s)
- Specified by:
deleteById
in interfaceorg.springframework.data.repository.CrudRepository<LocalizedText,java.lang.String>
-
search
@Query("{ $or: [ { \'text\' : {$regex:?0,$options:\'i\'} } ] }") org.springframework.data.domain.Page<LocalizedText> search(java.lang.String query, org.springframework.data.domain.Pageable page)
-
searchById
@Query("{ \'_id\' : {$regex:?0} }") java.util.List<LocalizedText> searchById(java.lang.String query)
-
findByLangId
@Query("{\'lang.id\': ?0}") java.util.List<LocalizedText> findByLangId(java.lang.String langId)
-
findByTextAndLang
java.util.List<LocalizedText> findByTextAndLang(java.lang.String text, Language lang)
-
-