public class PropertyDAOHibernate extends HibernateDao implements PropertyDAO
batchFinder, batchProcessor, logger
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 |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(long) to
work correctly |
void |
remove(String key,
String name)
Removes a property.
|
Property |
update(Property property)
Updates a property.
|
load, load, loadReference, loadReference, remove, save, saveOrUpdate, setBatchFinder, setBatchProcessor, update
public Class getPersistentClass()
HibernateDao
HibernateDao.load(long)
to
work correctlygetPersistentClass
in class HibernateDao
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 Property add(Property property)
PropertyDAO
add
in interface PropertyDAO
property
- Property.public Property update(Property property)
PropertyDAO
update
in interface PropertyDAO
property
- Property.public void remove(String key, String name)
PropertyDAO
remove
in interface PropertyDAO
key
- Key.name
- Name.public List<Property> findAll()
PropertyDAO
findAll
in interface PropertyDAO
Copyright © 2013 Atlassian. All Rights Reserved.