public class PropertyDAOHibernate extends HibernateDao<Property> implements PropertyDAO
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
PropertyDAOHibernate() |
Modifier and Type | Method and Description |
---|---|
Property |
add(Property property)
Adds a new property.
|
Property |
find(String key,
String name)
Finds property by key and name.
|
List<Property> |
findAll()
Retrieves all properties.
|
List<Property> |
findAll(String key)
Finds properties by key.
|
Class<Property> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
remove(String key,
String name)
Removes a property.
|
Property |
update(Property property)
Updates a property.
|
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, 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
setSessionFactory, withStatelessSession
public Property add(Property property)
PropertyDAO
add
in interface PropertyDAO
property
- Property.public Property find(String key, String name) throws ObjectNotFoundException
PropertyDAO
find
in interface PropertyDAO
key
- Key.name
- Name.ObjectNotFoundException
- If the property cannot be found.public List<Property> findAll(String key)
PropertyDAO
findAll
in interface PropertyDAO
key
- Key.public List<Property> findAll()
PropertyDAO
findAll
in interface PropertyDAO
public Class<Property> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<Property>
public void remove(String key, String name)
PropertyDAO
remove
in interface PropertyDAO
key
- Key.name
- Name.public Property update(Property property)
PropertyDAO
update
in interface PropertyDAO
property
- Property.Copyright © 2020 Atlassian. All rights reserved.