Class PageDAOImpl

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<PageEntity,Long>
org.exoplatform.portal.mop.dao.AbstractDAO<PageEntity>
org.exoplatform.portal.mop.dao.PageDAOImpl
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>, PageDAO

public class PageDAOImpl extends AbstractDAO<PageEntity> implements PageDAO
  • Field Summary

    Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl

    modelClass
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.TypedQuery<org.exoplatform.portal.mop.page.PageKey>
    buildQuery(String siteName, org.exoplatform.portal.mop.SiteType siteType, String name, int offset, int limit)
     
    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 class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl

    count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

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

    • PageDAOImpl

      public PageDAOImpl()
  • Method Details

    • findByKey

      public PageEntity findByKey(org.exoplatform.portal.mop.page.PageKey pageKey)
      Specified by:
      findByKey in interface PageDAO
    • refresh

      public PageEntity refresh(PageEntity entity)
      Description copied from interface: PageDAO
      Reads the page row again from the database, bypassing the state already loaded in the current persistence context
      Specified by:
      refresh in interface PageDAO
      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
    • deleteByOwner

      public void deleteByOwner(long id)
      Specified by:
      deleteByOwner in interface PageDAO
    • findByQuery

      public 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)
      Specified by:
      findByQuery in interface PageDAO
    • buildQuery

      public jakarta.persistence.TypedQuery<org.exoplatform.portal.mop.page.PageKey> buildQuery(String siteName, org.exoplatform.portal.mop.SiteType siteType, String name, int offset, int limit)