public class DirectoryDAOHibernate extends HibernateDao<DirectoryImpl> implements DirectoryDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourcesessionFactory| Constructor and Description |
|---|
DirectoryDAOHibernate() |
| Modifier and Type | Method and Description |
|---|---|
DirectoryImpl |
add(Directory directory)
Store a new directory in the data store.
|
List<Directory> |
findAll()
Returns the list of all directories in the data store, or empty list if there are no directories.
|
DirectoryImpl |
findById(long id)
Returns the directory with the specified ID, throwing
DirectoryNotFoundException if it cannot be found. |
DirectoryImpl |
findByName(String name)
Returns the directory with the specified name, throwing
DirectoryNotFoundException if it cannot be found. |
Class<DirectoryImpl> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
remove(Directory directory)
Removes the specified directory from the data store.
|
List<Directory> |
search(EntityQuery query)
Search for directories matching the specified query.
|
void |
setDirectoryInfoDao(DirectoryInfoDao directoryInfoDao) |
void |
setGroupDao(InternalGroupDao groupDao) |
void |
setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater) |
void |
setUserDao(InternalUserDao userDao) |
DirectoryImpl |
update(Directory directory)
Persists any changes made to the provided 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 DirectoryImpl add(Directory directory)
DirectoryDaoadd in interface DirectoryDaodirectory - the directory to persistpublic List<Directory> findAll()
DirectoryDaofindAll in interface DirectoryDaopublic DirectoryImpl findById(long id) throws DirectoryNotFoundException
DirectoryDaoDirectoryNotFoundException if it cannot be found.findById in interface DirectoryDaoid - the ID of the directory to findDirectoryNotFoundException - if there is no directory with the specified IDpublic DirectoryImpl findByName(String name) throws DirectoryNotFoundException
DirectoryDaoDirectoryNotFoundException if it cannot be found.findByName in interface DirectoryDaoname - the name of the directory to findDirectoryNotFoundException - if there is no directory with the specified namepublic Class<DirectoryImpl> getPersistentClass()
HibernateDaoHibernateDao.load(Serializable) to work
correctly.getPersistentClass in class HibernateDao<DirectoryImpl>public void remove(Directory directory) throws DirectoryNotFoundException
DirectoryDaoremove in interface DirectoryDaodirectory - the directory to removeDirectoryNotFoundException - if the directory does not existpublic List<Directory> search(EntityQuery query)
DirectoryDaosearch in interface DirectoryDaoquery - the search query to run against the directory data storeQueryBuilder.queryFor(java.lang.Class<T>, com.atlassian.crowd.search.EntityDescriptor)public DirectoryImpl update(Directory directory) throws DirectoryNotFoundException
DirectoryDaoupdate in interface DirectoryDaodirectory - the directory which has changes to persistDirectoryNotFoundException - if the directory is not found in the data store@Autowired public void setGroupDao(InternalGroupDao groupDao)
@Autowired public void setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
@Autowired public void setUserDao(InternalUserDao userDao)
@Autowired public void setDirectoryInfoDao(DirectoryInfoDao directoryInfoDao)
Copyright © 2021 Atlassian. All rights reserved.