|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport com.atlassian.crowd.util.persistence.hibernate.HibernateDao com.atlassian.crowd.dao.property.PropertyDAOHibernate
public class PropertyDAOHibernate
Field Summary |
---|
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
batchFinder, batchProcessor, logger |
Constructor Summary | |
---|---|
PropertyDAOHibernate()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
load, load, loadReference, loadReference, remove, save, saveOrUpdate, setBatchFinder, 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 |
Constructor Detail |
---|
public PropertyDAOHibernate()
Method Detail |
---|
public Class getPersistentClass()
HibernateDao
HibernateDao.load(long)
to
work correctly
getPersistentClass
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |