Interface PropertyDAO

All Known Implementing Classes:
EncryptingPropertyDAO, PropertyDAOHibernate

public interface PropertyDAO
Persist property objects.
  • Method Details

    • find

      Property find(String key, String name) throws ObjectNotFoundException
      Finds property by key and name.
      Parameters:
      key - Key.
      name - Name.
      Returns:
      Property.
      Throws:
      ObjectNotFoundException - If the property cannot be found.
    • findAll

      List<Property> findAll(String key)
      Finds properties by key.
      Parameters:
      key - Key.
      Returns:
      List of properties
    • add

      Property add(Property property)
      Adds a new property.
      Parameters:
      property - Property.
      Returns:
      The saved property.
    • update

      Property update(Property property)
      Updates a property.
      Parameters:
      property - Property.
      Returns:
      The updated property.
    • remove

      void remove(String key, String name)
      Removes a property.
      Parameters:
      key - Key.
      name - Name.
    • findAll

      List<Property> findAll()
      Retrieves all properties.
      Returns:
      the list of properties.