Package org.exoplatform.portal.mop.dao
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 Summary
Modifier and TypeMethodDescriptionintdeleteByContentId(String oldContentId) voiddeleteById(Long id) booleanexistsById(Long id) Optional<byte[]> Reads the customization of a window from its row, never from the window the persistence context holdsfindIdsByContentIds(List<String> contentIds, int offset, int limit) intupdateContentId(String oldContentId, String newContentId) intupdateCustomization(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.Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Method Details
-
findByIds
-
findCustomization
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
- 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
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 idcustomization- the window's customization, null for none- Returns:
- the number of windows written, 0 when no window has this id
-
deleteById
-
findIdsByContentIds
-
updateContentId
-
deleteByContentId
-