All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.friendly.url.service.persistence.FriendlyURLEntryLocalizationPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * 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.exception.NoSuchFriendlyURLEntryLocalizationException;
import com.liferay.friendly.url.model.FriendlyURLEntryLocalization;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * The persistence interface for the friendly url entry localization service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see FriendlyURLEntryLocalizationUtil * @generated */ @ProviderType public interface FriendlyURLEntryLocalizationPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link FriendlyURLEntryLocalizationUtil} to access the friendly url entry localization persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the friendly url entry localizations where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @return the matching friendly url entry localizations */ public java.util.List findByFriendlyURLEntryId(long friendlyURLEntryId); /** * Returns a range of all the friendly url entry localizations where friendlyURLEntryId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 java.util.List findByFriendlyURLEntryId(long friendlyURLEntryId, int start, int end); /** * Returns an ordered range of all the friendly url entry localizations where friendlyURLEntryId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 null) * @return the ordered range of matching friendly url entry localizations */ public java.util.List findByFriendlyURLEntryId( long friendlyURLEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the friendly url entry localizations where friendlyURLEntryId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching friendly url entry localizations */ public java.util.List findByFriendlyURLEntryId( long friendlyURLEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first friendly url entry localization in the ordered set where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization findByFriendlyURLEntryId_First( long friendlyURLEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the first friendly url entry localization in the ordered set where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching friendly url entry localization, or null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByFriendlyURLEntryId_First( long friendlyURLEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last friendly url entry localization in the ordered set where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization findByFriendlyURLEntryId_Last( long friendlyURLEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the last friendly url entry localization in the ordered set where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching friendly url entry localization, or null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByFriendlyURLEntryId_Last( long friendlyURLEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the friendly url entry localizations before and after the current friendly url entry localization in the ordered set where friendlyURLEntryId = ?. * * @param friendlyURLEntryLocalizationId the primary key of the current friendly url entry localization * @param friendlyURLEntryId the friendly url entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @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 FriendlyURLEntryLocalization[] findByFriendlyURLEntryId_PrevAndNext( long friendlyURLEntryLocalizationId, long friendlyURLEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchFriendlyURLEntryLocalizationException; /** * Removes all the friendly url entry localizations where friendlyURLEntryId = ? from the database. * * @param friendlyURLEntryId the friendly url entry ID */ public void removeByFriendlyURLEntryId(long friendlyURLEntryId); /** * Returns the number of friendly url entry localizations where friendlyURLEntryId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @return the number of matching friendly url entry localizations */ public int countByFriendlyURLEntryId(long friendlyURLEntryId); /** * Returns the friendly url entry localization where friendlyURLEntryId = ? and languageId = ? or throws a NoSuchFriendlyURLEntryLocalizationException if it could not be found. * * @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 FriendlyURLEntryLocalization findByFriendlyURLEntryId_LanguageId( long friendlyURLEntryId, String languageId) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the friendly url entry localization where friendlyURLEntryId = ? and languageId = ? or returns null if it could not be found. Uses the finder cache. * * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the matching friendly url entry localization, or null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByFriendlyURLEntryId_LanguageId( long friendlyURLEntryId, String languageId); /** * Returns the friendly url entry localization where friendlyURLEntryId = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache. * * @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 null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByFriendlyURLEntryId_LanguageId( long friendlyURLEntryId, String languageId, boolean retrieveFromCache); /** * Removes the friendly url entry localization where friendlyURLEntryId = ? and languageId = ? from the database. * * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the friendly url entry localization that was removed */ public FriendlyURLEntryLocalization removeByFriendlyURLEntryId_LanguageId( long friendlyURLEntryId, String languageId) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the number of friendly url entry localizations where friendlyURLEntryId = ? and languageId = ?. * * @param friendlyURLEntryId the friendly url entry ID * @param languageId the language ID * @return the number of matching friendly url entry localizations */ public int countByFriendlyURLEntryId_LanguageId( long friendlyURLEntryId, String languageId); /** * Returns the friendly url entry localization where groupId = ? and classNameId = ? and urlTitle = ? or throws a NoSuchFriendlyURLEntryLocalizationException if it could not be found. * * @param groupId the group ID * @param classNameId the class name ID * @param urlTitle the url title * @return the matching friendly url entry localization * @throws NoSuchFriendlyURLEntryLocalizationException if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization findByG_C_U( long groupId, long classNameId, String urlTitle) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the friendly url entry localization where groupId = ? and classNameId = ? and urlTitle = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param urlTitle the url title * @return the matching friendly url entry localization, or null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByG_C_U( long groupId, long classNameId, String urlTitle); /** * Returns the friendly url entry localization where groupId = ? and classNameId = ? and urlTitle = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param urlTitle the url title * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching friendly url entry localization, or null if a matching friendly url entry localization could not be found */ public FriendlyURLEntryLocalization fetchByG_C_U( long groupId, long classNameId, String urlTitle, boolean retrieveFromCache); /** * Removes the friendly url entry localization where groupId = ? and classNameId = ? and urlTitle = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param urlTitle the url title * @return the friendly url entry localization that was removed */ public FriendlyURLEntryLocalization removeByG_C_U( long groupId, long classNameId, String urlTitle) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the number of friendly url entry localizations where groupId = ? and classNameId = ? and urlTitle = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param urlTitle the url title * @return the number of matching friendly url entry localizations */ public int countByG_C_U(long groupId, long classNameId, String urlTitle); /** * Caches the friendly url entry localization in the entity cache if it is enabled. * * @param friendlyURLEntryLocalization the friendly url entry localization */ public void cacheResult( FriendlyURLEntryLocalization friendlyURLEntryLocalization); /** * Caches the friendly url entry localizations in the entity cache if it is enabled. * * @param friendlyURLEntryLocalizations the friendly url entry localizations */ public void cacheResult( java.util.List 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 FriendlyURLEntryLocalization create( long 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 FriendlyURLEntryLocalization remove( long friendlyURLEntryLocalizationId) throws NoSuchFriendlyURLEntryLocalizationException; public FriendlyURLEntryLocalization updateImpl( FriendlyURLEntryLocalization friendlyURLEntryLocalization); /** * Returns the friendly url entry localization with the primary key or throws a 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 FriendlyURLEntryLocalization findByPrimaryKey( long friendlyURLEntryLocalizationId) throws NoSuchFriendlyURLEntryLocalizationException; /** * Returns the friendly url entry localization with the primary key or returns null if it could not be found. * * @param friendlyURLEntryLocalizationId the primary key of the friendly url entry localization * @return the friendly url entry localization, or null if a friendly url entry localization with the primary key could not be found */ public FriendlyURLEntryLocalization fetchByPrimaryKey( long friendlyURLEntryLocalizationId); /** * Returns all the friendly url entry localizations. * * @return the friendly url entry localizations */ public java.util.List findAll(); /** * Returns a range of all the friendly url entry localizations. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 java.util.List findAll( int start, int end); /** * Returns an ordered range of all the friendly url entry localizations. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 null) * @return the ordered range of friendly url entry localizations */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the friendly url entry localizations. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from FriendlyURLEntryLocalizationModelImpl. If both orderByComparator 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. *

* * @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 null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of friendly url entry localizations */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the friendly url entry localizations from the database. */ public void removeAll(); /** * Returns the number of friendly url entry localizations. * * @return the number of friendly url entry localizations */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy