Package com.atlassian.crowd.dao.property
Class PropertyDAOHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<Property>
com.atlassian.crowd.dao.property.PropertyDAOHibernate
- All Implemented Interfaces:
PropertyDAO
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourceFields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new property.Finds property by key and name.findAll()Retrieves all properties.Finds properties by key.All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.voidRemoves a property.Updates a property.Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
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, updateMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
PropertyDAOHibernate
public PropertyDAOHibernate()
-
-
Method Details
-
add
Description copied from interface:PropertyDAOAdds a new property.- Specified by:
addin interfacePropertyDAO- Parameters:
property- Property.- Returns:
- The saved property.
-
find
Description copied from interface:PropertyDAOFinds property by key and name.- Specified by:
findin interfacePropertyDAO- Parameters:
key- Key.name- Name.- Returns:
- Property.
- Throws:
ObjectNotFoundException- If the property cannot be found.
-
findAll
Description copied from interface:PropertyDAOFinds properties by key.- Specified by:
findAllin interfacePropertyDAO- Parameters:
key- Key.- Returns:
- List of properties
-
findAll
Description copied from interface:PropertyDAORetrieves all properties.- Specified by:
findAllin interfacePropertyDAO- Returns:
- the list of properties.
-
getPersistentClass
Description copied from class:HibernateDaoAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.- Specified by:
getPersistentClassin classHibernateDao<Property>- Returns:
- the entity class for this DAO
-
remove
Description copied from interface:PropertyDAORemoves a property.- Specified by:
removein interfacePropertyDAO- Parameters:
key- Key.name- Name.
-
update
Description copied from interface:PropertyDAOUpdates a property.- Specified by:
updatein interfacePropertyDAO- Parameters:
property- Property.- Returns:
- The updated property.
-