/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.friendly.url.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.friendly.url.model.FriendlyURLEntryLocalization; import com.liferay.osgi.util.ServiceTrackerFactory; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.OrderByComparator; import org.osgi.util.tracker.ServiceTracker; import java.util.List; /** * The persistence utility for the friendly url entry localization service. This utility wraps {@link com.liferay.friendly.url.service.persistence.impl.FriendlyURLEntryLocalizationPersistenceImpl} 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. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see FriendlyURLEntryLocalizationPersistence * @see com.liferay.friendly.url.service.persistence.impl.FriendlyURLEntryLocalizationPersistenceImpl * @generated */ @ProviderType public class FriendlyURLEntryLocalizationUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache( FriendlyURLEntryLocalization friendlyURLEntryLocalization) { getPersistence().clearCache(friendlyURLEntryLocalization); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<FriendlyURLEntryLocalization> findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<FriendlyURLEntryLocalization> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<FriendlyURLEntryLocalization> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static FriendlyURLEntryLocalization update( FriendlyURLEntryLocalization friendlyURLEntryLocalization) { return getPersistence().update(friendlyURLEntryLocalization); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static FriendlyURLEntryLocalization update( FriendlyURLEntryLocalization friendlyURLEntryLocalization, ServiceContext serviceContext) { return getPersistence() .update(friendlyURLEntryLocalization, serviceContext); } /** * Returns all the friendly url entry localizations where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @return the matching friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findByG_F(long groupId, long friendlyURLEntryId) { return getPersistence().findByG_F(groupId, friendlyURLEntryId); } /** * Returns a range of all the friendly url entry localizations where groupId = ? and friendlyURLEntryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @return the range of matching friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findByG_F(long groupId, long friendlyURLEntryId, int start, int end) { return getPersistence() .findByG_F(groupId, friendlyURLEntryId, start, end); } /** * Returns an ordered range of all the friendly url entry localizations where groupId = ? and friendlyURLEntryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findByG_F(long groupId, long friendlyURLEntryId, int start, int end, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) { return getPersistence() .findByG_F(groupId, friendlyURLEntryId, start, end, orderByComparator); } /** * Returns an ordered range of all the friendly url entry localizations where groupId = ? and friendlyURLEntryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findByG_F(long groupId, long friendlyURLEntryId, int start, int end, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByG_F(groupId, friendlyURLEntryId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first friendly url entry localization in the ordered set where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization findByG_F_First(long groupId, long friendlyURLEntryId, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence() .findByG_F_First(groupId, friendlyURLEntryId, orderByComparator); } /** * Returns the first friendly url entry localization in the ordered set where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_F_First(long groupId, long friendlyURLEntryId, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) { return getPersistence() .fetchByG_F_First(groupId, friendlyURLEntryId, orderByComparator); } /** * Returns the last friendly url entry localization in the ordered set where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization findByG_F_Last(long groupId, long friendlyURLEntryId, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence() .findByG_F_Last(groupId, friendlyURLEntryId, orderByComparator); } /** * Returns the last friendly url entry localization in the ordered set where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_F_Last(long groupId, long friendlyURLEntryId, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) { return getPersistence() .fetchByG_F_Last(groupId, friendlyURLEntryId, orderByComparator); } /** * Returns the friendly url entry localizations before and after the current friendly url entry localization in the ordered set where groupId = ? and friendlyURLEntryId = ?. * * @param friendlyURLEntryLocalizationId the primary key of the current friendly url entry localization * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a friendly url entry localization with the primary key could not be found */ public static FriendlyURLEntryLocalization[] findByG_F_PrevAndNext( long friendlyURLEntryLocalizationId, long groupId, long friendlyURLEntryId, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence() .findByG_F_PrevAndNext(friendlyURLEntryLocalizationId, groupId, friendlyURLEntryId, orderByComparator); } /** * Removes all the friendly url entry localizations where groupId = ? and friendlyURLEntryId = ? from the database. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID */ public static void removeByG_F(long groupId, long friendlyURLEntryId) { getPersistence().removeByG_F(groupId, friendlyURLEntryId); } /** * Returns the number of friendly url entry localizations where groupId = ? and friendlyURLEntryId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @return the number of matching friendly url entry localizations */ public static int countByG_F(long groupId, long friendlyURLEntryId) { return getPersistence().countByG_F(groupId, friendlyURLEntryId); } /** * Returns the friendly url entry localization where groupId = ? and friendlyURLEntryId = ? and languageId = ? or throws a {@link NoSuchFriendlyURLEntryLocalizationException} if it could not be found. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization findByG_F_L(long groupId, long friendlyURLEntryId, java.lang.String languageId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence() .findByG_F_L(groupId, friendlyURLEntryId, languageId); } /** * Returns the friendly url entry localization where groupId = ? and friendlyURLEntryId = ? and languageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_F_L(long groupId, long friendlyURLEntryId, java.lang.String languageId) { return getPersistence() .fetchByG_F_L(groupId, friendlyURLEntryId, languageId); } /** * Returns the friendly url entry localization where groupId = ? and friendlyURLEntryId = ? and languageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_F_L(long groupId, long friendlyURLEntryId, java.lang.String languageId, boolean retrieveFromCache) { return getPersistence() .fetchByG_F_L(groupId, friendlyURLEntryId, languageId, retrieveFromCache); } /** * Removes the friendly url entry localization where groupId = ? and friendlyURLEntryId = ? and languageId = ? from the database. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the friendly url entry localization that was removed */ public static FriendlyURLEntryLocalization removeByG_F_L(long groupId, long friendlyURLEntryId, java.lang.String languageId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence() .removeByG_F_L(groupId, friendlyURLEntryId, languageId); } /** * Returns the number of friendly url entry localizations where groupId = ? and friendlyURLEntryId = ? and languageId = ?. * * @param groupId the group ID * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the number of matching friendly url entry localizations */ public static int countByG_F_L(long groupId, long friendlyURLEntryId, java.lang.String languageId) { return getPersistence() .countByG_F_L(groupId, friendlyURLEntryId, languageId); } /** * Returns the friendly url entry localization where groupId = ? and urlTitle = ? and languageId = ? or throws a {@link NoSuchFriendlyURLEntryLocalizationException} if it could not be found. * * @param groupId the group ID * @param urlTitle the url title * @param languageId the language ID * @return the matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization findByG_U_L(long groupId, java.lang.String urlTitle, java.lang.String languageId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence().findByG_U_L(groupId, urlTitle, languageId); } /** * Returns the friendly url entry localization where groupId = ? and urlTitle = ? and languageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param urlTitle the url title * @param languageId the language ID * @return the matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_U_L(long groupId, java.lang.String urlTitle, java.lang.String languageId) { return getPersistence().fetchByG_U_L(groupId, urlTitle, languageId); } /** * Returns the friendly url entry localization where groupId = ? and urlTitle = ? and languageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param urlTitle the url title * @param languageId the language ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching friendly url entry localization, or <code>null</code> if a matching friendly url entry localization could not be found */ public static FriendlyURLEntryLocalization fetchByG_U_L(long groupId, java.lang.String urlTitle, java.lang.String languageId, boolean retrieveFromCache) { return getPersistence() .fetchByG_U_L(groupId, urlTitle, languageId, retrieveFromCache); } /** * Removes the friendly url entry localization where groupId = ? and urlTitle = ? and languageId = ? from the database. * * @param groupId the group ID * @param urlTitle the url title * @param languageId the language ID * @return the friendly url entry localization that was removed */ public static FriendlyURLEntryLocalization removeByG_U_L(long groupId, java.lang.String urlTitle, java.lang.String languageId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence().removeByG_U_L(groupId, urlTitle, languageId); } /** * Returns the number of friendly url entry localizations where groupId = ? and urlTitle = ? and languageId = ?. * * @param groupId the group ID * @param urlTitle the url title * @param languageId the language ID * @return the number of matching friendly url entry localizations */ public static int countByG_U_L(long groupId, java.lang.String urlTitle, java.lang.String languageId) { return getPersistence().countByG_U_L(groupId, urlTitle, languageId); } /** * Caches the friendly url entry localization in the entity cache if it is enabled. * * @param friendlyURLEntryLocalization the friendly url entry localization */ public static void cacheResult( FriendlyURLEntryLocalization friendlyURLEntryLocalization) { getPersistence().cacheResult(friendlyURLEntryLocalization); } /** * Caches the friendly url entry localizations in the entity cache if it is enabled. * * @param friendlyURLEntryLocalizations the friendly url entry localizations */ public static void cacheResult( List<FriendlyURLEntryLocalization> friendlyURLEntryLocalizations) { getPersistence().cacheResult(friendlyURLEntryLocalizations); } /** * Creates a new friendly url entry localization with the primary key. Does not add the friendly url entry localization to the database. * * @param friendlyURLEntryLocalizationId the primary key for the new friendly url entry localization * @return the new friendly url entry localization */ public static FriendlyURLEntryLocalization create( long friendlyURLEntryLocalizationId) { return getPersistence().create(friendlyURLEntryLocalizationId); } /** * Removes the friendly url entry localization with the primary key from the database. Also notifies the appropriate model listeners. * * @param friendlyURLEntryLocalizationId the primary key of the friendly url entry localization * @return the friendly url entry localization that was removed * @throws NoSuchFriendlyURLEntryLocalizationException if a friendly url entry localization with the primary key could not be found */ public static FriendlyURLEntryLocalization remove( long friendlyURLEntryLocalizationId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence().remove(friendlyURLEntryLocalizationId); } public static FriendlyURLEntryLocalization updateImpl( FriendlyURLEntryLocalization friendlyURLEntryLocalization) { return getPersistence().updateImpl(friendlyURLEntryLocalization); } /** * Returns the friendly url entry localization with the primary key or throws a {@link NoSuchFriendlyURLEntryLocalizationException} if it could not be found. * * @param friendlyURLEntryLocalizationId the primary key of the friendly url entry localization * @return the friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a friendly url entry localization with the primary key could not be found */ public static FriendlyURLEntryLocalization findByPrimaryKey( long friendlyURLEntryLocalizationId) throws com.liferay.friendly.url.exception.NoSuchFriendlyURLEntryLocalizationException { return getPersistence().findByPrimaryKey(friendlyURLEntryLocalizationId); } /** * Returns the friendly url entry localization with the primary key or returns <code>null</code> if it could not be found. * * @param friendlyURLEntryLocalizationId the primary key of the friendly url entry localization * @return the friendly url entry localization, or <code>null</code> if a friendly url entry localization with the primary key could not be found */ public static FriendlyURLEntryLocalization fetchByPrimaryKey( long friendlyURLEntryLocalizationId) { return getPersistence().fetchByPrimaryKey(friendlyURLEntryLocalizationId); } public static java.util.Map<java.io.Serializable, FriendlyURLEntryLocalization> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the friendly url entry localizations. * * @return the friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the friendly url entry localizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @return the range of friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the friendly url entry localizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findAll(int start, int end, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the friendly url entry localizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link FriendlyURLEntryLocalizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of friendly url entry localizations * @param end the upper bound of the range of friendly url entry localizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of friendly url entry localizations */ public static List<FriendlyURLEntryLocalization> findAll(int start, int end, OrderByComparator<FriendlyURLEntryLocalization> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findAll(start, end, orderByComparator, retrieveFromCache); } /** * Removes all the friendly url entry localizations from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of friendly url entry localizations. * * @return the number of friendly url entry localizations */ public static int countAll() { return getPersistence().countAll(); } public static FriendlyURLEntryLocalizationPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<FriendlyURLEntryLocalizationPersistence, FriendlyURLEntryLocalizationPersistence> _serviceTracker = ServiceTrackerFactory.open(FriendlyURLEntryLocalizationPersistence.class); }