org.riotfamily.components.dao
Interface ComponentDao

All Known Implementing Classes:
HibernateComponentDao

public interface ComponentDao

DAO interface that provides methods to access ComponentLists, ComponentVersions and VersionContainers.


Method Summary
 void deleteComponentList(ComponentList list)
          Deletes the given ComponentList.
 void deleteContent(Content content)
          Deletes the given Content.
 void deleteContentContainer(ContentContainer container)
          Deletes the given ContentContainer.
 boolean discardContainer(ContentContainer container)
           
 ContentContainer findContainerForComponent(Component component)
           
 ContentContainer findContainerForWrapper(ValueWrapper<?> wrapper)
           
 Component loadComponent(Long id)
          Loads the Component specified by the given id.
 ComponentList loadComponentList(Long id)
          Loads the ComponentList specified by the given id.
 Content loadContent(Long id)
          Loads the Content specified by the given id.
 ContentContainer loadContentContainer(Long id)
          Loads the VersionContainer specified by the given id.
 boolean publishContainer(ContentContainer container)
           
 void saveComponentList(ComponentList list)
          Saves the given ComponentList.
 void saveContent(Content content)
          Saves the given Content.
 void saveContentContainer(ContentContainer container)
          Saves the given ContentContainer.
 void updateContent(Content content)
          Updates the given Content.
 

Method Detail

loadComponentList

ComponentList loadComponentList(Long id)
Loads the ComponentList specified by the given id.


loadComponent

Component loadComponent(Long id)
Loads the Component specified by the given id.


loadContentContainer

ContentContainer loadContentContainer(Long id)
Loads the VersionContainer specified by the given id.


loadContent

Content loadContent(Long id)
Loads the Content specified by the given id.


saveComponentList

void saveComponentList(ComponentList list)
Saves the given ComponentList.


saveContentContainer

void saveContentContainer(ContentContainer container)
Saves the given ContentContainer.


saveContent

void saveContent(Content content)
Saves the given Content.


updateContent

void updateContent(Content content)
Updates the given Content.


deleteComponentList

void deleteComponentList(ComponentList list)
Deletes the given ComponentList.


deleteContent

void deleteContent(Content content)
Deletes the given Content.


deleteContentContainer

void deleteContentContainer(ContentContainer container)
Deletes the given ContentContainer.


publishContainer

boolean publishContainer(ContentContainer container)

discardContainer

boolean discardContainer(ContentContainer container)

findContainerForComponent

ContentContainer findContainerForComponent(Component component)

findContainerForWrapper

ContentContainer findContainerForWrapper(ValueWrapper<?> wrapper)