com.atlassian.crowd.dao.property
Class PropertyDAOHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.atlassian.crowd.util.persistence.hibernate.HibernateDao
              extended by com.atlassian.crowd.dao.property.PropertyDAOHibernate
All Implemented Interfaces:
PropertyDAO, org.springframework.beans.factory.InitializingBean

public class PropertyDAOHibernate
extends HibernateDao
implements PropertyDAO


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

PropertyDAOHibernate

public PropertyDAOHibernate()
Method Detail

getPersistentClass

public Class getPersistentClass()
Description copied from class: HibernateDao
All subclasses of HibernateDao must implement this method for HibernateDao.load(long) to work correctly

Specified by:
getPersistentClass in class HibernateDao
Returns:
Class

find

public Property find(String key,
                     String name)
              throws ObjectNotFoundException
Description copied from interface: PropertyDAO
Finds property by key and name.

Specified by:
find in interface PropertyDAO
Parameters:
key - Key.
name - Name.
Returns:
Property.
Throws:
ObjectNotFoundException - If the property cannot be found.

findAll

public List<Property> findAll(String key)
Description copied from interface: PropertyDAO
Finds properties by key.

Specified by:
findAll in interface PropertyDAO
Parameters:
key - Key.
Returns:
List of properties

add

public Property add(Property property)
Description copied from interface: PropertyDAO
Adds a new property.

Specified by:
add in interface PropertyDAO
Parameters:
property - Property.
Returns:
The saved property.

update

public Property update(Property property)
Description copied from interface: PropertyDAO
Updates a property.

Specified by:
update in interface PropertyDAO
Parameters:
property - Property.
Returns:
The updated property.

remove

public void remove(String key,
                   String name)
Description copied from interface: PropertyDAO
Removes a property.

Specified by:
remove in interface PropertyDAO
Parameters:
key - Key.
name - Name.

findAll

public List<Property> findAll()
Description copied from interface: PropertyDAO
Retrieves all properties.

Specified by:
findAll in interface PropertyDAO
Returns:
the list of properties.


Copyright © 2013 Atlassian. All Rights Reserved.