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) static voidcacheResult(List<CTSContent> ctsContents) static voidstatic voidclearCache(CTSContent ctsContent) 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 intcountByR_P(long repositoryId, String path) Returns the number of cts contents where repositoryId = ? and path = ?.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_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_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 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 CTSContentfetchByR_P_First(long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) Returns the first cts content in the ordered set where repositoryId = ? and path = ?.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 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_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 CTSContentfindByPrimaryKey(long ctsContentId) Returns the cts content with the primary key or throws aNoSuchContentExceptionif it could not be found.static List<CTSContent> Returns all the cts contents where repositoryId = ? and path = ?.static List<CTSContent> Returns a range of all the cts contents where repositoryId = ? and path = ?.static List<CTSContent> findByR_P(long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) Returns an ordered range of all the cts contents where repositoryId = ? and path = ?.static List<CTSContent> findByR_P(long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cts contents where repositoryId = ? and path = ?.static CTSContentfindByR_P_First(long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) Returns the first cts content in the ordered set where repositoryId = ? and path = ?.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 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 voidremoveByR_P(long repositoryId, String path) Removes all the cts contents where repositoryId = ? and path = ? 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
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static CTSContent update(CTSContent ctsContent, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByR_P
public static List<CTSContent> findByR_P(long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cts contents where repositoryId = ? and path = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- Parameters:
repositoryId- the repository IDpath- the pathstart- 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
-
findByR_P_First
public static CTSContent findByR_P_First(long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException Returns the first cts content in the ordered set where repositoryId = ? and path = ?.- Parameters:
repositoryId- the repository IDpath- the pathorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content
-
fetchByR_P_First
public static CTSContent fetchByR_P_First(long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) Returns the first cts content in the ordered set where repositoryId = ? and path = ?.- Parameters:
repositoryId- the repository IDpath- the pathorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cts content, or
nullif a matching cts content could not be found
-
removeByR_P
Removes all the cts contents where repositoryId = ? and path = ? from the database.- Parameters:
repositoryId- the repository IDpath- the path
-
countByR_P
Returns the number of cts contents where repositoryId = ? and path = ?.- Parameters:
repositoryId- the repository IDpath- the path- Returns:
- the number 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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
-
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
-
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, 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
findByR_P
Returns all the cts contents where repositoryId = ? and path = ?.- Parameters:
repositoryId- the repository IDpath- the path- Returns:
- the matching cts contents
-
findByR_P
Returns a range of all the cts contents where repositoryId = ? and path = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- Parameters:
repositoryId- the repository IDpath- the pathstart- 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
-
findByR_P
public static List<CTSContent> findByR_P(long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) Returns an ordered range of all the cts contents where repositoryId = ? and path = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- Parameters:
repositoryId- the repository IDpath- the pathstart- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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_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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.store.model.impl.CTSContentModelImpl.- 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
-
getPersistence
-
setPersistence
-