Interface TokenDAO

All Superinterfaces:
SearchableTokenStorage, SessionTokenStorage
All Known Implementing Classes:
TokenDAOHibernate, TokenDAOMemory

public interface TokenDAO extends SessionTokenStorage, SearchableTokenStorage
Manages persistence of Token
  • Method Details

    • loadAll

      Collection<Token> loadAll()
      Used when switching implementations. Synchronisation is the caller's responsibility; don't allow calls to other methods while this is in progress if you need to guarantee that the data are complete.
      Returns:
      Collection<Token> of all active tokens.
      Throws:
      org.springframework.dao.DataAccessException - If the tokens could not be retrieved.
    • saveAll

      void saveAll(Collection<Token> tokens)
      Used when switching implementations. Synchronization is the caller's reponsibility; don't allow calls to other methods while this is in progress if you need to guarantee that the data are complete.
      Parameters:
      tokens - all tokens to add.