Class CTSContentUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CTSContent ctsContent) Caches the cts content in the entity cache if it is enabled.static voidcacheResult(List<CTSContent> ctsContents) Caches the cts contents in the entity cache if it is enabled.static voidstatic voidclearCache(CTSContent ctsContent) static intcountAll()Returns the number of cts contents.static intcountByC_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 intcountByC_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 intcountByC_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 intcountByC_R_S(long companyId, long repositoryId, String storeType) Returns the number of cts contents where companyId = ? and repositoryId = ? and storeType = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTSContentcreate(long ctsContentId) Creates a new cts content with the primary key.static CTSContentfetchByC_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 CTSContentfetchByC_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 CTSContentfetchByC_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 CTSContentfetchByC_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 CTSContentfetchByC_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 returnsnullif it could not be found.static CTSContentfetchByC_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 returnsnullif it could not be found, optionally using the finder cache.static CTSContentfetchByC_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 CTSContentfetchByC_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 CTSContentfetchByPrimaryKey(long ctsContentId) Returns the cts content with the primary key or returnsnullif it could not be found.static Map<Serializable,CTSContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CTSContent>findAll()Returns all the cts contents.static List<CTSContent>findAll(int start, int end) Returns a range of all the cts contents.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.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.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 = ?.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 = ?.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 = ?.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 = ?.static CTSContentfindByC_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 CTSContentfindByC_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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.static CTSContentfindByC_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 CTSContentfindByC_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 CTSContentfindByC_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 aNoSuchContentExceptionif it could not be found.static List<CTSContent>findByC_R_S(long companyId, long repositoryId, String storeType) Returns all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.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 = ?.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 = ?.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 = ?.static CTSContentfindByC_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 CTSContentfindByC_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 CTSContentfindByPrimaryKey(long ctsContentId) Returns the cts content with the primary key or throws aNoSuchContentExceptionif it could not be found.static List<CTSContent>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CTSContent>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CTSContent>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) static CTSContentPersistencestatic CTSContentremove(long ctsContentId) Removes the cts content with the primary key from the database.static voidRemoves all the cts contents from the database.static voidremoveByC_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 voidremoveByC_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 CTSContentremoveByC_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 voidremoveByC_R_S(long companyId, long repositoryId, String storeType) Removes all the cts contents where companyId = ? and repositoryId = ? and storeType = ? from the database.static voidsetPersistence(CTSContentPersistence persistence) static CTSContentupdate(CTSContent ctsContent) static CTSContentupdate(CTSContent ctsContent, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTSContentupdateImpl(CTSContent ctsContent)
-
Constructor Details
-
CTSContentUtil
public CTSContentUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
Returns all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- the store typestart- the lower bound of the range of cts contentsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDrepositoryId- the repository IDstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content, or
nullif 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 IDrepositoryId- the repository IDstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content, or
nullif 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 contentcompanyId- the company IDrepositoryId- the repository IDstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cts content
- Throws:
NoSuchContentException- if a cts content with the primary key could not be foundNoSuchContentException
-
removeByC_R_S
Removes all the cts contents where companyId = ? and repositoryId = ? and storeType = ? from the database.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- the store type
-
countByC_R_S
Returns the number of cts contents where companyId = ? and repositoryId = ? and storeType = ?.- Parameters:
companyId- the company IDrepositoryId- the repository IDstoreType- 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 IDrepositoryId- the repository IDpath- the pathstoreType- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content, or
nullif 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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content, or
nullif 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 contentcompanyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cts content
- Throws:
NoSuchContentException- if a cts content with the primary key could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- the store type
-
countByC_R_P_S
Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- 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 IDrepositoryId- the repository IDpath- the pathstoreType- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typestart- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content, or
nullif 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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cts content, or
nullif 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 contentcompanyId- the company IDrepositoryId- the repository IDpath- the pathstoreType- the store typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cts content
- Throws:
NoSuchContentException- if a cts content with the primary key could not be foundNoSuchContentException
-
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 IDrepositoryId- the repository IDpath- the pathstoreType- 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 IDrepositoryId- the repository IDpath- the pathstoreType- 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 aNoSuchContentExceptionif it could not be found.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathversion- the versionstoreType- the store type- Returns:
- the matching cts content
- Throws:
NoSuchContentException- if a matching cts content could not be foundNoSuchContentException
-
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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathversion- the versionstoreType- the store type- Returns:
- the matching cts content, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDrepositoryId- the repository IDpath- the pathversion- the versionstoreType- the store typeuseFinderCache- whether to use the finder cache- Returns:
- the matching cts content, or
nullif 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 IDrepositoryId- the repository IDpath- the pathversion- the versionstoreType- 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 IDrepositoryId- the repository IDpath- the pathversion- the versionstoreType- the store type- Returns:
- the number of matching cts contents
-
cacheResult
Caches the cts content in the entity cache if it is enabled.- Parameters:
ctsContent- the cts content
-
cacheResult
Caches the cts contents in the entity cache if it is enabled.- Parameters:
ctsContents- the cts contents
-
create
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
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 foundNoSuchContentException
-
updateImpl
-
findByPrimaryKey
Returns the cts content with the primary key or throws aNoSuchContentExceptionif 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 foundNoSuchContentException
-
fetchByPrimaryKey
Returns the cts content with the primary key or returnsnullif it could not be found.- Parameters:
ctsContentId- the primary key of the cts content- Returns:
- the cts content, or
nullif a cts content with the primary key could not be found
-
findAll
Returns all the cts contents.- Returns:
- the cts contents
-
findAll
Returns a range of all the cts contents.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
start- the lower bound of the range of cts contentsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
start- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTSContentModelImpl.- Parameters:
start- the lower bound of the range of cts contentsend- the upper bound of the range of cts contents (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-