Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.pebble.dao
Interface StaticPageDAO

All Known Implementing Classes:
  FileStaticPageDAO

    public interface StaticPageDAO

Interface for the static page data access object.

Author:
  Simon Brown

Method Summary
`StaticPage` | `loadStaticPage(Blog blog, java.lang.String pageId)` Loads a specific static page.
`java.util.Collection<StaticPage>` | `loadStaticPages(Blog blog)` Loads the static pages for a given blog.
`void` | `removeStaticPage(StaticPage staticPage)` Removes the specified static page.
`void` | `storeStaticPage(StaticPage staticPage)` Stores the specified static page.

Method Detail

### loadStaticPages

    java.util.Collection<StaticPage> loadStaticPages(Blog blog)
                                                     throws PersistenceException

  Loads the static pages for a given blog.

  Parameters:
    `blog` - the owning Blog instance
  Returns:
    a Collection of StaticPage instances
  Throws:
    `PersistenceException` - if static pages cannot be loaded

### loadStaticPage

    StaticPage loadStaticPage(Blog blog,
                              java.lang.String pageId)
                              throws PersistenceException

  Loads a specific static page.

  Parameters:
    `blog` - the owning Blog
    `pageId` - the page ID
  Returns:
    a StaticPage instance
  Throws:
    `PersistenceException` - if the static page cannot be loaded

### storeStaticPage

    void storeStaticPage(StaticPage staticPage)
                         throws PersistenceException

  Stores the specified static page.

  Parameters:
    `staticPage` - the static page to store
  Throws:
    `PersistenceException` - if something goes wrong storing the static page

### removeStaticPage

    void removeStaticPage(StaticPage staticPage)
                          throws PersistenceException

  Removes the specified static page.

  Parameters:
    `staticPage` - the static page to remove
  Throws:
    `PersistenceException` - if something goes wrong removing the page

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2006, Simon Brown. All Rights Reserved.