Interface GroupRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Group,java.lang.Long>,org.springframework.cloud.gcp.data.datastore.repository.DatastoreRepository<Group,java.lang.Long>,org.springframework.data.repository.PagingAndSortingRepository<Group,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Group>,org.springframework.data.repository.Repository<Group,java.lang.Long>
@Repository public interface GroupRepository extends org.springframework.cloud.gcp.data.datastore.repository.DatastoreRepository<Group,java.lang.Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.BooleanexistsByGroupName(java.lang.String groupName)java.util.Optional<Group>findByGroupName(java.lang.String groupName)java.util.List<Group>findByPasswordIsNotNull()java.util.List<Group>findByPasswordIsNull()java.util.List<Group>findGroupsByGroupManager(java.lang.Long groupManager)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Methods inherited from interface org.springframework.cloud.gcp.data.datastore.repository.DatastoreRepository
performTransaction
-
-
-
-
Method Detail
-
findByGroupName
java.util.Optional<Group> findByGroupName(java.lang.String groupName)
-
findGroupsByGroupManager
java.util.List<Group> findGroupsByGroupManager(java.lang.Long groupManager)
-
existsByGroupName
java.lang.Boolean existsByGroupName(java.lang.String groupName)
-
findByPasswordIsNotNull
@Query("SELECT * FROM groups WHERE password != null") java.util.List<Group> findByPasswordIsNotNull()
-
findByPasswordIsNull
java.util.List<Group> findByPasswordIsNull()
-
-