@Repository public class JPAAccessTokenDAO extends AbstractDAO<AccessToken> implements AccessTokenDAO
LOG
Constructor and Description |
---|
JPAAccessTokenDAO() |
Modifier and Type | Method and Description |
---|---|
int |
count() |
void |
delete(AccessToken accessToken) |
void |
delete(String key) |
int |
deleteExpired() |
AccessToken |
find(String key) |
List<AccessToken> |
findAll(int page,
int itemsPerPage,
List<OrderByClause> orderByClauses) |
AccessToken |
findByOwner(String username) |
AccessToken |
save(AccessToken accessToken) |
clear, detach, entityManager, entityManagerFactory, refresh
@Transactional(readOnly=true) public AccessToken find(String key)
find
in interface AccessTokenDAO
@Transactional(readOnly=true) public AccessToken findByOwner(String username)
findByOwner
in interface AccessTokenDAO
@Transactional(readOnly=true) public int count()
count
in interface AccessTokenDAO
@Transactional(readOnly=true) public List<AccessToken> findAll(int page, int itemsPerPage, List<OrderByClause> orderByClauses)
findAll
in interface AccessTokenDAO
@Transactional(rollbackFor=java.lang.Throwable.class) public AccessToken save(AccessToken accessToken)
save
in interface AccessTokenDAO
@Transactional(rollbackFor=java.lang.Throwable.class) public void delete(String key)
delete
in interface AccessTokenDAO
public void delete(AccessToken accessToken)
delete
in interface AccessTokenDAO
public int deleteExpired()
deleteExpired
in interface AccessTokenDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.