Interface MailBoxRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MailBox,
,Long> org.springframework.data.jpa.repository.JpaRepository<MailBox,
,Long> org.springframework.data.repository.ListCrudRepository<MailBox,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<MailBox,
,Long> org.springframework.data.repository.PagingAndSortingRepository<MailBox,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<MailBox>
,org.springframework.data.repository.Repository<MailBox,
Long>
@Repository
public interface MailBoxRepository
extends org.springframework.data.jpa.repository.JpaRepository<MailBox,Long>
메일함 관련 Repository
-
Method Summary
Modifier and TypeMethodDescriptionfindByUserName
(String userName) 사용자 이름으로 메일함 조회findByUserNameAndMailboxName
(String userName, String mailboxName) 사용자 이름과 메일함 이름으로 메일함 조회Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUserName
사용자 이름으로 메일함 조회- Parameters:
userName
- 사용자 이름- Returns:
- 사용자 이름에 해당하는 메일함 리스트
-
findByUserNameAndMailboxName
사용자 이름과 메일함 이름으로 메일함 조회- Parameters:
userName
- 사용자 이름mailboxName
- 메일함 이름 (메일함 이름은 INBOX, Outbox, Sent ,Draft ,Trash 중 하나)- Returns:
-