|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
com.atlassian.crowd.util.persistence.hibernate.HibernateDao
com.atlassian.crowd.model.directory.DirectoryDAOHibernate
public class DirectoryDAOHibernate
Hibernate implementation of the DirectoryDAO interface.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
|---|
batchProcessor |
| Constructor Summary | |
|---|---|
DirectoryDAOHibernate()
|
|
| Method Summary | |
|---|---|
Directory |
add(Directory directory)
Adds the Directory to the datastore. |
Directory |
findByID(long ID)
Finds a given Directory based on the passed in ID. |
Directory |
findByName(java.lang.String name)
Finds the Directory based on the passed in directory name. |
java.lang.Class |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for HibernateDao.load(long) to
work correctly |
void |
remove(Directory directory)
Removes a Directory from the datastore. |
java.util.List |
search(SearchContext searchContext)
Performs a search for Directorys based on a given SearchContext |
Directory |
update(Directory directory)
Updates an Directory in the datastore. |
| Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
|---|
load, remove, save, saveOrUpdate, 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 |
| Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao |
|---|
load, remove, save, update |
| Constructor Detail |
|---|
public DirectoryDAOHibernate()
| Method Detail |
|---|
public Directory add(Directory directory)
DirectoryDAODirectory to the datastore.
add in interface DirectoryDAOdirectory - The directory to persist.
DirectoryDAO.add(Directory)
public Directory findByID(long ID)
throws ObjectNotFoundException
DirectoryDAODirectory based on the passed in ID.
findByID in interface DirectoryDAOID - the id of the Directory you are trying to find.
Directory
ObjectNotFoundException - If the Directory based on the passed in ID is not found- See Also:
DirectoryDAO.findByID(long)public java.util.List search(SearchContext searchContext)
DirectoryDAODirectorys based on a given SearchContext
search in interface DirectoryDAOsearchContext - The search context to find a given list of directories.
List of Directorys found from the SearchContext.DirectoryDAO.search(SearchContext)
public Directory findByName(java.lang.String name)
throws ObjectNotFoundException
DirectoryDAODirectory based on the passed in directory name.
findByName in interface DirectoryDAOname - The name of the directory to find.
Directory from the datastore.
ObjectNotFoundException - If the Directory based on the passed in name is not found.- See Also:
DirectoryDAO.findByName(String)
public Directory update(Directory directory)
throws ObjectNotFoundException
DirectoryDAODirectory in the datastore.
update in interface DirectoryDAOdirectory - The directory to update.
Directory.
ObjectNotFoundException - if the given Directory cannot be foundDirectoryDAO.update(Directory)public void remove(Directory directory)
DirectoryDAODirectory from the datastore.
remove in interface DirectoryDAOdirectory - The directory to remove.DirectoryDAO.remove(Directory)public java.lang.Class getPersistentClass()
HibernateDaoHibernateDao.load(long) to
work correctly
getPersistentClass in interface ObjectDaogetPersistentClass in class HibernateDaoObjectDao.getPersistentClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||