com.atlassian.crowd.model.property
Interface PropertyDAO

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
PropertyDAOHibernate

public interface PropertyDAO
extends ObjectDao

Persist property objects.


Method Summary
 Property add(Property property)
          Adds the Property to the datastore.
 java.util.List findAll()
          Finds all properties.
 Property findByName(long name)
          Finds the Property based on the passed in property name.
 void remove(long name)
          Removes a given Property from the datastore based on it's Property name, ie Property.TOKEN_SEED
 Property update(Property property)
          Updates a Property in the datastore.
 
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao
getPersistentClass, load, remove, save, update
 

Method Detail

findByName

Property findByName(long name)
                    throws ObjectNotFoundException,
                           org.springframework.dao.DataAccessException
Finds the Property based on the passed in property name.

Parameters:
name - The name of the property to find.
Returns:
The Property from the datastore.
Throws:
org.springframework.dao.DataAccessException - Generic persistance exception thrown if finding the property fails.
ObjectNotFoundException - If the Property based on the passed in name is not found.

add

Property add(Property property)
             throws org.springframework.dao.DataAccessException
Adds the Property to the datastore.

Parameters:
property - The property to persist.
Returns:
The persisted property.
Throws:
org.springframework.dao.DataAccessException - Generic persistance exception thrown if adding the property fails.

update

Property update(Property property)
                throws org.springframework.dao.DataAccessException
Updates a Property in the datastore.

Parameters:
property - The property to update.
Returns:
The updated Property.
Throws:
org.springframework.dao.DataAccessException - Generic persistance exception thrown if updating the property fails.

findAll

java.util.List findAll()
                       throws org.springframework.dao.DataAccessException
Finds all properties.

Returns:
The properties.
Throws:
org.springframework.dao.DataAccessException - Generic persistance exception thrown if loading the properties fails.

remove

void remove(long name)
Removes a given Property from the datastore based on it's Property name, ie Property.TOKEN_SEED

Parameters:
name - the name of the Property, ie Property.DOMAIN


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.