public class DirectorySynchronisationTokenDaoHibernate extends HibernateDao<DirectorySynchronisationToken> implements DirectorySynchronisationTokenDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
DirectorySynchronisationTokenDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
clearSynchronisationTokenForDirectory(long directoryId)
Clears the synchronisation token for the given directory
|
String |
getLastSynchronisationTokenForDirectory(long directoryId)
Returns the last stored synchronisation token for the directory
|
Class<DirectorySynchronisationToken> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
setDirectoryDao(DirectoryDao directoryDao) |
void |
storeSynchronisationTokenForDirectory(long directoryId,
String synchronisationToken)
Store a new synchronisation token for the given directory.
|
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
setSessionFactory, withStatelessSession
public DirectorySynchronisationTokenDaoHibernate()
@Nullable public String getLastSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenDao
getLastSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenDao
directoryId
- the id of the directorypublic void storeSynchronisationTokenForDirectory(long directoryId, String synchronisationToken) throws DirectoryNotFoundException
DirectorySynchronisationTokenDao
storeSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenDao
directoryId
- the id of the directorysynchronisationToken
- the new token to storeDirectoryNotFoundException
public void clearSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenDao
clearSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenDao
directoryId
- directory idpublic Class<DirectorySynchronisationToken> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<DirectorySynchronisationToken>
@Autowired public void setDirectoryDao(DirectoryDao directoryDao)
Copyright © 2021 Atlassian. All rights reserved.