Interface WindowDAO

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

public interface WindowDAO extends org.exoplatform.commons.api.persistence.GenericDAO<WindowEntity,Long>
  • Method Details

    • findByIds

      List<WindowEntity> findByIds(List<Long> ids)
    • findCustomization

      Optional<byte[]> findCustomization(Long id)
      Reads the customization of a window from its row, never from the window the persistence context holds
      Parameters:
      id - the window's id
      Returns:
      the window's customization, an empty array when it has none, empty when no window has this id
    • existsById

      boolean existsById(Long id)
      Parameters:
      id - the window's id
      Returns:
      true when the window's row exists, never read from the window the persistence context holds, its customization not read
    • updateCustomization

      int updateCustomization(Long id, byte[] customization)
      Writes the customization of a window to its row, and to that column alone: the other columns keep what is committed. The window the persistence context holds, when it holds one, is read again from the row
      Parameters:
      id - the window's id
      customization - the window's customization, null for none
      Returns:
      the number of windows written, 0 when no window has this id
    • deleteById

      void deleteById(Long id)
    • findIdsByContentIds

      List<Long> findIdsByContentIds(List<String> contentIds, int offset, int limit)
    • updateContentId

      int updateContentId(String oldContentId, String newContentId)
    • deleteByContentId

      int deleteByContentId(String oldContentId)