java.lang.Object
com.liferay.change.tracking.store.service.persistence.CTSContentUtil

public class CTSContentUtil extends Object
The persistence utility for the cts content service. This utility wraps com.liferay.change.tracking.store.service.persistence.impl.CTSContentPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(CTSContent ctsContent)
    Caches the cts content in the entity cache if it is enabled.
    static void
    cacheResult(List<CTSContent> ctsContents)
    Caches the cts contents in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CTSContent ctsContent)
     
    static int
    Returns the number of cts contents.
    static int
    countByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
    Returns the number of cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static int
    countByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
    Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static int
    countByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
    Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ?.
    static int
    countByC_R_S(long companyId, long repositoryId, String storeType)
    Returns the number of cts contents where companyId = ? and repositoryId = ? and storeType = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static CTSContent
    create(long ctsContentId)
    Creates a new cts content with the primary key.
    static CTSContent
    fetchByC_R_LikeP_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static CTSContent
    fetchByC_R_LikeP_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static CTSContent
    fetchByC_R_P_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent
    fetchByC_R_P_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent
    fetchByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
    Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns null if it could not be found.
    static CTSContent
    fetchByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType, boolean useFinderCache)
    Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns null if it could not be found, optionally using the finder cache.
    static CTSContent
    fetchByC_R_S_First(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent
    fetchByC_R_S_Last(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent
    fetchByPrimaryKey(long ctsContentId)
    Returns the cts content with the primary key or returns null if it could not be found.
     
    Returns all the cts contents.
    findAll(int start, int end)
    Returns a range of all the cts contents.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns an ordered range of all the cts contents.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cts contents.
    findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
    Returns all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end)
    Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static CTSContent
    findByC_R_LikeP_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static CTSContent
    findByC_R_LikeP_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    static CTSContent[]
    findByC_R_LikeP_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
    findByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
    Returns all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end)
    Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent
    findByC_R_P_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent
    findByC_R_P_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent[]
    findByC_R_P_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
    static CTSContent
    findByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
    Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or throws a NoSuchContentException if it could not be found.
    findByC_R_S(long companyId, long repositoryId, String storeType)
    Returns all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
    findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end)
    Returns a range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
    findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
    findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent
    findByC_R_S_First(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent
    findByC_R_S_Last(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent[]
    findByC_R_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
    Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
    static CTSContent
    findByPrimaryKey(long ctsContentId)
    Returns the cts content with the primary key or throws a NoSuchContentException if it could not be found.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
     
     
    static CTSContent
    remove(long ctsContentId)
    Removes the cts content with the primary key from the database.
    static void
    Removes all the cts contents from the database.
    static void
    removeByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
    Removes all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ? from the database.
    static void
    removeByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
    Removes all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ? from the database.
    static CTSContent
    removeByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
    Removes the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? from the database.
    static void
    removeByC_R_S(long companyId, long repositoryId, String storeType)
    Removes all the cts contents where companyId = ? and repositoryId = ? and storeType = ? from the database.
    static void
     
    static CTSContent
    update(CTSContent ctsContent)
     
    static CTSContent
    update(CTSContent ctsContent, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static CTSContent
    updateImpl(CTSContent ctsContent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CTSContentUtil

      public CTSContentUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CTSContent ctsContent)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CTSContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CTSContent update(CTSContent ctsContent)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CTSContent update(CTSContent ctsContent, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByC_R_S

      public static List<CTSContent> findByC_R_S(long companyId, long repositoryId, String storeType)
      Returns all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      Returns:
      the matching cts contents
    • findByC_R_S

      public static List<CTSContent> findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end)
      Returns a range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      Returns:
      the range of matching cts contents
    • findByC_R_S

      public static List<CTSContent> findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cts contents
    • findByC_R_S

      public static List<CTSContent> findByC_R_S(long companyId, long repositoryId, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (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 cts contents
    • findByC_R_S_First

      public static CTSContent findByC_R_S_First(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_S_First

      public static CTSContent fetchByC_R_S_First(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content, or null if a matching cts content could not be found
    • findByC_R_S_Last

      public static CTSContent findByC_R_S_Last(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_S_Last

      public static CTSContent fetchByC_R_S_Last(long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content, or null if a matching cts content could not be found
    • findByC_R_S_PrevAndNext

      public static CTSContent[] findByC_R_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      ctsContentId - the primary key of the current cts content
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cts content
      Throws:
      NoSuchContentException - if a cts content with the primary key could not be found
      NoSuchContentException
    • removeByC_R_S

      public static void removeByC_R_S(long companyId, long repositoryId, String storeType)
      Removes all the cts contents where companyId = ? and repositoryId = ? and storeType = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
    • countByC_R_S

      public static int countByC_R_S(long companyId, long repositoryId, String storeType)
      Returns the number of cts contents where companyId = ? and repositoryId = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      storeType - the store type
      Returns:
      the number of matching cts contents
    • findByC_R_P_S

      public static List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
      Returns all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      Returns:
      the matching cts contents
    • findByC_R_P_S

      public static List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end)
      Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      Returns:
      the range of matching cts contents
    • findByC_R_P_S

      public static List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cts contents
    • findByC_R_P_S

      public static List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (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 cts contents
    • findByC_R_P_S_First

      public static CTSContent findByC_R_P_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_P_S_First

      public static CTSContent fetchByC_R_P_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content, or null if a matching cts content could not be found
    • findByC_R_P_S_Last

      public static CTSContent findByC_R_P_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_P_S_Last

      public static CTSContent fetchByC_R_P_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content, or null if a matching cts content could not be found
    • findByC_R_P_S_PrevAndNext

      public static CTSContent[] findByC_R_P_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      ctsContentId - the primary key of the current cts content
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cts content
      Throws:
      NoSuchContentException - if a cts content with the primary key could not be found
      NoSuchContentException
    • removeByC_R_P_S

      public static void removeByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
      Removes all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
    • countByC_R_P_S

      public static int countByC_R_P_S(long companyId, long repositoryId, String path, String storeType)
      Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      Returns:
      the number of matching cts contents
    • findByC_R_LikeP_S

      public static List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
      Returns all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      Returns:
      the matching cts contents
    • findByC_R_LikeP_S

      public static List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end)
      Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      Returns:
      the range of matching cts contents
    • findByC_R_LikeP_S

      public static List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cts contents
    • findByC_R_LikeP_S

      public static List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.

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

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (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 cts contents
    • findByC_R_LikeP_S_First

      public static CTSContent findByC_R_LikeP_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_LikeP_S_First

      public static CTSContent fetchByC_R_LikeP_S_First(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cts content, or null if a matching cts content could not be found
    • findByC_R_LikeP_S_Last

      public static CTSContent findByC_R_LikeP_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_LikeP_S_Last

      public static CTSContent fetchByC_R_LikeP_S_Last(long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cts content, or null if a matching cts content could not be found
    • findByC_R_LikeP_S_PrevAndNext

      public static CTSContent[] findByC_R_LikeP_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, String path, String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
      Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      ctsContentId - the primary key of the current cts content
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cts content
      Throws:
      NoSuchContentException - if a cts content with the primary key could not be found
      NoSuchContentException
    • removeByC_R_LikeP_S

      public static void removeByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
      Removes all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
    • countByC_R_LikeP_S

      public static int countByC_R_LikeP_S(long companyId, long repositoryId, String path, String storeType)
      Returns the number of cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      storeType - the store type
      Returns:
      the number of matching cts contents
    • findByC_R_P_V_S

      public static CTSContent findByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType) throws NoSuchContentException
      Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or throws a NoSuchContentException if it could not be found.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      storeType - the store type
      Returns:
      the matching cts content
      Throws:
      NoSuchContentException - if a matching cts content could not be found
      NoSuchContentException
    • fetchByC_R_P_V_S

      public static CTSContent fetchByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
      Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      storeType - the store type
      Returns:
      the matching cts content, or null if a matching cts content could not be found
    • fetchByC_R_P_V_S

      public static CTSContent fetchByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType, boolean useFinderCache)
      Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      storeType - the store type
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cts content, or null if a matching cts content could not be found
    • removeByC_R_P_V_S

      public static CTSContent removeByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType) throws NoSuchContentException
      Removes the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      storeType - the store type
      Returns:
      the cts content that was removed
      Throws:
      NoSuchContentException
    • countByC_R_P_V_S

      public static int countByC_R_P_V_S(long companyId, long repositoryId, String path, String version, String storeType)
      Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      storeType - the store type
      Returns:
      the number of matching cts contents
    • cacheResult

      public static void cacheResult(CTSContent ctsContent)
      Caches the cts content in the entity cache if it is enabled.
      Parameters:
      ctsContent - the cts content
    • cacheResult

      public static void cacheResult(List<CTSContent> ctsContents)
      Caches the cts contents in the entity cache if it is enabled.
      Parameters:
      ctsContents - the cts contents
    • create

      public static CTSContent create(long ctsContentId)
      Creates a new cts content with the primary key. Does not add the cts content to the database.
      Parameters:
      ctsContentId - the primary key for the new cts content
      Returns:
      the new cts content
    • remove

      public static CTSContent remove(long ctsContentId) throws NoSuchContentException
      Removes the cts content with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      ctsContentId - the primary key of the cts content
      Returns:
      the cts content that was removed
      Throws:
      NoSuchContentException - if a cts content with the primary key could not be found
      NoSuchContentException
    • updateImpl

      public static CTSContent updateImpl(CTSContent ctsContent)
    • findByPrimaryKey

      public static CTSContent findByPrimaryKey(long ctsContentId) throws NoSuchContentException
      Returns the cts content with the primary key or throws a NoSuchContentException if it could not be found.
      Parameters:
      ctsContentId - the primary key of the cts content
      Returns:
      the cts content
      Throws:
      NoSuchContentException - if a cts content with the primary key could not be found
      NoSuchContentException
    • fetchByPrimaryKey

      public static CTSContent fetchByPrimaryKey(long ctsContentId)
      Returns the cts content with the primary key or returns null if it could not be found.
      Parameters:
      ctsContentId - the primary key of the cts content
      Returns:
      the cts content, or null if a cts content with the primary key could not be found
    • findAll

      public static List<CTSContent> findAll()
      Returns all the cts contents.
      Returns:
      the cts contents
    • findAll

      public static List<CTSContent> findAll(int start, int end)
      Returns a range of all the cts contents.

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

      Parameters:
      start - the lower bound of the range of cts contents
      end - the upper bound of the range of cts contents (not inclusive)
      Returns:
      the range of cts contents
    • findAll

      public static List<CTSContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
      Returns an ordered range of all the cts contents.

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

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

      public static List<CTSContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cts contents.

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

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

      public static void removeAll()
      Removes all the cts contents from the database.
    • countAll

      public static int countAll()
      Returns the number of cts contents.
      Returns:
      the number of cts contents
    • getPersistence

      public static CTSContentPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CTSContentPersistence persistence)