Package org.exoplatform.portal.mop.dao
Class WindowDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<WindowEntity,Long>
org.exoplatform.portal.mop.dao.AbstractDAO<WindowEntity>
org.exoplatform.portal.mop.dao.WindowDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<WindowEntity,,Long> WindowDAO
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdeleteByContentId(String contentId) 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 class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, findAll, update, updateAll
-
Constructor Details
-
WindowDAOImpl
public WindowDAOImpl()
-
-
Method Details
-
find
- Specified by:
findin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<WindowEntity,Long> - Overrides:
findin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<WindowEntity,Long>
-
findCustomization
Description copied from interface:WindowDAOReads the customization of a window from its row, never from the window the persistence context holds- Specified by:
findCustomizationin interfaceWindowDAO- 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
- Specified by:
existsByIdin interfaceWindowDAO- 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
Description copied from interface:WindowDAOWrites 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- Specified by:
updateCustomizationin interfaceWindowDAO- 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
-
findIdsByContentIds
- Specified by:
findIdsByContentIdsin interfaceWindowDAO
-
updateContentId
- Specified by:
updateContentIdin interfaceWindowDAO
-
deleteByContentId
- Specified by:
deleteByContentIdin interfaceWindowDAO
-
findByIds
-
deleteById
- Specified by:
deleteByIdin interfaceWindowDAO
-