public class DirectorySynchronisationTokenDaoHibernate extends HibernateDao<DirectorySynchronisationToken> implements DirectorySynchronisationTokenDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourcesessionFactory| 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, updatesetSessionFactory, withStatelessSessionpublic DirectorySynchronisationTokenDaoHibernate()
@Nullable public String getLastSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenDaogetLastSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenDaodirectoryId - the id of the directorypublic void storeSynchronisationTokenForDirectory(long directoryId,
String synchronisationToken)
throws DirectoryNotFoundException
DirectorySynchronisationTokenDaostoreSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenDaodirectoryId - the id of the directorysynchronisationToken - the new token to storeDirectoryNotFoundExceptionpublic void clearSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenDaoclearSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenDaodirectoryId - directory idpublic Class<DirectorySynchronisationToken> getPersistentClass()
HibernateDaoHibernateDao.load(Serializable) to work
correctly.getPersistentClass in class HibernateDao<DirectorySynchronisationToken>@Autowired public void setDirectoryDao(DirectoryDao directoryDao)
Copyright © 2021 Atlassian. All rights reserved.