Class ProfilePropertySettingDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProfilePropertySettingEntity, Long>
org.exoplatform.social.core.jpa.storage.dao.jpa.ProfilePropertySettingDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ProfilePropertySettingEntity, Long>

public class ProfilePropertySettingDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProfilePropertySettingEntity, Long>
  • Constructor Details

    • ProfilePropertySettingDAO

      public ProfilePropertySettingDAO()
  • Method Details

    • findProfileSettingByName

      public ProfilePropertySettingEntity findProfileSettingByName(String name)
    • findSynchronizedSettings

      public List<ProfilePropertySettingEntity> findSynchronizedSettings()
    • findOrderedSettings

      public List<ProfilePropertySettingEntity> findOrderedSettings()
    • hasChildProperties

      public boolean hasChildProperties(Long id)
    • findListedOnAccountForm

      public List<ProfilePropertySettingEntity> findListedOnAccountForm()
    • findListedOnRegistration

      public List<ProfilePropertySettingEntity> findListedOnRegistration()
    • clearListingFlags

      public boolean clearListingFlags(Long id)
      Switches off both listing flags of a stored setting by changing its managed entity, so that the flushed UPDATE names only the changed columns (the entity is @DynamicUpdate) and the update date moves with them. The entity is then detached, so that a later read in the same request reloads the row, with what another writer committed meanwhile. Runs in the caller's transaction, which must be active.
      Parameters:
      id - the setting's technical identifier
      Returns:
      true when a flag was on and the row was changed