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

com.liferay.ratings.kernel.service.persistence.RatingsStatsPersistence Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 156.0.0
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.ratings.kernel.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.service.persistence.BasePersistence;

import com.liferay.ratings.kernel.exception.NoSuchStatsException;
import com.liferay.ratings.kernel.model.RatingsStats;

/**
 * The persistence interface for the ratings stats service.
 *
 * 

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

* * @author Brian Wing Shun Chan * @see com.liferay.portlet.ratings.service.persistence.impl.RatingsStatsPersistenceImpl * @see RatingsStatsUtil * @generated */ @ProviderType public interface RatingsStatsPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link RatingsStatsUtil} to access the ratings stats persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns the ratings stats where classNameId = ? and classPK = ? or throws a {@link NoSuchStatsException} if it could not be found. * * @param classNameId the class name ID * @param classPK the class p k * @return the matching ratings stats * @throws NoSuchStatsException if a matching ratings stats could not be found */ public RatingsStats findByC_C(long classNameId, long classPK) throws NoSuchStatsException; /** * Returns the ratings stats where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param classNameId the class name ID * @param classPK the class p k * @return the matching ratings stats, or null if a matching ratings stats could not be found */ public RatingsStats fetchByC_C(long classNameId, long classPK); /** * Returns the ratings stats where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param classNameId the class name ID * @param classPK the class p k * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching ratings stats, or null if a matching ratings stats could not be found */ public RatingsStats fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache); /** * Removes the ratings stats where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class p k * @return the ratings stats that was removed */ public RatingsStats removeByC_C(long classNameId, long classPK) throws NoSuchStatsException; /** * Returns the number of ratings statses where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class p k * @return the number of matching ratings statses */ public int countByC_C(long classNameId, long classPK); /** * Caches the ratings stats in the entity cache if it is enabled. * * @param ratingsStats the ratings stats */ public void cacheResult(RatingsStats ratingsStats); /** * Caches the ratings statses in the entity cache if it is enabled. * * @param ratingsStatses the ratings statses */ public void cacheResult(java.util.List ratingsStatses); /** * Creates a new ratings stats with the primary key. Does not add the ratings stats to the database. * * @param statsId the primary key for the new ratings stats * @return the new ratings stats */ public RatingsStats create(long statsId); /** * Removes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners. * * @param statsId the primary key of the ratings stats * @return the ratings stats that was removed * @throws NoSuchStatsException if a ratings stats with the primary key could not be found */ public RatingsStats remove(long statsId) throws NoSuchStatsException; public RatingsStats updateImpl(RatingsStats ratingsStats); /** * Returns the ratings stats with the primary key or throws a {@link NoSuchStatsException} if it could not be found. * * @param statsId the primary key of the ratings stats * @return the ratings stats * @throws NoSuchStatsException if a ratings stats with the primary key could not be found */ public RatingsStats findByPrimaryKey(long statsId) throws NoSuchStatsException; /** * Returns the ratings stats with the primary key or returns null if it could not be found. * * @param statsId the primary key of the ratings stats * @return the ratings stats, or null if a ratings stats with the primary key could not be found */ public RatingsStats fetchByPrimaryKey(long statsId); @Override public java.util.Map fetchByPrimaryKeys( java.util.Set primaryKeys); /** * Returns all the ratings statses. * * @return the ratings statses */ public java.util.List findAll(); /** * Returns a range of all the ratings statses. * *

* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsStatsModelImpl}. 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 ratings statses * @param end the upper bound of the range of ratings statses (not inclusive) * @return the range of ratings statses */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the ratings statses. * *

* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsStatsModelImpl}. 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 ratings statses * @param end the upper bound of the range of ratings statses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of ratings statses */ public java.util.List findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the ratings statses. * *

* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsStatsModelImpl}. 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 ratings statses * @param end the upper bound of the range of ratings statses (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 ratings statses */ public java.util.List findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the ratings statses from the database. */ public void removeAll(); /** * Returns the number of ratings statses. * * @return the number of ratings statses */ public int countAll(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy