Interface PageDAO

All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>
All Known Implementing Classes:
PageDAOImpl

public interface PageDAO extends org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteByOwner(long id)
     
    findByKey(org.exoplatform.portal.mop.page.PageKey pageKey)
     
    org.exoplatform.commons.utils.ListAccess<org.exoplatform.portal.mop.page.PageKey>
    findByQuery(org.exoplatform.portal.mop.SiteType siteType, String siteName, String name, int offset, int limit)
     
    Reads the page row again from the database, bypassing the state already loaded in the current persistence context

    Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO

    count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
  • Method Details

    • findByKey

      PageEntity findByKey(org.exoplatform.portal.mop.page.PageKey pageKey)
    • refresh

      PageEntity refresh(PageEntity entity)
      Reads the page row again from the database, bypassing the state already loaded in the current persistence context
      Parameters:
      entity - a page entity loaded by this DAO, detached from the persistence context by this call
      Returns:
      the entity read again, null when the page was removed meanwhile
    • findByQuery

      org.exoplatform.commons.utils.ListAccess<org.exoplatform.portal.mop.page.PageKey> findByQuery(org.exoplatform.portal.mop.SiteType siteType, String siteName, String name, int offset, int limit)
    • deleteByOwner

      void deleteByOwner(long id)