Class DirectorySynchronisationTokenDaoHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<DirectorySynchronisationToken>
com.atlassian.crowd.dao.directory.DirectorySynchronisationTokenDaoHibernate
- All Implemented Interfaces:
DirectorySynchronisationTokenDao
public class DirectorySynchronisationTokenDaoHibernate
extends HibernateDao<DirectorySynchronisationToken>
implements DirectorySynchronisationTokenDao
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearSynchronisationTokenForDirectory
(long directoryId) Clears the synchronisation token for the given directorygetLastSynchronisationTokenForDirectory
(long directoryId) Returns the last stored synchronisation token for the directoryAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.void
setDirectoryDao
(DirectoryDao directoryDao) void
storeSynchronisationTokenForDirectory
(long directoryId, String synchronisationToken) Store a new synchronisation token for the given directory.Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
DirectorySynchronisationTokenDaoHibernate
public DirectorySynchronisationTokenDaoHibernate()
-
-
Method Details
-
getLastSynchronisationTokenForDirectory
Description copied from interface:DirectorySynchronisationTokenDao
Returns the last stored synchronisation token for the directory- Specified by:
getLastSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenDao
- Parameters:
directoryId
- the id of the directory- Returns:
- the last stored synchronisation token
-
storeSynchronisationTokenForDirectory
public void storeSynchronisationTokenForDirectory(long directoryId, String synchronisationToken) throws DirectoryNotFoundException Description copied from interface:DirectorySynchronisationTokenDao
Store a new synchronisation token for the given directory. This will overwrite the old token.- Specified by:
storeSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenDao
- Parameters:
directoryId
- the id of the directorysynchronisationToken
- the new token to store- Throws:
DirectoryNotFoundException
-
clearSynchronisationTokenForDirectory
public void clearSynchronisationTokenForDirectory(long directoryId) Description copied from interface:DirectorySynchronisationTokenDao
Clears the synchronisation token for the given directory- Specified by:
clearSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenDao
- Parameters:
directoryId
- directory id
-
getPersistentClass
Description copied from class:HibernateDao
All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.- Specified by:
getPersistentClass
in classHibernateDao<DirectorySynchronisationToken>
- Returns:
- the entity class for this DAO
-
setDirectoryDao
-