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, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
-
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.void
Removes 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, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
PropertyDAOHibernate
public PropertyDAOHibernate()
-
-
Method Details
-
add
Description copied from interface:PropertyDAO
Adds a new property.- Specified by:
add
in interfacePropertyDAO
- Parameters:
property
- Property.- Returns:
- The saved property.
-
find
Description copied from interface:PropertyDAO
Finds property by key and name.- Specified by:
find
in interfacePropertyDAO
- Parameters:
key
- Key.name
- Name.- Returns:
- Property.
- Throws:
ObjectNotFoundException
- If the property cannot be found.
-
findAll
Description copied from interface:PropertyDAO
Finds properties by key.- Specified by:
findAll
in interfacePropertyDAO
- Parameters:
key
- Key.- Returns:
- List of properties
-
findAll
Description copied from interface:PropertyDAO
Retrieves all properties.- Specified by:
findAll
in interfacePropertyDAO
- Returns:
- the list of properties.
-
getPersistentClass
Description copied from class:HibernateDao
All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.- Specified by:
getPersistentClass
in classHibernateDao<Property>
- Returns:
- the entity class for this DAO
-
remove
Description copied from interface:PropertyDAO
Removes a property.- Specified by:
remove
in interfacePropertyDAO
- Parameters:
key
- Key.name
- Name.
-
update
Description copied from interface:PropertyDAO
Updates a property.- Specified by:
update
in interfacePropertyDAO
- Parameters:
property
- Property.- Returns:
- The updated property.
-