Interface CollectionDAO.TokenDAO

Enclosing interface:
CollectionDAO

public static interface CollectionDAO.TokenDAO
  • Method Details

    • findByToken

      TokenInterface findByToken(String token) throws org.jdbi.v3.core.statement.StatementException
      Throws:
      org.jdbi.v3.core.statement.StatementException
    • getAllUserTokenWithType

      List<TokenInterface> getAllUserTokenWithType(UUID userId, String tokenType) throws org.jdbi.v3.core.statement.StatementException
      Throws:
      org.jdbi.v3.core.statement.StatementException
    • insert

      void insert(String json)
    • update

      void update(String token, String json)
    • delete

      void delete(String token)
    • deleteAll

      void deleteAll(List<String> tokens)
    • deleteTokenByUserAndType

      void deleteTokenByUserAndType(UUID userid, String tokenType)