Class JPAAccessTokenDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AccessToken>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAccessTokenDAO
-
- All Implemented Interfaces:
AccessTokenDAO
,DAO<AccessToken>
public class JPAAccessTokenDAO extends AbstractDAO<AccessToken> implements AccessTokenDAO
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAAccessTokenDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
void
delete(String key)
void
delete(AccessToken accessToken)
int
deleteExpired()
AccessToken
find(String key)
List<AccessToken>
findAll(int page, int itemsPerPage, List<OrderByClause> orderByClauses)
AccessToken
findByOwner(String username)
AccessToken
save(AccessToken accessToken)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Method Detail
-
find
@Transactional(readOnly=true) public AccessToken find(String key)
- Specified by:
find
in interfaceAccessTokenDAO
-
findByOwner
@Transactional(readOnly=true) public AccessToken findByOwner(String username)
- Specified by:
findByOwner
in interfaceAccessTokenDAO
-
count
@Transactional(readOnly=true) public int count()
- Specified by:
count
in interfaceAccessTokenDAO
-
findAll
@Transactional(readOnly=true) public List<AccessToken> findAll(int page, int itemsPerPage, List<OrderByClause> orderByClauses)
- Specified by:
findAll
in interfaceAccessTokenDAO
-
save
@Transactional(rollbackFor=java.lang.Throwable.class) public AccessToken save(AccessToken accessToken)
- Specified by:
save
in interfaceAccessTokenDAO
-
delete
@Transactional(rollbackFor=java.lang.Throwable.class) public void delete(String key)
- Specified by:
delete
in interfaceAccessTokenDAO
-
delete
public void delete(AccessToken accessToken)
- Specified by:
delete
in interfaceAccessTokenDAO
-
deleteExpired
public int deleteExpired()
- Specified by:
deleteExpired
in interfaceAccessTokenDAO
-
-