Class TokenDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TokenEntity, Long>
io.meeds.web.security.dao.TokenDAOImpl
- All Implemented Interfaces:
TokenDAO, org.exoplatform.commons.api.persistence.GenericDAO<TokenEntity, Long>
public class TokenDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TokenEntity, Long>
implements TokenDAO
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdeleteTokensByUsernameAndType(String username, String tokenType) findByTokenId(String tokenId) findByUsername(String username) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
TokenDAOImpl
public TokenDAOImpl()
-
-
Method Details
-
findByTokenId
- Specified by:
findByTokenIdin interfaceTokenDAO
-
findByUsername
- Specified by:
findByUsernamein interfaceTokenDAO
-
cleanExpired
public int cleanExpired()- Specified by:
cleanExpiredin interfaceTokenDAO
-
deleteTokensByUsernameAndType
- Specified by:
deleteTokensByUsernameAndTypein interfaceTokenDAO
-