Package org.exoplatform.web.security.jpa
Class TokenDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TokenEntity,Long>
org.exoplatform.web.security.jpa.TokenDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<TokenEntity,,Long> TokenDAO
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 TypeMethodDescriptionvoidvoiddeleteTokensByUsernameAndType(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 java.lang.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 void cleanExpired()- Specified by:
cleanExpiredin interfaceTokenDAO
-
deleteTokensByUsernameAndType
- Specified by:
deleteTokensByUsernameAndTypein interfaceTokenDAO
-