Interface PortalPreferenceValuePersistence

All Superinterfaces:
BasePersistence<PortalPreferenceValue>

@ProviderType public interface PortalPreferenceValuePersistence extends BasePersistence<PortalPreferenceValue>
The persistence interface for the portal preference value service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByPortalPreferencesId

      List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId)
      Returns all the portal preference values where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      Returns:
      the matching portal preference values
    • findByPortalPreferencesId

      List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end)
      Returns a range of all the portal preference values where portalPreferencesId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      Returns:
      the range of matching portal preference values
    • findByPortalPreferencesId

      List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching portal preference values
    • findByPortalPreferencesId

      List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching portal preference values
    • findByPortalPreferencesId_First

      PortalPreferenceValue findByPortalPreferencesId_First(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByPortalPreferencesId_First

      PortalPreferenceValue fetchByPortalPreferencesId_First(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value, or null if a matching portal preference value could not be found
    • findByPortalPreferencesId_Last

      PortalPreferenceValue findByPortalPreferencesId_Last(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the last portal preference value in the ordered set where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByPortalPreferencesId_Last

      PortalPreferenceValue fetchByPortalPreferencesId_Last(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the last portal preference value in the ordered set where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value, or null if a matching portal preference value could not be found
    • findByPortalPreferencesId_PrevAndNext

      PortalPreferenceValue[] findByPortalPreferencesId_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ?.
      Parameters:
      portalPreferenceValueId - the primary key of the current portal preference value
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next portal preference value
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • removeByPortalPreferencesId

      void removeByPortalPreferencesId(long portalPreferencesId)
      Removes all the portal preference values where portalPreferencesId = ? from the database.
      Parameters:
      portalPreferencesId - the portal preferences ID
    • countByPortalPreferencesId

      int countByPortalPreferencesId(long portalPreferencesId)
      Returns the number of portal preference values where portalPreferencesId = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      Returns:
      the number of matching portal preference values
    • findByP_N

      List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace)
      Returns all the portal preference values where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      Returns:
      the matching portal preference values
    • findByP_N

      List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end)
      Returns a range of all the portal preference values where portalPreferencesId = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      Returns:
      the range of matching portal preference values
    • findByP_N

      List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching portal preference values
    • findByP_N

      List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching portal preference values
    • findByP_N_First

      PortalPreferenceValue findByP_N_First(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_N_First

      PortalPreferenceValue fetchByP_N_First(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_N_Last

      PortalPreferenceValue findByP_N_Last(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_N_Last

      PortalPreferenceValue fetchByP_N_Last(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_N_PrevAndNext

      PortalPreferenceValue[] findByP_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferenceValueId - the primary key of the current portal preference value
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next portal preference value
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • removeByP_N

      void removeByP_N(long portalPreferencesId, String namespace)
      Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
    • countByP_N

      int countByP_N(long portalPreferencesId, String namespace)
      Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      Returns:
      the number of matching portal preference values
    • findByP_K_N

      List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace)
      Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      Returns:
      the matching portal preference values
    • findByP_K_N

      List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end)
      Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      Returns:
      the range of matching portal preference values
    • findByP_K_N

      List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching portal preference values
    • findByP_K_N

      List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching portal preference values
    • findByP_K_N_First

      PortalPreferenceValue findByP_K_N_First(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_First

      PortalPreferenceValue fetchByP_K_N_First(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_K_N_Last

      PortalPreferenceValue findByP_K_N_Last(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_Last

      PortalPreferenceValue fetchByP_K_N_Last(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_K_N_PrevAndNext

      PortalPreferenceValue[] findByP_K_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferenceValueId - the primary key of the current portal preference value
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next portal preference value
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • removeByP_K_N

      void removeByP_K_N(long portalPreferencesId, String key, String namespace)
      Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? from the database.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
    • countByP_K_N

      int countByP_K_N(long portalPreferencesId, String key, String namespace)
      Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      Returns:
      the number of matching portal preference values
    • findByP_I_K_N

      PortalPreferenceValue findByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws NoSuchPreferenceValueException
      Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or throws a NoSuchPreferenceValueException if it could not be found.
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_I_K_N

      PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace)
      Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the matching portal preference value, or null if a matching portal preference value could not be found
    • fetchByP_I_K_N

      PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace, boolean useFinderCache)
      Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      useFinderCache - whether to use the finder cache
      Returns:
      the matching portal preference value, or null if a matching portal preference value could not be found
    • removeByP_I_K_N

      PortalPreferenceValue removeByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws NoSuchPreferenceValueException
      Removes the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? from the database.
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the portal preference value that was removed
      Throws:
      NoSuchPreferenceValueException
    • countByP_I_K_N

      int countByP_I_K_N(long portalPreferencesId, int index, String key, String namespace)
      Returns the number of portal preference values where portalPreferencesId = ? and index = ? and key = ? and namespace = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the number of matching portal preference values
    • findByP_K_N_SV

      List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
      Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      Returns:
      the matching portal preference values
    • findByP_K_N_SV

      List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end)
      Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      Returns:
      the range of matching portal preference values
    • findByP_K_N_SV

      List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching portal preference values
    • findByP_K_N_SV

      List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching portal preference values
    • findByP_K_N_SV_First

      PortalPreferenceValue findByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_SV_First

      PortalPreferenceValue fetchByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_K_N_SV_Last

      PortalPreferenceValue findByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value
      Throws:
      NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_SV_Last

      PortalPreferenceValue fetchByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching portal preference value, or null if a matching portal preference value could not be found
    • findByP_K_N_SV_PrevAndNext

      PortalPreferenceValue[] findByP_K_N_SV_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
      Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferenceValueId - the primary key of the current portal preference value
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next portal preference value
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • removeByP_K_N_SV

      void removeByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
      Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ? from the database.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
    • countByP_K_N_SV

      int countByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
      Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      Returns:
      the number of matching portal preference values
    • cacheResult

      void cacheResult(PortalPreferenceValue portalPreferenceValue)
      Caches the portal preference value in the entity cache if it is enabled.
      Parameters:
      portalPreferenceValue - the portal preference value
    • cacheResult

      void cacheResult(List<PortalPreferenceValue> portalPreferenceValues)
      Caches the portal preference values in the entity cache if it is enabled.
      Parameters:
      portalPreferenceValues - the portal preference values
    • create

      PortalPreferenceValue create(long portalPreferenceValueId)
      Creates a new portal preference value with the primary key. Does not add the portal preference value to the database.
      Parameters:
      portalPreferenceValueId - the primary key for the new portal preference value
      Returns:
      the new portal preference value
    • remove

      PortalPreferenceValue remove(long portalPreferenceValueId) throws NoSuchPreferenceValueException
      Removes the portal preference value with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      portalPreferenceValueId - the primary key of the portal preference value
      Returns:
      the portal preference value that was removed
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • updateImpl

      PortalPreferenceValue updateImpl(PortalPreferenceValue portalPreferenceValue)
    • findByPrimaryKey

      PortalPreferenceValue findByPrimaryKey(long portalPreferenceValueId) throws NoSuchPreferenceValueException
      Returns the portal preference value with the primary key or throws a NoSuchPreferenceValueException if it could not be found.
      Parameters:
      portalPreferenceValueId - the primary key of the portal preference value
      Returns:
      the portal preference value
      Throws:
      NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • fetchByPrimaryKey

      PortalPreferenceValue fetchByPrimaryKey(long portalPreferenceValueId)
      Returns the portal preference value with the primary key or returns null if it could not be found.
      Parameters:
      portalPreferenceValueId - the primary key of the portal preference value
      Returns:
      the portal preference value, or null if a portal preference value with the primary key could not be found
    • findAll

      Returns all the portal preference values.
      Returns:
      the portal preference values
    • findAll

      List<PortalPreferenceValue> findAll(int start, int end)
      Returns a range of all the portal preference values.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      Returns:
      the range of portal preference values
    • findAll

      List<PortalPreferenceValue> findAll(int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
      Returns an ordered range of all the portal preference values.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of portal preference values
    • findAll

      List<PortalPreferenceValue> findAll(int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl.

      Parameters:
      start - the lower bound of the range of portal preference values
      end - the upper bound of the range of portal preference values (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of portal preference values
    • removeAll

      void removeAll()
      Removes all the portal preference values from the database.
    • countAll

      int countAll()
      Returns the number of portal preference values.
      Returns:
      the number of portal preference values