Class PortalPreferenceValuePersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
com.liferay.portal.service.persistence.impl.PortalPreferenceValuePersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>, com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence

public class PortalPreferenceValuePersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException> implements com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
The persistence implementation for the portal preference value service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the portal preference value persistence.
    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 = ?.
    int
    countByP_K_N(long portalPreferencesId, String key, String namespace)
    Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
    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 = ?.
    int
    countByP_N(long portalPreferencesId, String namespace)
    Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.
    int
    countByPortalPreferencesId(long portalPreferencesId)
    Returns the number of portal preference values where portalPreferencesId = ?.
    int
    countByPortalPreferencesId(long[] portalPreferencesIds)
    Returns the number of portal preference values where portalPreferencesId = any ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    create(long portalPreferenceValueId)
    Creates a new portal preference value with the primary key.
    void
     
    com.liferay.portal.kernel.model.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.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    fetchByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    fetchByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    fetchByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    fetchByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    fetchByPrimaryKey(long portalPreferenceValueId)
    Returns the portal preference value with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByP_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 throws a NoSuchPreferenceValueException if it could not be found.
    List<com.liferay.portal.kernel.model.PortalPreferenceValue>
    findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
    List<com.liferay.portal.kernel.model.PortalPreferenceValue>
    findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
    List<com.liferay.portal.kernel.model.PortalPreferenceValue>
    findByP_N(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
    List<com.liferay.portal.kernel.model.PortalPreferenceValue>
    findByPortalPreferencesId(long[] portalPreferencesIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portal preference values where portalPreferencesId = ?, optionally using the finder cache.
    List<com.liferay.portal.kernel.model.PortalPreferenceValue>
    findByPortalPreferencesId(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portal preference values where portalPreferencesId = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
    Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    findByPrimaryKey(long portalPreferenceValueId)
    Returns the portal preference value with the primary key or throws a NoSuchPreferenceValueException if it could not be found.
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
    protected String
     
    protected String
     
    protected Map<String,Integer>
     
    com.liferay.portal.kernel.model.PortalPreferenceValue
    remove(long portalPreferenceValueId)
    Removes the portal preference value with the primary key from the database.
    com.liferay.portal.kernel.model.PortalPreferenceValue
    removeByP_I_K_N(long portalPreferencesId, int index, String key, String namespace)
    Removes the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? from the database.
    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.
    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.
    void
    removeByP_N(long portalPreferencesId, String namespace)
    Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.
    void
    removeByPortalPreferencesId(long portalPreferencesId)
    Removes all the portal preference values where portalPreferencesId = ? from the database.
    protected com.liferay.portal.kernel.model.PortalPreferenceValue
    removeImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue)
     
    com.liferay.portal.kernel.model.PortalPreferenceValue
    updateImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCTPersistenceHelper, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, getTableName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence

    fetchByP_I_K_N, findByP_K_N, findByP_K_N, findByP_K_N, findByP_K_N_SV, findByP_K_N_SV, findByP_K_N_SV, findByP_N, findByP_N, findByP_N, findByPortalPreferencesId, findByPortalPreferencesId, findByPortalPreferencesId, findByPortalPreferencesId, findByPortalPreferencesId, findByPortalPreferencesId
  • Field Details

    • FINDER_CLASS_NAME_ENTITY

      public static final String FINDER_CLASS_NAME_ENTITY
    • FINDER_CLASS_NAME_LIST_WITH_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
    • FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
  • Constructor Details

    • PortalPreferenceValuePersistenceImpl

      public PortalPreferenceValuePersistenceImpl()
  • Method Details

    • findByPortalPreferencesId

      public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByPortalPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
      Specified by:
      findByPortalPreferencesId_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portal preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByPortalPreferencesId_First

      public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
      Specified by:
      fetchByPortalPreferencesId_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long[] portalPreferencesIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portal preference values where portalPreferencesId = ?, optionally using the finder cache.

      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByPortalPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesIds - the portal preferences IDs
      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
    • removeByPortalPreferencesId

      public void removeByPortalPreferencesId(long portalPreferencesId)
      Removes all the portal preference values where portalPreferencesId = ? from the database.
      Specified by:
      removeByPortalPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
    • countByPortalPreferencesId

      public int countByPortalPreferencesId(long portalPreferencesId)
      Returns the number of portal preference values where portalPreferencesId = ?.
      Specified by:
      countByPortalPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      Returns:
      the number of matching portal preference values
    • countByPortalPreferencesId

      public int countByPortalPreferencesId(long[] portalPreferencesIds)
      Returns the number of portal preference values where portalPreferencesId = any ?.
      Specified by:
      countByPortalPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesIds - the portal preferences IDs
      Returns:
      the number of matching portal preference values
    • findByP_N

      public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByP_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Specified by:
      findByP_N_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_N_First

      public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
      Specified by:
      fetchByP_N_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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
    • removeByP_N

      public void removeByP_N(long portalPreferencesId, String namespace)
      Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.
      Specified by:
      removeByP_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
    • countByP_N

      public int countByP_N(long portalPreferencesId, String namespace)
      Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.
      Specified by:
      countByP_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      namespace - the namespace
      Returns:
      the number of matching portal preference values
    • findByP_K_N

      public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByP_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Specified by:
      findByP_K_N_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_First

      public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
      Specified by:
      fetchByP_K_N_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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
    • removeByP_K_N

      public 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.
      Specified by:
      removeByP_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
    • countByP_K_N

      public int countByP_K_N(long portalPreferencesId, String key, String namespace)
      Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
      Specified by:
      countByP_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      Returns:
      the number of matching portal preference values
    • findByP_I_K_N

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or throws a NoSuchPreferenceValueException if it could not be found.
      Specified by:
      findByP_I_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the matching portal preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_I_K_N

      public com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByP_I_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public com.liferay.portal.kernel.model.PortalPreferenceValue removeByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Removes the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? from the database.
      Specified by:
      removeByP_I_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      index - the index
      key - the key
      namespace - the namespace
      Returns:
      the portal preference value that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
    • countByP_I_K_N

      public 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 = ?.
      Specified by:
      countByP_I_K_N in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByP_K_N_SV in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Specified by:
      findByP_K_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a matching portal preference value could not be found
    • fetchByP_K_N_SV_First

      public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator)
      Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
      Specified by:
      fetchByP_K_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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
    • removeByP_K_N_SV

      public 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.
      Specified by:
      removeByP_K_N_SV in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
    • countByP_K_N_SV

      public 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 = ?.
      Specified by:
      countByP_K_N_SV in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferencesId - the portal preferences ID
      key - the key
      namespace - the namespace
      smallValue - the small value
      Returns:
      the number of matching portal preference values
    • create

      public com.liferay.portal.kernel.model.PortalPreferenceValue create(long portalPreferenceValueId)
      Creates a new portal preference value with the primary key. Does not add the portal preference value to the database.
      Specified by:
      create in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferenceValueId - the primary key for the new portal preference value
      Returns:
      the new portal preference value
    • remove

      public com.liferay.portal.kernel.model.PortalPreferenceValue remove(long portalPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Removes the portal preference value with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferenceValueId - the primary key of the portal preference value
      Returns:
      the portal preference value that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • removeImpl

      protected com.liferay.portal.kernel.model.PortalPreferenceValue removeImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • updateImpl

      public com.liferay.portal.kernel.model.PortalPreferenceValue updateImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.PortalPreferenceValue findByPrimaryKey(long portalPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
      Returns the portal preference value with the primary key or throws a NoSuchPreferenceValueException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      Parameters:
      portalPreferenceValueId - the primary key of the portal preference value
      Returns:
      the portal preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPreferenceValueException - if a portal preference value with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByPrimaryKey(long portalPreferenceValueId)
      Returns the portal preference value with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
      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
    • getBadColumnNames

      public Set<String> getBadColumnNames()
      Specified by:
      getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • getTableColumnsMap

      protected Map<String,Integer> getTableColumnsMap()
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the portal preference value persistence.
    • destroy

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPreferenceValueException>