Class SiteFriendlyURLUtil
com.liferay.site.service.persistence.impl.SiteFriendlyURLPersistenceImpl 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(SiteFriendlyURL siteFriendlyURL) Caches the site friendly url in the entity cache if it is enabled.static voidcacheResult(List<SiteFriendlyURL> siteFriendlyURLs) Caches the site friendly urls in the entity cache if it is enabled.static voidstatic voidclearCache(SiteFriendlyURL siteFriendlyURL) static intcountAll()Returns the number of site friendly urls.static intcountByC_F(long companyId, String friendlyURL) Returns the number of site friendly urls where companyId = ? and friendlyURL = ?.static intcountByC_F_L(long companyId, String friendlyURL, String languageId) Returns the number of site friendly urls where companyId = ? and friendlyURL = ? and languageId = ?.static intcountByG_C(long groupId, long companyId) Returns the number of site friendly urls where groupId = ? and companyId = ?.static intcountByG_C_L(long groupId, long companyId, String languageId) Returns the number of site friendly urls where groupId = ? and companyId = ? and languageId = ?.static intcountByUuid(String uuid) Returns the number of site friendly urls where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of site friendly urls where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of site friendly urls where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SiteFriendlyURLcreate(long siteFriendlyURLId) Creates a new site friendly url with the primary key.static SiteFriendlyURLfetchByC_F(long companyId, String friendlyURL) Returns the site friendly url where companyId = ? and friendlyURL = ? or returnsnullif it could not be found.static SiteFriendlyURLfetchByC_F(long companyId, String friendlyURL, boolean useFinderCache) Returns the site friendly url where companyId = ? and friendlyURL = ? or returnsnullif it could not be found, optionally using the finder cache.static SiteFriendlyURLfetchByC_F_L(long companyId, String friendlyURL, String languageId) Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or returnsnullif it could not be found.static SiteFriendlyURLfetchByC_F_L(long companyId, String friendlyURL, String languageId, boolean useFinderCache) Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.static SiteFriendlyURLfetchByG_C_First(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where groupId = ? and companyId = ?.static SiteFriendlyURLfetchByG_C_L(long groupId, long companyId, String languageId) Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or returnsnullif it could not be found.static SiteFriendlyURLfetchByG_C_L(long groupId, long companyId, String languageId, boolean useFinderCache) Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.static SiteFriendlyURLfetchByG_C_Last(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where groupId = ? and companyId = ?.static SiteFriendlyURLfetchByPrimaryKey(long siteFriendlyURLId) Returns the site friendly url with the primary key or returnsnullif it could not be found.static Map<Serializable,SiteFriendlyURL> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SiteFriendlyURLfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ? and companyId = ?.static SiteFriendlyURLfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ? and companyId = ?.static SiteFriendlyURLfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ?.static SiteFriendlyURLfetchByUUID_G(String uuid, long groupId) Returns the site friendly url where uuid = ? and groupId = ? or returnsnullif it could not be found.static SiteFriendlyURLfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the site friendly url where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static SiteFriendlyURLfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ?.static List<SiteFriendlyURL>findAll()Returns all the site friendly urls.static List<SiteFriendlyURL>findAll(int start, int end) Returns a range of all the site friendly urls.static List<SiteFriendlyURL>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls.static List<SiteFriendlyURL>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls.static SiteFriendlyURLReturns the site friendly url where companyId = ? and friendlyURL = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.static SiteFriendlyURLfindByC_F_L(long companyId, String friendlyURL, String languageId) Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.static List<SiteFriendlyURL>findByG_C(long groupId, long companyId) Returns all the site friendly urls where groupId = ? and companyId = ?.static List<SiteFriendlyURL>findByG_C(long groupId, long companyId, int start, int end) Returns a range of all the site friendly urls where groupId = ? and companyId = ?.static List<SiteFriendlyURL>findByG_C(long groupId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where groupId = ? and companyId = ?.static List<SiteFriendlyURL>findByG_C(long groupId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where groupId = ? and companyId = ?.static SiteFriendlyURLfindByG_C_First(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where groupId = ? and companyId = ?.static SiteFriendlyURLfindByG_C_L(long groupId, long companyId, String languageId) Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.static SiteFriendlyURLfindByG_C_Last(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where groupId = ? and companyId = ?.static SiteFriendlyURL[]findByG_C_PrevAndNext(long siteFriendlyURLId, long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the site friendly urls before and after the current site friendly url in the ordered set where groupId = ? and companyId = ?.static SiteFriendlyURLfindByPrimaryKey(long siteFriendlyURLId) Returns the site friendly url with the primary key or throws aNoSuchFriendlyURLExceptionif it could not be found.static List<SiteFriendlyURL>findByUuid(String uuid) Returns all the site friendly urls where uuid = ?.static List<SiteFriendlyURL>findByUuid(String uuid, int start, int end) Returns a range of all the site friendly urls where uuid = ?.static List<SiteFriendlyURL>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where uuid = ?.static List<SiteFriendlyURL>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where uuid = ?.static List<SiteFriendlyURL>findByUuid_C(String uuid, long companyId) Returns all the site friendly urls where uuid = ? and companyId = ?.static List<SiteFriendlyURL>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the site friendly urls where uuid = ? and companyId = ?.static List<SiteFriendlyURL>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where uuid = ? and companyId = ?.static List<SiteFriendlyURL>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where uuid = ? and companyId = ?.static SiteFriendlyURLfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ? and companyId = ?.static SiteFriendlyURLfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ? and companyId = ?.static SiteFriendlyURL[]findByUuid_C_PrevAndNext(long siteFriendlyURLId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the site friendly urls before and after the current site friendly url in the ordered set where uuid = ? and companyId = ?.static SiteFriendlyURLfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ?.static SiteFriendlyURLfindByUUID_G(String uuid, long groupId) Returns the site friendly url where uuid = ? and groupId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.static SiteFriendlyURLfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ?.static SiteFriendlyURL[]findByUuid_PrevAndNext(long siteFriendlyURLId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the site friendly urls before and after the current site friendly url in the ordered set where uuid = ?.static List<SiteFriendlyURL>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SiteFriendlyURL>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SiteFriendlyURL>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) static SiteFriendlyURLPersistencestatic SiteFriendlyURLremove(long siteFriendlyURLId) Removes the site friendly url with the primary key from the database.static voidRemoves all the site friendly urls from the database.static SiteFriendlyURLremoveByC_F(long companyId, String friendlyURL) Removes the site friendly url where companyId = ? and friendlyURL = ? from the database.static SiteFriendlyURLremoveByC_F_L(long companyId, String friendlyURL, String languageId) Removes the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? from the database.static voidremoveByG_C(long groupId, long companyId) Removes all the site friendly urls where groupId = ? and companyId = ? from the database.static SiteFriendlyURLremoveByG_C_L(long groupId, long companyId, String languageId) Removes the site friendly url where groupId = ? and companyId = ? and languageId = ? from the database.static voidremoveByUuid(String uuid) Removes all the site friendly urls where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the site friendly urls where uuid = ? and companyId = ? from the database.static SiteFriendlyURLremoveByUUID_G(String uuid, long groupId) Removes the site friendly url where uuid = ? and groupId = ? from the database.static voidsetPersistence(SiteFriendlyURLPersistence persistence) static SiteFriendlyURLupdate(SiteFriendlyURL siteFriendlyURL) static SiteFriendlyURLupdate(SiteFriendlyURL siteFriendlyURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SiteFriendlyURLupdateImpl(SiteFriendlyURL siteFriendlyURL)
-
Constructor Details
-
SiteFriendlyURLUtil
public SiteFriendlyURLUtil()
-
-
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<SiteFriendlyURL> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SiteFriendlyURL> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SiteFriendlyURL> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SiteFriendlyURL update(SiteFriendlyURL siteFriendlyURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the site friendly urls where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching site friendly urls
-
findByUuid
Returns a range of all the site friendly urls where uuid = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)- Returns:
- the range of matching site friendly urls
-
findByUuid
public static List<SiteFriendlyURL> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where uuid = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching site friendly urls
-
findByUuid
public static List<SiteFriendlyURL> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where uuid = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching site friendly urls
-
findByUuid_First
public static SiteFriendlyURL findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the first site friendly url in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByUuid_First
public static SiteFriendlyURL fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByUuid_Last
public static SiteFriendlyURL findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the last site friendly url in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByUuid_Last
public static SiteFriendlyURL fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByUuid_PrevAndNext
public static SiteFriendlyURL[] findByUuid_PrevAndNext(long siteFriendlyURLId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the site friendly urls before and after the current site friendly url in the ordered set where uuid = ?.- Parameters:
siteFriendlyURLId- the primary key of the current site friendly urluuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next site friendly url
- Throws:
NoSuchFriendlyURLException- if a site friendly url with the primary key could not be foundNoSuchFriendlyURLException
-
removeByUuid
Removes all the site friendly urls where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of site friendly urls where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching site friendly urls
-
findByUUID_G
public static SiteFriendlyURL findByUUID_G(String uuid, long groupId) throws NoSuchFriendlyURLException Returns the site friendly url where uuid = ? and groupId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByUUID_G
Returns the site friendly url where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
fetchByUUID_G
Returns the site friendly url where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
removeByUUID_G
public static SiteFriendlyURL removeByUUID_G(String uuid, long groupId) throws NoSuchFriendlyURLException Removes the site friendly url where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the site friendly url that was removed
- Throws:
NoSuchFriendlyURLException
-
countByUUID_G
Returns the number of site friendly urls where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching site friendly urls
-
findByUuid_C
Returns all the site friendly urls where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching site friendly urls
-
findByUuid_C
Returns a range of all the site friendly urls where uuid = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)- Returns:
- the range of matching site friendly urls
-
findByUuid_C
public static List<SiteFriendlyURL> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where uuid = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching site friendly urls
-
findByUuid_C
public static List<SiteFriendlyURL> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where uuid = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching site friendly urls
-
findByUuid_C_First
public static SiteFriendlyURL findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the first site friendly url in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByUuid_C_First
public static SiteFriendlyURL fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByUuid_C_Last
public static SiteFriendlyURL findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the last site friendly url in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByUuid_C_Last
public static SiteFriendlyURL fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByUuid_C_PrevAndNext
public static SiteFriendlyURL[] findByUuid_C_PrevAndNext(long siteFriendlyURLId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the site friendly urls before and after the current site friendly url in the ordered set where uuid = ? and companyId = ?.- Parameters:
siteFriendlyURLId- the primary key of the current site friendly urluuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next site friendly url
- Throws:
NoSuchFriendlyURLException- if a site friendly url with the primary key could not be foundNoSuchFriendlyURLException
-
removeByUuid_C
Removes all the site friendly urls where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of site friendly urls where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching site friendly urls
-
findByG_C
Returns all the site friendly urls where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company ID- Returns:
- the matching site friendly urls
-
findByG_C
Returns a range of all the site friendly urls where groupId = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)- Returns:
- the range of matching site friendly urls
-
findByG_C
public static List<SiteFriendlyURL> findByG_C(long groupId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls where groupId = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching site friendly urls
-
findByG_C
public static List<SiteFriendlyURL> findByG_C(long groupId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls where groupId = ? and companyId = ?.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 fromSiteFriendlyURLModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDstart- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching site friendly urls
-
findByG_C_First
public static SiteFriendlyURL findByG_C_First(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the first site friendly url in the ordered set where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByG_C_First
public static SiteFriendlyURL fetchByG_C_First(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the first site friendly url in the ordered set where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByG_C_Last
public static SiteFriendlyURL findByG_C_Last(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the last site friendly url in the ordered set where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByG_C_Last
public static SiteFriendlyURL fetchByG_C_Last(long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns the last site friendly url in the ordered set where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching site friendly url, or
nullif a matching site friendly url could not be found
-
findByG_C_PrevAndNext
public static SiteFriendlyURL[] findByG_C_PrevAndNext(long siteFriendlyURLId, long groupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) throws NoSuchFriendlyURLException Returns the site friendly urls before and after the current site friendly url in the ordered set where groupId = ? and companyId = ?.- Parameters:
siteFriendlyURLId- the primary key of the current site friendly urlgroupId- the group IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next site friendly url
- Throws:
NoSuchFriendlyURLException- if a site friendly url with the primary key could not be foundNoSuchFriendlyURLException
-
removeByG_C
public static void removeByG_C(long groupId, long companyId) Removes all the site friendly urls where groupId = ? and companyId = ? from the database.- Parameters:
groupId- the group IDcompanyId- the company ID
-
countByG_C
public static int countByG_C(long groupId, long companyId) Returns the number of site friendly urls where groupId = ? and companyId = ?.- Parameters:
groupId- the group IDcompanyId- the company ID- Returns:
- the number of matching site friendly urls
-
findByC_F
public static SiteFriendlyURL findByC_F(long companyId, String friendlyURL) throws NoSuchFriendlyURLException Returns the site friendly url where companyId = ? and friendlyURL = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.- Parameters:
companyId- the company IDfriendlyURL- the friendly url- Returns:
- the matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByC_F
Returns the site friendly url where companyId = ? and friendlyURL = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDfriendlyURL- the friendly url- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
fetchByC_F
public static SiteFriendlyURL fetchByC_F(long companyId, String friendlyURL, boolean useFinderCache) Returns the site friendly url where companyId = ? and friendlyURL = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDfriendlyURL- the friendly urluseFinderCache- whether to use the finder cache- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
removeByC_F
public static SiteFriendlyURL removeByC_F(long companyId, String friendlyURL) throws NoSuchFriendlyURLException Removes the site friendly url where companyId = ? and friendlyURL = ? from the database.- Parameters:
companyId- the company IDfriendlyURL- the friendly url- Returns:
- the site friendly url that was removed
- Throws:
NoSuchFriendlyURLException
-
countByC_F
Returns the number of site friendly urls where companyId = ? and friendlyURL = ?.- Parameters:
companyId- the company IDfriendlyURL- the friendly url- Returns:
- the number of matching site friendly urls
-
findByG_C_L
public static SiteFriendlyURL findByG_C_L(long groupId, long companyId, String languageId) throws NoSuchFriendlyURLException Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.- Parameters:
groupId- the group IDcompanyId- the company IDlanguageId- the language ID- Returns:
- the matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByG_C_L
Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDcompanyId- the company IDlanguageId- the language ID- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
fetchByG_C_L
public static SiteFriendlyURL fetchByG_C_L(long groupId, long companyId, String languageId, boolean useFinderCache) Returns the site friendly url where groupId = ? and companyId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDcompanyId- the company IDlanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
removeByG_C_L
public static SiteFriendlyURL removeByG_C_L(long groupId, long companyId, String languageId) throws NoSuchFriendlyURLException Removes the site friendly url where groupId = ? and companyId = ? and languageId = ? from the database.- Parameters:
groupId- the group IDcompanyId- the company IDlanguageId- the language ID- Returns:
- the site friendly url that was removed
- Throws:
NoSuchFriendlyURLException
-
countByG_C_L
Returns the number of site friendly urls where groupId = ? and companyId = ? and languageId = ?.- Parameters:
groupId- the group IDcompanyId- the company IDlanguageId- the language ID- Returns:
- the number of matching site friendly urls
-
findByC_F_L
public static SiteFriendlyURL findByC_F_L(long companyId, String friendlyURL, String languageId) throws NoSuchFriendlyURLException Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or throws aNoSuchFriendlyURLExceptionif it could not be found.- Parameters:
companyId- the company IDfriendlyURL- the friendly urllanguageId- the language ID- Returns:
- the matching site friendly url
- Throws:
NoSuchFriendlyURLException- if a matching site friendly url could not be foundNoSuchFriendlyURLException
-
fetchByC_F_L
Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDfriendlyURL- the friendly urllanguageId- the language ID- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
fetchByC_F_L
public static SiteFriendlyURL fetchByC_F_L(long companyId, String friendlyURL, String languageId, boolean useFinderCache) Returns the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDfriendlyURL- the friendly urllanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching site friendly url, or
nullif a matching site friendly url could not be found
-
removeByC_F_L
public static SiteFriendlyURL removeByC_F_L(long companyId, String friendlyURL, String languageId) throws NoSuchFriendlyURLException Removes the site friendly url where companyId = ? and friendlyURL = ? and languageId = ? from the database.- Parameters:
companyId- the company IDfriendlyURL- the friendly urllanguageId- the language ID- Returns:
- the site friendly url that was removed
- Throws:
NoSuchFriendlyURLException
-
countByC_F_L
Returns the number of site friendly urls where companyId = ? and friendlyURL = ? and languageId = ?.- Parameters:
companyId- the company IDfriendlyURL- the friendly urllanguageId- the language ID- Returns:
- the number of matching site friendly urls
-
cacheResult
Caches the site friendly url in the entity cache if it is enabled.- Parameters:
siteFriendlyURL- the site friendly url
-
cacheResult
Caches the site friendly urls in the entity cache if it is enabled.- Parameters:
siteFriendlyURLs- the site friendly urls
-
create
Creates a new site friendly url with the primary key. Does not add the site friendly url to the database.- Parameters:
siteFriendlyURLId- the primary key for the new site friendly url- Returns:
- the new site friendly url
-
remove
Removes the site friendly url with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
siteFriendlyURLId- the primary key of the site friendly url- Returns:
- the site friendly url that was removed
- Throws:
NoSuchFriendlyURLException- if a site friendly url with the primary key could not be foundNoSuchFriendlyURLException
-
updateImpl
-
findByPrimaryKey
public static SiteFriendlyURL findByPrimaryKey(long siteFriendlyURLId) throws NoSuchFriendlyURLException Returns the site friendly url with the primary key or throws aNoSuchFriendlyURLExceptionif it could not be found.- Parameters:
siteFriendlyURLId- the primary key of the site friendly url- Returns:
- the site friendly url
- Throws:
NoSuchFriendlyURLException- if a site friendly url with the primary key could not be foundNoSuchFriendlyURLException
-
fetchByPrimaryKey
Returns the site friendly url with the primary key or returnsnullif it could not be found.- Parameters:
siteFriendlyURLId- the primary key of the site friendly url- Returns:
- the site friendly url, or
nullif a site friendly url with the primary key could not be found
-
findAll
Returns all the site friendly urls.- Returns:
- the site friendly urls
-
findAll
Returns a range of all the site friendly urls.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 fromSiteFriendlyURLModelImpl.- Parameters:
start- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)- Returns:
- the range of site friendly urls
-
findAll
public static List<SiteFriendlyURL> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator) Returns an ordered range of all the site friendly urls.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 fromSiteFriendlyURLModelImpl.- Parameters:
start- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of site friendly urls
-
findAll
public static List<SiteFriendlyURL> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteFriendlyURL> orderByComparator, boolean useFinderCache) Returns an ordered range of all the site friendly urls.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 fromSiteFriendlyURLModelImpl.- Parameters:
start- the lower bound of the range of site friendly urlsend- the upper bound of the range of site friendly urls (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of site friendly urls
-
removeAll
public static void removeAll()Removes all the site friendly urls from the database. -
countAll
public static int countAll()Returns the number of site friendly urls.- Returns:
- the number of site friendly urls
-
getPersistence
-
setPersistence
-