/** * 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.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.asset.kernel.exception.NoSuchTagException; import com.liferay.asset.kernel.model.AssetTag; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the asset tag service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.asset.service.persistence.impl.AssetTagPersistenceImpl * @see AssetTagUtil * @generated */ @ProviderType public interface AssetTagPersistence extends BasePersistence<AssetTag> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link AssetTagUtil} to access the asset tag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the asset tags where uuid = ?. * * @param uuid the uuid * @return the matching asset tags */ public java.util.List<AssetTag> findByUuid(java.lang.String uuid); /** * Returns a range of all the asset tags where uuid = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the asset tags where uuid = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where uuid = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the first asset tag in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the last asset tag in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the last asset tag in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set where uuid = ?. * * @param tagId the primary key of the current asset tag * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] findByUuid_PrevAndNext(long tagId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Removes all the asset tags where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of asset tags where uuid = ?. * * @param uuid the uuid * @return the number of matching asset tags */ public int countByUuid(java.lang.String uuid); /** * Returns the asset tag where uuid = ? and groupId = ? or throws a {@link NoSuchTagException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTagException; /** * Returns the asset tag where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUUID_G(java.lang.String uuid, long groupId); /** * Returns the asset tag where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache); /** * Removes the asset tag where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the asset tag that was removed */ public AssetTag removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTagException; /** * Returns the number of asset tags where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching asset tags */ public int countByUUID_G(java.lang.String uuid, long groupId); /** * Returns all the asset tags where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching asset tags */ public java.util.List<AssetTag> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the asset tags where uuid = ? and companyId = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the asset tags where uuid = ? and companyId = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where uuid = ? and companyId = ?. * * <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 AssetTagModelImpl}. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the first asset tag in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the last asset tag in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the last asset tag in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set where uuid = ? and companyId = ?. * * @param tagId the primary key of the current asset tag * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] findByUuid_C_PrevAndNext(long tagId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Removes all the asset tags where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(java.lang.String uuid, long companyId); /** * Returns the number of asset tags where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching asset tags */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the asset tags where groupId = ?. * * @param groupId the group ID * @return the matching asset tags */ public java.util.List<AssetTag> findByGroupId(long groupId); /** * Returns a range of all the asset tags where groupId = ?. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the asset tags where groupId = ?. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where groupId = ?. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the first asset tag in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the last asset tag in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the last asset tag in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?. * * @param tagId the primary key of the current asset tag * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns all the asset tags that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long groupId); /** * Returns a range of all the asset tags that the user has permission to view where groupId = ?. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = ?. * * @param tagId the primary key of the current asset tag * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] filterFindByGroupId_PrevAndNext(long tagId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns all the asset tags that the user has permission to view where groupId = any ?. * * @param groupIds the group IDs * @return the matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long[] groupIds); /** * Returns a range of all the asset tags that the user has permission to view where groupId = any ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long[] groupIds, int start, int end); /** * Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns all the asset tags where groupId = any ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @return the matching asset tags */ public java.util.List<AssetTag> findByGroupId(long[] groupIds); /** * Returns a range of all the asset tags where groupId = any ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByGroupId(long[] groupIds, int start, int end); /** * Returns an ordered range of all the asset tags where groupId = any ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache. * * <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 AssetTagModelImpl}. 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 start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset tags where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of asset tags where groupId = ?. * * @param groupId the group ID * @return the number of matching asset tags */ public int countByGroupId(long groupId); /** * Returns the number of asset tags where groupId = any ?. * * @param groupIds the group IDs * @return the number of matching asset tags */ public int countByGroupId(long[] groupIds); /** * Returns the number of asset tags that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching asset tags that the user has permission to view */ public int filterCountByGroupId(long groupId); /** * Returns the number of asset tags that the user has permission to view where groupId = any ?. * * @param groupIds the group IDs * @return the number of matching asset tags that the user has permission to view */ public int filterCountByGroupId(long[] groupIds); /** * Returns the asset tag where groupId = ? and name = ? or throws a {@link NoSuchTagException} if it could not be found. * * @param groupId the group ID * @param name the name * @return the matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByG_N(long groupId, java.lang.String name) throws NoSuchTagException; /** * Returns the asset tag where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param name the name * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByG_N(long groupId, java.lang.String name); /** * Returns the asset tag where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param name the name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache); /** * Removes the asset tag where groupId = ? and name = ? from the database. * * @param groupId the group ID * @param name the name * @return the asset tag that was removed */ public AssetTag removeByG_N(long groupId, java.lang.String name) throws NoSuchTagException; /** * Returns the number of asset tags where groupId = ? and name = ?. * * @param groupId the group ID * @param name the name * @return the number of matching asset tags */ public int countByG_N(long groupId, java.lang.String name); /** * Returns all the asset tags where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @return the matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long groupId, java.lang.String name); /** * Returns a range of all the asset tags where groupId = ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long groupId, java.lang.String name, int start, int end); /** * Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByG_LikeN(long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByG_LikeN_First(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByG_LikeN_First(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag * @throws NoSuchTagException if a matching asset tag could not be found */ public AssetTag findByG_LikeN_Last(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public AssetTag fetchByG_LikeN_Last(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set where groupId = ? and name LIKE ?. * * @param tagId the primary key of the current asset tag * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] findByG_LikeN_PrevAndNext(long tagId, long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns all the asset tags that the user has permission to view where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @return the matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long groupId, java.lang.String name); /** * Returns a range of all the asset tags that the user has permission to view where groupId = ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long groupId, java.lang.String name, int start, int end); /** * Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = ? and name LIKE ?. * * @param tagId the primary key of the current asset tag * @param groupId the group ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag[] filterFindByG_LikeN_PrevAndNext(long tagId, long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException; /** * Returns all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?. * * @param groupIds the group IDs * @param name the name * @return the matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long[] groupIds, java.lang.String name); /** * Returns a range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long[] groupIds, java.lang.String name, int start, int end); /** * Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags that the user has permission to view */ public java.util.List<AssetTag> filterFindByG_LikeN(long[] groupIds, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns all the asset tags where groupId = any ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param name the name * @return the matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long[] groupIds, java.lang.String name); /** * Returns a range of all the asset tags where groupId = any ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long[] groupIds, java.lang.String name, int start, int end); /** * Returns an ordered range of all the asset tags where groupId = any ? and name LIKE ?. * * <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 AssetTagModelImpl}. 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 groupIds the group IDs * @param name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset tags */ public java.util.List<AssetTag> findByG_LikeN(long[] groupIds, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache. * * <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 AssetTagModelImpl}. 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 name the name * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findByG_LikeN(long[] groupIds, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset tags where groupId = ? and name LIKE ? from the database. * * @param groupId the group ID * @param name the name */ public void removeByG_LikeN(long groupId, java.lang.String name); /** * Returns the number of asset tags where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @return the number of matching asset tags */ public int countByG_LikeN(long groupId, java.lang.String name); /** * Returns the number of asset tags where groupId = any ? and name LIKE ?. * * @param groupIds the group IDs * @param name the name * @return the number of matching asset tags */ public int countByG_LikeN(long[] groupIds, java.lang.String name); /** * Returns the number of asset tags that the user has permission to view where groupId = ? and name LIKE ?. * * @param groupId the group ID * @param name the name * @return the number of matching asset tags that the user has permission to view */ public int filterCountByG_LikeN(long groupId, java.lang.String name); /** * Returns the number of asset tags that the user has permission to view where groupId = any ? and name LIKE ?. * * @param groupIds the group IDs * @param name the name * @return the number of matching asset tags that the user has permission to view */ public int filterCountByG_LikeN(long[] groupIds, java.lang.String name); /** * Caches the asset tag in the entity cache if it is enabled. * * @param assetTag the asset tag */ public void cacheResult(AssetTag assetTag); /** * Caches the asset tags in the entity cache if it is enabled. * * @param assetTags the asset tags */ public void cacheResult(java.util.List<AssetTag> assetTags); /** * Creates a new asset tag with the primary key. Does not add the asset tag to the database. * * @param tagId the primary key for the new asset tag * @return the new asset tag */ public AssetTag create(long tagId); /** * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners. * * @param tagId the primary key of the asset tag * @return the asset tag that was removed * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag remove(long tagId) throws NoSuchTagException; public AssetTag updateImpl(AssetTag assetTag); /** * Returns the asset tag with the primary key or throws a {@link NoSuchTagException} if it could not be found. * * @param tagId the primary key of the asset tag * @return the asset tag * @throws NoSuchTagException if a asset tag with the primary key could not be found */ public AssetTag findByPrimaryKey(long tagId) throws NoSuchTagException; /** * Returns the asset tag with the primary key or returns <code>null</code> if it could not be found. * * @param tagId the primary key of the asset tag * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found */ public AssetTag fetchByPrimaryKey(long tagId); @Override public java.util.Map<java.io.Serializable, AssetTag> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the asset tags. * * @return the asset tags */ public java.util.List<AssetTag> findAll(); /** * Returns a range of all the asset tags. * * <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 AssetTagModelImpl}. 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 asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of asset tags */ public java.util.List<AssetTag> findAll(int start, int end); /** * Returns an ordered range of all the asset tags. * * <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 AssetTagModelImpl}. 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 asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of asset tags */ public java.util.List<AssetTag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator); /** * Returns an ordered range of all the asset tags. * * <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 AssetTagModelImpl}. 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 asset tags * @param end the upper bound of the range of asset tags (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 asset tags */ public java.util.List<AssetTag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset tags from the database. */ public void removeAll(); /** * Returns the number of asset tags. * * @return the number of asset tags */ public int countAll(); /** * Returns the primaryKeys of asset entries associated with the asset tag. * * @param pk the primary key of the asset tag * @return long[] of the primaryKeys of asset entries associated with the asset tag */ public long[] getAssetEntryPrimaryKeys(long pk); /** * Returns all the asset entries associated with the asset tag. * * @param pk the primary key of the asset tag * @return the asset entries associated with the asset tag */ public java.util.List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries( long pk); /** * Returns a range of all the asset entries associated with the asset tag. * * <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 AssetTagModelImpl}. 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 pk the primary key of the asset tag * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of asset entries associated with the asset tag */ public java.util.List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries( long pk, int start, int end); /** * Returns an ordered range of all the asset entries associated with the asset tag. * * <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 AssetTagModelImpl}. 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 pk the primary key of the asset tag * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of asset entries associated with the asset tag */ public java.util.List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator); /** * Returns the number of asset entries associated with the asset tag. * * @param pk the primary key of the asset tag * @return the number of asset entries associated with the asset tag */ public int getAssetEntriesSize(long pk); /** * Returns <code>true</code> if the asset entry is associated with the asset tag. * * @param pk the primary key of the asset tag * @param assetEntryPK the primary key of the asset entry * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise */ public boolean containsAssetEntry(long pk, long assetEntryPK); /** * Returns <code>true</code> if the asset tag has any asset entries associated with it. * * @param pk the primary key of the asset tag to check for associations with asset entries * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise */ public boolean containsAssetEntries(long pk); /** * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntryPK the primary key of the asset entry */ public void addAssetEntry(long pk, long assetEntryPK); /** * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntry the asset entry */ public void addAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry); /** * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntryPKs the primary keys of the asset entries */ public void addAssetEntries(long pk, long[] assetEntryPKs); /** * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntries the asset entries */ public void addAssetEntries(long pk, java.util.List<com.liferay.asset.kernel.model.AssetEntry> assetEntries); /** * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag to clear the associated asset entries from */ public void clearAssetEntries(long pk); /** * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntryPK the primary key of the asset entry */ public void removeAssetEntry(long pk, long assetEntryPK); /** * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntry the asset entry */ public void removeAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry); /** * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntryPKs the primary keys of the asset entries */ public void removeAssetEntries(long pk, long[] assetEntryPKs); /** * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntries the asset entries */ public void removeAssetEntries(long pk, java.util.List<com.liferay.asset.kernel.model.AssetEntry> assetEntries); /** * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag */ public void setAssetEntries(long pk, long[] assetEntryPKs); /** * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the asset tag * @param assetEntries the asset entries to be associated with the asset tag */ public void setAssetEntries(long pk, java.util.List<com.liferay.asset.kernel.model.AssetEntry> assetEntries); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }