Class PortletPreferenceValuePersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
com.liferay.portal.service.persistence.impl.PortletPreferenceValuePersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>, com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence

public class PortletPreferenceValuePersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException> implements com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
The persistence implementation for the portlet 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 portlet preference value persistence.
    int
    countByC_N_SV(long companyId, String name, String smallValue)
    Returns the number of portlet preference values where companyId = ? and name = ? and smallValue = ?.
    int
    countByP_I_N(long portletPreferencesId, int index, String name)
    Returns the number of portlet preference values where portletPreferencesId = ? and index = ? and name = ?.
    int
    countByP_N(long portletPreferencesId, String name)
    Returns the number of portlet preference values where portletPreferencesId = ? and name = ?.
    int
    countByP_N_SV(long portletPreferencesId, String name, String smallValue)
    Returns the number of portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
    int
    countByPortletPreferencesId(long portletPreferencesId)
    Returns the number of portlet preference values where portletPreferencesId = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    create(long portletPreferenceValueId)
    Creates a new portlet preference value with the primary key.
    void
     
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByC_N_SV_First(long companyId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByP_I_N(long portletPreferencesId, int index, String name, boolean useFinderCache)
    Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByP_N_First(long portletPreferencesId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByP_N_SV_First(long portletPreferencesId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByPortletPreferencesId_First(long portletPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    fetchByPrimaryKey(long portletPreferenceValueId)
    Returns the portlet preference value with the primary key or returns null if it could not be found.
    List<com.liferay.portal.kernel.model.PortletPreferenceValue>
    findByC_N_SV(long companyId, String name, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portlet preference values where companyId = ? and name = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByC_N_SV_First(long companyId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByP_I_N(long portletPreferencesId, int index, String name)
    Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or throws a NoSuchPortletPreferenceValueException if it could not be found.
    List<com.liferay.portal.kernel.model.PortletPreferenceValue>
    findByP_N(long portletPreferencesId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByP_N_First(long portletPreferencesId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
    List<com.liferay.portal.kernel.model.PortletPreferenceValue>
    findByP_N_SV(long portletPreferencesId, String name, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByP_N_SV_First(long portletPreferencesId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
    List<com.liferay.portal.kernel.model.PortletPreferenceValue>
    findByPortletPreferencesId(long portletPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the portlet preference values where portletPreferencesId = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByPortletPreferencesId_First(long portletPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
    Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    findByPrimaryKey(long portletPreferenceValueId)
    Returns the portlet preference value with the primary key or throws a NoSuchPortletPreferenceValueException if it could not be found.
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.portal.kernel.model.PortletPreferenceValue
    remove(long portletPreferenceValueId)
    Removes the portlet preference value with the primary key from the database.
    void
    removeByC_N_SV(long companyId, String name, String smallValue)
    Removes all the portlet preference values where companyId = ? and name = ? and smallValue = ? from the database.
    com.liferay.portal.kernel.model.PortletPreferenceValue
    removeByP_I_N(long portletPreferencesId, int index, String name)
    Removes the portlet preference value where portletPreferencesId = ? and index = ? and name = ? from the database.
    void
    removeByP_N(long portletPreferencesId, String name)
    Removes all the portlet preference values where portletPreferencesId = ? and name = ? from the database.
    void
    removeByP_N_SV(long portletPreferencesId, String name, String smallValue)
    Removes all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ? from the database.
    void
    removeByPortletPreferencesId(long portletPreferencesId)
    Removes all the portlet preference values where portletPreferencesId = ? from the database.
    protected com.liferay.portal.kernel.model.PortletPreferenceValue
    removeImpl(com.liferay.portal.kernel.model.PortletPreferenceValue portletPreferenceValue)
     
    com.liferay.portal.kernel.model.PortletPreferenceValue
    updateImpl(com.liferay.portal.kernel.model.PortletPreferenceValue portletPreferenceValue)
     

    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, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, 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.PortletPreferenceValuePersistence

    fetchByP_I_N, findByC_N_SV, findByC_N_SV, findByC_N_SV, findByP_N, findByP_N, findByP_N, findByP_N_SV, findByP_N_SV, findByP_N_SV, findByPortletPreferencesId, findByPortletPreferencesId, findByPortletPreferencesId
  • 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

    • PortletPreferenceValuePersistenceImpl

      public PortletPreferenceValuePersistenceImpl()
  • Method Details

    • findByPortletPreferencesId

      public List<com.liferay.portal.kernel.model.PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portlet preference values where portletPreferencesId = ?.

      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 PortletPreferenceValueModelImpl.

      Specified by:
      findByPortletPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      start - the lower bound of the range of portlet preference values
      end - the upper bound of the range of portlet 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 portlet preference values
    • findByPortletPreferencesId_First

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

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByPortletPreferencesId_First(long portletPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
      Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.
      Specified by:
      fetchByPortletPreferencesId_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value, or null if a matching portlet preference value could not be found
    • removeByPortletPreferencesId

      public void removeByPortletPreferencesId(long portletPreferencesId)
      Removes all the portlet preference values where portletPreferencesId = ? from the database.
      Specified by:
      removeByPortletPreferencesId in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
    • countByPortletPreferencesId

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

      public List<com.liferay.portal.kernel.model.PortletPreferenceValue> findByP_N(long portletPreferencesId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ?.

      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 PortletPreferenceValueModelImpl.

      Specified by:
      findByP_N in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      start - the lower bound of the range of portlet preference values
      end - the upper bound of the range of portlet 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 portlet preference values
    • findByP_N_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue findByP_N_First(long portletPreferencesId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
      Specified by:
      findByP_N_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a matching portlet preference value could not be found
    • fetchByP_N_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByP_N_First(long portletPreferencesId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
      Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
      Specified by:
      fetchByP_N_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value, or null if a matching portlet preference value could not be found
    • removeByP_N

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

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

      public List<com.liferay.portal.kernel.model.PortletPreferenceValue> findByC_N_SV(long companyId, String name, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portlet preference values where companyId = ? and name = ? 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 PortletPreferenceValueModelImpl.

      Specified by:
      findByC_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      companyId - the company ID
      name - the name
      smallValue - the small value
      start - the lower bound of the range of portlet preference values
      end - the upper bound of the range of portlet 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 portlet preference values
    • findByC_N_SV_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue findByC_N_SV_First(long companyId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
      Specified by:
      findByC_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      companyId - the company ID
      name - the name
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a matching portlet preference value could not be found
    • fetchByC_N_SV_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByC_N_SV_First(long companyId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
      Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
      Specified by:
      fetchByC_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      companyId - the company ID
      name - the name
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value, or null if a matching portlet preference value could not be found
    • removeByC_N_SV

      public void removeByC_N_SV(long companyId, String name, String smallValue)
      Removes all the portlet preference values where companyId = ? and name = ? and smallValue = ? from the database.
      Specified by:
      removeByC_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      companyId - the company ID
      name - the name
      smallValue - the small value
    • countByC_N_SV

      public int countByC_N_SV(long companyId, String name, String smallValue)
      Returns the number of portlet preference values where companyId = ? and name = ? and smallValue = ?.
      Specified by:
      countByC_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      companyId - the company ID
      name - the name
      smallValue - the small value
      Returns:
      the number of matching portlet preference values
    • findByP_I_N

      public com.liferay.portal.kernel.model.PortletPreferenceValue findByP_I_N(long portletPreferencesId, int index, String name) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or throws a NoSuchPortletPreferenceValueException if it could not be found.
      Specified by:
      findByP_I_N in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      index - the index
      name - the name
      Returns:
      the matching portlet preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a matching portlet preference value could not be found
    • fetchByP_I_N

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByP_I_N(long portletPreferencesId, int index, String name, boolean useFinderCache)
      Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByP_I_N in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      index - the index
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching portlet preference value, or null if a matching portlet preference value could not be found
    • removeByP_I_N

      public com.liferay.portal.kernel.model.PortletPreferenceValue removeByP_I_N(long portletPreferencesId, int index, String name) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Removes the portlet preference value where portletPreferencesId = ? and index = ? and name = ? from the database.
      Specified by:
      removeByP_I_N in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      index - the index
      name - the name
      Returns:
      the portlet preference value that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
    • countByP_I_N

      public int countByP_I_N(long portletPreferencesId, int index, String name)
      Returns the number of portlet preference values where portletPreferencesId = ? and index = ? and name = ?.
      Specified by:
      countByP_I_N in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      index - the index
      name - the name
      Returns:
      the number of matching portlet preference values
    • findByP_N_SV

      public List<com.liferay.portal.kernel.model.PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ? 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 PortletPreferenceValueModelImpl.

      Specified by:
      findByP_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      smallValue - the small value
      start - the lower bound of the range of portlet preference values
      end - the upper bound of the range of portlet 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 portlet preference values
    • findByP_N_SV_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue findByP_N_SV_First(long portletPreferencesId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
      Specified by:
      findByP_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a matching portlet preference value could not be found
    • fetchByP_N_SV_First

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByP_N_SV_First(long portletPreferencesId, String name, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortletPreferenceValue> orderByComparator)
      Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
      Specified by:
      fetchByP_N_SV_First in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      smallValue - the small value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching portlet preference value, or null if a matching portlet preference value could not be found
    • removeByP_N_SV

      public void removeByP_N_SV(long portletPreferencesId, String name, String smallValue)
      Removes all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ? from the database.
      Specified by:
      removeByP_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      smallValue - the small value
    • countByP_N_SV

      public int countByP_N_SV(long portletPreferencesId, String name, String smallValue)
      Returns the number of portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
      Specified by:
      countByP_N_SV in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferencesId - the portlet preferences ID
      name - the name
      smallValue - the small value
      Returns:
      the number of matching portlet preference values
    • create

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

      public com.liferay.portal.kernel.model.PortletPreferenceValue remove(long portletPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Removes the portlet 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.PortletPreferenceValuePersistence
      Parameters:
      portletPreferenceValueId - the primary key of the portlet preference value
      Returns:
      the portlet preference value that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a portlet preference value with the primary key could not be found
    • removeImpl

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

      public com.liferay.portal.kernel.model.PortletPreferenceValue updateImpl(com.liferay.portal.kernel.model.PortletPreferenceValue portletPreferenceValue)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.PortletPreferenceValue findByPrimaryKey(long portletPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException
      Returns the portlet preference value with the primary key or throws a NoSuchPortletPreferenceValueException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence
      Parameters:
      portletPreferenceValueId - the primary key of the portlet preference value
      Returns:
      the portlet preference value
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException - if a portlet preference value with the primary key could not be found
    • getCTPersistenceHelper

      protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()
      Overrides:
      getCTPersistenceHelper in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.PortletPreferenceValue fetchByPrimaryKey(long portletPreferenceValueId)
      Returns the portlet 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.PortletPreferenceValuePersistence
      Parameters:
      portletPreferenceValueId - the primary key of the portlet preference value
      Returns:
      the portlet preference value, or null if a portlet 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.PortletPreferenceValue>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • 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.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • getPKDBName

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

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

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>
      Overrides:
      getTableName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.PortletPreferenceValue>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the portlet 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.PortletPreferenceValue,com.liferay.portal.kernel.exception.NoSuchPortletPreferenceValueException>