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

com.liferay.asset.tag.stats.service.persistence.AssetTagStatsPersistence 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.asset.tag.stats.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.asset.tag.stats.exception.NoSuchTagStatsException;
import com.liferay.asset.tag.stats.model.AssetTagStats;
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 asset tag stats service.
 *
 * 

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

* * @author Brian Wing Shun Chan * @see AssetTagStatsUtil * @generated */ @ProviderType public interface AssetTagStatsPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link AssetTagStatsUtil} to access the asset tag stats persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the asset tag statses where tagId = ?. * * @param tagId the tag ID * @return the matching asset tag statses */ public java.util.List findByTagId(long tagId); /** * Returns a range of all the asset tag statses where tagId = ?. * *

* 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 AssetTagStatsModelImpl. 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 tagId the tag ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @return the range of matching asset tag statses */ public java.util.List findByTagId( long tagId, int start, int end); /** * Returns an ordered range of all the asset tag statses where tagId = ?. * *

* 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 AssetTagStatsModelImpl. 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 tagId the tag ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching asset tag statses */ public java.util.List findByTagId( long tagId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the asset tag statses where tagId = ?. * *

* 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 AssetTagStatsModelImpl. 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 tagId the tag ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag 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 matching asset tag statses */ public java.util.List findByTagId( long tagId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag stats in the ordered set where tagId = ?. * * @param tagId the tag ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asset tag stats * @throws NoSuchTagStatsException if a matching asset tag stats could not be found */ public AssetTagStats findByTagId_First( long tagId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Returns the first asset tag stats in the ordered set where tagId = ?. * * @param tagId the tag ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByTagId_First( long tagId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last asset tag stats in the ordered set where tagId = ?. * * @param tagId the tag ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asset tag stats * @throws NoSuchTagStatsException if a matching asset tag stats could not be found */ public AssetTagStats findByTagId_Last( long tagId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Returns the last asset tag stats in the ordered set where tagId = ?. * * @param tagId the tag ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByTagId_Last( long tagId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = ?. * * @param tagStatsId the primary key of the current asset tag stats * @param tagId the tag ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next asset tag stats * @throws NoSuchTagStatsException if a asset tag stats with the primary key could not be found */ public AssetTagStats[] findByTagId_PrevAndNext( long tagStatsId, long tagId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Removes all the asset tag statses where tagId = ? from the database. * * @param tagId the tag ID */ public void removeByTagId(long tagId); /** * Returns the number of asset tag statses where tagId = ?. * * @param tagId the tag ID * @return the number of matching asset tag statses */ public int countByTagId(long tagId); /** * Returns all the asset tag statses where classNameId = ?. * * @param classNameId the class name ID * @return the matching asset tag statses */ public java.util.List findByClassNameId(long classNameId); /** * Returns a range of all the asset tag statses where classNameId = ?. * *

* 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 AssetTagStatsModelImpl. 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 classNameId the class name ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @return the range of matching asset tag statses */ public java.util.List findByClassNameId( long classNameId, int start, int end); /** * Returns an ordered range of all the asset tag statses where classNameId = ?. * *

* 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 AssetTagStatsModelImpl. 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 classNameId the class name ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching asset tag statses */ public java.util.List findByClassNameId( long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the asset tag statses where classNameId = ?. * *

* 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 AssetTagStatsModelImpl. 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 classNameId the class name ID * @param start the lower bound of the range of asset tag statses * @param end the upper bound of the range of asset tag 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 matching asset tag statses */ public java.util.List findByClassNameId( long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag stats in the ordered set where classNameId = ?. * * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asset tag stats * @throws NoSuchTagStatsException if a matching asset tag stats could not be found */ public AssetTagStats findByClassNameId_First( long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Returns the first asset tag stats in the ordered set where classNameId = ?. * * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByClassNameId_First( long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last asset tag stats in the ordered set where classNameId = ?. * * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asset tag stats * @throws NoSuchTagStatsException if a matching asset tag stats could not be found */ public AssetTagStats findByClassNameId_Last( long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Returns the last asset tag stats in the ordered set where classNameId = ?. * * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByClassNameId_Last( long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?. * * @param tagStatsId the primary key of the current asset tag stats * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next asset tag stats * @throws NoSuchTagStatsException if a asset tag stats with the primary key could not be found */ public AssetTagStats[] findByClassNameId_PrevAndNext( long tagStatsId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchTagStatsException; /** * Removes all the asset tag statses where classNameId = ? from the database. * * @param classNameId the class name ID */ public void removeByClassNameId(long classNameId); /** * Returns the number of asset tag statses where classNameId = ?. * * @param classNameId the class name ID * @return the number of matching asset tag statses */ public int countByClassNameId(long classNameId); /** * Returns the asset tag stats where tagId = ? and classNameId = ? or throws a NoSuchTagStatsException if it could not be found. * * @param tagId the tag ID * @param classNameId the class name ID * @return the matching asset tag stats * @throws NoSuchTagStatsException if a matching asset tag stats could not be found */ public AssetTagStats findByT_C(long tagId, long classNameId) throws NoSuchTagStatsException; /** * Returns the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found. Uses the finder cache. * * @param tagId the tag ID * @param classNameId the class name ID * @return the matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByT_C(long tagId, long classNameId); /** * Returns the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache. * * @param tagId the tag ID * @param classNameId the class name ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching asset tag stats, or null if a matching asset tag stats could not be found */ public AssetTagStats fetchByT_C( long tagId, long classNameId, boolean retrieveFromCache); /** * Removes the asset tag stats where tagId = ? and classNameId = ? from the database. * * @param tagId the tag ID * @param classNameId the class name ID * @return the asset tag stats that was removed */ public AssetTagStats removeByT_C(long tagId, long classNameId) throws NoSuchTagStatsException; /** * Returns the number of asset tag statses where tagId = ? and classNameId = ?. * * @param tagId the tag ID * @param classNameId the class name ID * @return the number of matching asset tag statses */ public int countByT_C(long tagId, long classNameId); /** * Caches the asset tag stats in the entity cache if it is enabled. * * @param assetTagStats the asset tag stats */ public void cacheResult(AssetTagStats assetTagStats); /** * Caches the asset tag statses in the entity cache if it is enabled. * * @param assetTagStatses the asset tag statses */ public void cacheResult(java.util.List assetTagStatses); /** * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database. * * @param tagStatsId the primary key for the new asset tag stats * @return the new asset tag stats */ public AssetTagStats create(long tagStatsId); /** * Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners. * * @param tagStatsId the primary key of the asset tag stats * @return the asset tag stats that was removed * @throws NoSuchTagStatsException if a asset tag stats with the primary key could not be found */ public AssetTagStats remove(long tagStatsId) throws NoSuchTagStatsException; public AssetTagStats updateImpl(AssetTagStats assetTagStats); /** * Returns the asset tag stats with the primary key or throws a NoSuchTagStatsException if it could not be found. * * @param tagStatsId the primary key of the asset tag stats * @return the asset tag stats * @throws NoSuchTagStatsException if a asset tag stats with the primary key could not be found */ public AssetTagStats findByPrimaryKey(long tagStatsId) throws NoSuchTagStatsException; /** * Returns the asset tag stats with the primary key or returns null if it could not be found. * * @param tagStatsId the primary key of the asset tag stats * @return the asset tag stats, or null if a asset tag stats with the primary key could not be found */ public AssetTagStats fetchByPrimaryKey(long tagStatsId); /** * Returns all the asset tag statses. * * @return the asset tag statses */ public java.util.List findAll(); /** * Returns a range of all the asset tag 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 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 AssetTagStatsModelImpl. 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 asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @return the range of asset tag statses */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the asset tag 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 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 AssetTagStatsModelImpl. 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 asset tag statses * @param end the upper bound of the range of asset tag statses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of asset tag statses */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the asset tag 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 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 AssetTagStatsModelImpl. 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 asset tag statses * @param end the upper bound of the range of asset tag 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 asset tag statses */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the asset tag statses from the database. */ public void removeAll(); /** * Returns the number of asset tag statses. * * @return the number of asset tag statses */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy