|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport com.atlassian.crowd.util.persistence.hibernate.HibernateDao com.atlassian.crowd.dao.directory.DirectoryDAOHibernate
public class DirectoryDAOHibernate
Field Summary |
---|
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
batchFinder, batchProcessor, logger |
Constructor Summary | |
---|---|
DirectoryDAOHibernate()
|
Method Summary | |
---|---|
DirectoryImpl |
add(Directory directory)
Store a new directory in the data store. |
java.util.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(java.lang.String name)
Returns the directory with the specified name, throwing DirectoryNotFoundException if it cannot be found. |
java.lang.Class |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for HibernateDao.load(long) to
work correctly |
void |
remove(Directory directory)
Removes the specified directory from the data store. |
java.util.List<Directory> |
search(EntityQuery query)
Search for directories matching the specified query. |
void |
setGroupDAO(InternalGroupDao internalGroupDao)
|
void |
setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
|
void |
setUserDAO(InternalUserDao internalUserDao)
|
DirectoryImpl |
update(Directory directory)
Persists any changes made to the provided directory. |
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
load, loadReference, remove, save, saveOrUpdate, setBatchFinder, setBatchProcessor, update |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryDAOHibernate()
Method Detail |
---|
public java.lang.Class getPersistentClass()
HibernateDao
HibernateDao.load(long)
to
work correctly
getPersistentClass
in class HibernateDao
public DirectoryImpl findById(long id) throws DirectoryNotFoundException
DirectoryDao
DirectoryNotFoundException
if it cannot be found.
findById
in interface DirectoryDao
id
- the ID of the directory to find
DirectoryNotFoundException
- if there is no directory with the specified IDpublic DirectoryImpl findByName(java.lang.String name) throws DirectoryNotFoundException
DirectoryDao
DirectoryNotFoundException
if it cannot be found.
findByName
in interface DirectoryDao
name
- the name of the directory to find
DirectoryNotFoundException
- if there is no directory with the specified namepublic java.util.List<Directory> findAll()
DirectoryDao
findAll
in interface DirectoryDao
public DirectoryImpl add(Directory directory)
DirectoryDao
add
in interface DirectoryDao
directory
- the directory to persist
public DirectoryImpl update(Directory directory) throws DirectoryNotFoundException
DirectoryDao
update
in interface DirectoryDao
directory
- the directory which has changes to persist
DirectoryNotFoundException
- if the directory is not found in the data storepublic void remove(Directory directory) throws DirectoryNotFoundException
DirectoryDao
remove
in interface DirectoryDao
directory
- the directory to remove
DirectoryNotFoundException
- if the directory does not existpublic java.util.List<Directory> search(EntityQuery query)
DirectoryDao
search
in interface DirectoryDao
query
- the search query to run against the directory data store
QueryBuilder.queryFor(java.lang.Class, com.atlassian.crowd.search.EntityDescriptor)
public void setUserDAO(InternalUserDao internalUserDao)
public void setGroupDAO(InternalGroupDao internalGroupDao)
public void setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |