/** * 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.NoSuchCategoryException; import com.liferay.asset.kernel.model.AssetCategory; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the asset category 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.AssetCategoryPersistenceImpl * @see AssetCategoryUtil * @generated */ @ProviderType public interface AssetCategoryPersistence extends BasePersistence<AssetCategory> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link AssetCategoryUtil} to access the asset category persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the asset categories where uuid = ?. * * @param uuid the uuid * @return the matching asset categories */ public java.util.List<AssetCategory> findByUuid(java.lang.String uuid); /** * Returns a range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where uuid = ?. * * @param categoryId the primary key of the current asset category * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByUuid_PrevAndNext(long categoryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of asset categories where uuid = ?. * * @param uuid the uuid * @return the number of matching asset categories */ public int countByUuid(java.lang.String uuid); /** * Returns the asset category where uuid = ? and groupId = ? or throws a {@link NoSuchCategoryException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCategoryException; /** * Returns the asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUUID_G(java.lang.String uuid, long groupId); /** * Returns the asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache); /** * Removes the asset category where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the asset category that was removed */ public AssetCategory removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCategoryException; /** * Returns the number of asset categories where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching asset categories */ public int countByUUID_G(java.lang.String uuid, long groupId); /** * Returns all the asset categories where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where uuid = ? and companyId = ?. * * @param categoryId the primary key of the current asset category * @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 category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByUuid_C_PrevAndNext(long categoryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories 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 categories where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching asset categories */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the asset categories where groupId = ?. * * @param groupId the group ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByGroupId(long groupId); /** * Returns a range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category 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 category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category 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 category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where groupId = ?. * * @param categoryId the primary key of the current asset category * @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 category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByGroupId(long groupId); /** * Returns a range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the asset categories 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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ?. * * @param categoryId the primary key of the current asset category * @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 category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] filterFindByGroupId_PrevAndNext(long categoryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of asset categories where groupId = ?. * * @param groupId the group ID * @return the number of matching asset categories */ public int countByGroupId(long groupId); /** * Returns the number of asset categories that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching asset categories that the user has permission to view */ public int filterCountByGroupId(long groupId); /** * Returns all the asset categories where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByParentCategoryId( long parentCategoryId); /** * Returns a range of all the asset categories where parentCategoryId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByParentCategoryId( long parentCategoryId, int start, int end); /** * Returns an ordered range of all the asset categories where parentCategoryId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByParentCategoryId( long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where parentCategoryId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByParentCategoryId( long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByParentCategoryId_First(long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByParentCategoryId_First(long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByParentCategoryId_Last(long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByParentCategoryId_Last(long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. * * @param categoryId the primary key of the current asset category * @param parentCategoryId the parent category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId, long parentCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where parentCategoryId = ? from the database. * * @param parentCategoryId the parent category ID */ public void removeByParentCategoryId(long parentCategoryId); /** * Returns the number of asset categories where parentCategoryId = ?. * * @param parentCategoryId the parent category ID * @return the number of matching asset categories */ public int countByParentCategoryId(long parentCategoryId); /** * Returns all the asset categories where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByVocabularyId(long vocabularyId); /** * Returns a range of all the asset categories where vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByVocabularyId_First(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByVocabularyId_First(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByVocabularyId_Last(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByVocabularyId_Last(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where vocabularyId = ? from the database. * * @param vocabularyId the vocabulary ID */ public void removeByVocabularyId(long vocabularyId); /** * Returns the number of asset categories where vocabularyId = ?. * * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByVocabularyId(long vocabularyId); /** * Returns all the asset categories where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long vocabularyId); /** * Returns a range of all the asset categories where groupId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_V_First(long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_V_First(long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_V_Last(long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_V_Last(long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByG_V_PrevAndNext(long categoryId, long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] filterFindByG_V_PrevAndNext(long categoryId, long groupId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. * * @param groupId the group ID * @param vocabularyIds the vocabulary IDs * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns all the asset categories where groupId = ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds); /** * Returns a range of all the asset categories where groupId = ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?, 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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset categories where groupId = ? and vocabularyId = ? from the database. * * @param groupId the group ID * @param vocabularyId the vocabulary ID */ public void removeByG_V(long groupId, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByG_V(long groupId, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and vocabularyId = any ?. * * @param groupId the group ID * @param vocabularyIds the vocabulary IDs * @return the number of matching asset categories */ public int countByG_V(long groupId, long[] vocabularyIds); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. * * @param groupId the group ID * @param vocabularyId the vocabulary ID * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_V(long groupId, long vocabularyId); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. * * @param groupId the group ID * @param vocabularyIds the vocabulary IDs * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_V(long groupId, long[] vocabularyIds); /** * Returns all the asset categories where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @return the matching asset categories */ public java.util.List<AssetCategory> findByP_N(long parentCategoryId, java.lang.String name); /** * Returns a range of all the asset categories where parentCategoryId = ? and name = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByP_N(long parentCategoryId, java.lang.String name, int start, int end); /** * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByP_N(long parentCategoryId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByP_N(long parentCategoryId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByP_N_First(long parentCategoryId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_N_First(long parentCategoryId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByP_N_Last(long parentCategoryId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_N_Last(long parentCategoryId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. * * @param categoryId the primary key of the current asset category * @param parentCategoryId the parent category 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 category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByP_N_PrevAndNext(long categoryId, long parentCategoryId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. * * @param parentCategoryId the parent category ID * @param name the name */ public void removeByP_N(long parentCategoryId, java.lang.String name); /** * Returns the number of asset categories where parentCategoryId = ? and name = ?. * * @param parentCategoryId the parent category ID * @param name the name * @return the number of matching asset categories */ public int countByP_N(long parentCategoryId, java.lang.String name); /** * Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId); /** * Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByP_V_First(long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_V_First(long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByP_V_Last(long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_V_Last(long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByP_V_PrevAndNext(long categoryId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID */ public void removeByP_V(long parentCategoryId, long vocabularyId); /** * Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByP_V(long parentCategoryId, long vocabularyId); /** * Returns all the asset categories where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByN_V(java.lang.String name, long vocabularyId); /** * Returns a range of all the asset categories where name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByN_V(java.lang.String name, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByN_V(java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByN_V(java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByN_V_First(java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByN_V_First(java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByN_V_Last(java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByN_V_Last(java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByN_V_PrevAndNext(long categoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where name = ? and vocabularyId = ? from the database. * * @param name the name * @param vocabularyId the vocabulary ID */ public void removeByN_V(java.lang.String name, long vocabularyId); /** * Returns the number of asset categories where name = ? and vocabularyId = ?. * * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByN_V(java.lang.String name, long vocabularyId); /** * Returns all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId); /** * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_P_V_First(long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_P_V_First(long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_P_V_Last(long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_P_V_Last(long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByG_P_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] filterFindByG_P_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ? from the database. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID */ public void removeByG_P_V(long groupId, long parentCategoryId, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByG_P_V(long groupId, long parentCategoryId, long vocabularyId); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param vocabularyId the vocabulary ID * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_P_V(long groupId, long parentCategoryId, long vocabularyId); /** * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId); /** * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_LikeN_V_First(long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_LikeN_V_First(long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_LikeN_V_Last(long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_LikeN_V_Last(long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByG_LikeN_V_PrevAndNext(long categoryId, long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and name LIKE ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] filterFindByG_LikeN_V_PrevAndNext(long categoryId, long groupId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. * * @param groupId the group ID * @param name the name * @param vocabularyIds the vocabulary IDs * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds); /** * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = 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 AssetCategoryModelImpl}. 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 vocabularyIds the vocabulary IDs * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?, 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 AssetCategoryModelImpl}. 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 vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ? from the database. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID */ public void removeByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. * * @param groupId the group ID * @param name the name * @param vocabularyIds the vocabulary IDs * @return the number of matching asset categories */ public int countByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. * * @param groupId the group ID * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_LikeN_V(long groupId, java.lang.String name, long vocabularyId); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. * * @param groupId the group ID * @param name the name * @param vocabularyIds the vocabulary IDs * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_LikeN_V(long groupId, java.lang.String name, long[] vocabularyIds); /** * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a {@link NoSuchCategoryException} if it could not be found. * * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByP_N_V(long parentCategoryId, java.lang.String name, long vocabularyId) throws NoSuchCategoryException; /** * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_N_V(long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByP_N_V(long parentCategoryId, java.lang.String name, long vocabularyId, boolean retrieveFromCache); /** * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. * * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the asset category that was removed */ public AssetCategory removeByP_N_V(long parentCategoryId, java.lang.String name, long vocabularyId) throws NoSuchCategoryException; /** * Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByP_N_V(long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset categories */ public java.util.List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories */ public java.util.List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories */ public java.util.List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_P_N_V_First(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_P_N_V_First(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category * @throws NoSuchCategoryException if a matching asset category could not be found */ public AssetCategory findByG_P_N_V_Last(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found */ public AssetCategory fetchByG_P_N_V_Last(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] findByG_P_N_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, int start, int end); /** * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * <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 AssetCategoryModelImpl}. 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 parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset categories that the user has permission to view */ public java.util.List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param categoryId the primary key of the current asset category * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory[] filterFindByG_P_N_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, java.lang.String name, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator) throws NoSuchCategoryException; /** * Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ? from the database. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID */ public void removeByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories */ public int countByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId); /** * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. * * @param groupId the group ID * @param parentCategoryId the parent category ID * @param name the name * @param vocabularyId the vocabulary ID * @return the number of matching asset categories that the user has permission to view */ public int filterCountByG_P_N_V(long groupId, long parentCategoryId, java.lang.String name, long vocabularyId); /** * Caches the asset category in the entity cache if it is enabled. * * @param assetCategory the asset category */ public void cacheResult(AssetCategory assetCategory); /** * Caches the asset categories in the entity cache if it is enabled. * * @param assetCategories the asset categories */ public void cacheResult(java.util.List<AssetCategory> assetCategories); /** * Creates a new asset category with the primary key. Does not add the asset category to the database. * * @param categoryId the primary key for the new asset category * @return the new asset category */ public AssetCategory create(long categoryId); /** * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners. * * @param categoryId the primary key of the asset category * @return the asset category that was removed * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory remove(long categoryId) throws NoSuchCategoryException; public AssetCategory updateImpl(AssetCategory assetCategory); /** * Returns the asset category with the primary key or throws a {@link NoSuchCategoryException} if it could not be found. * * @param categoryId the primary key of the asset category * @return the asset category * @throws NoSuchCategoryException if a asset category with the primary key could not be found */ public AssetCategory findByPrimaryKey(long categoryId) throws NoSuchCategoryException; /** * Returns the asset category with the primary key or returns <code>null</code> if it could not be found. * * @param categoryId the primary key of the asset category * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found */ public AssetCategory fetchByPrimaryKey(long categoryId); @Override public java.util.Map<java.io.Serializable, AssetCategory> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the asset categories. * * @return the asset categories */ public java.util.List<AssetCategory> findAll(); /** * Returns a range of all the asset categories. * * <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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of asset categories */ public java.util.List<AssetCategory> findAll(int start, int end); /** * Returns an ordered range of all the asset categories. * * <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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of asset categories */ public java.util.List<AssetCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator); /** * Returns an ordered range of all the asset categories. * * <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 AssetCategoryModelImpl}. 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 categories * @param end the upper bound of the range of asset categories (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 categories */ public java.util.List<AssetCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset categories from the database. */ public void removeAll(); /** * Returns the number of asset categories. * * @return the number of asset categories */ public int countAll(); /** * Returns the primaryKeys of asset entries associated with the asset category. * * @param pk the primary key of the asset category * @return long[] of the primaryKeys of asset entries associated with the asset category */ public long[] getAssetEntryPrimaryKeys(long pk); /** * Returns all the asset entries associated with the asset category. * * @param pk the primary key of the asset category * @return the asset entries associated with the asset category */ 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 category. * * <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 AssetCategoryModelImpl}. 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 category * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (not inclusive) * @return the range of asset entries associated with the asset category */ 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 category. * * <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 AssetCategoryModelImpl}. 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 category * @param start the lower bound of the range of asset categories * @param end the upper bound of the range of asset categories (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 category */ 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 category. * * @param pk the primary key of the asset category * @return the number of asset entries associated with the asset category */ public int getAssetEntriesSize(long pk); /** * Returns <code>true</code> if the asset entry is associated with the asset category. * * @param pk the primary key of the asset category * @param assetEntryPK the primary key of the asset entry * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise */ public boolean containsAssetEntry(long pk, long assetEntryPK); /** * Returns <code>true</code> if the asset category has any asset entries associated with it. * * @param pk the primary key of the asset category to check for associations with asset entries * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise */ public boolean containsAssetEntries(long pk); /** * Adds an association between the asset category 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 category * @param assetEntryPK the primary key of the asset entry */ public void addAssetEntry(long pk, long assetEntryPK); /** * Adds an association between the asset category 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 category * @param assetEntry the asset entry */ public void addAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry); /** * Adds an association between the asset category 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 category * @param assetEntryPKs the primary keys of the asset entries */ public void addAssetEntries(long pk, long[] assetEntryPKs); /** * Adds an association between the asset category 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 category * @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 category 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 category to clear the associated asset entries from */ public void clearAssetEntries(long pk); /** * Removes the association between the asset category 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 category * @param assetEntryPK the primary key of the asset entry */ public void removeAssetEntry(long pk, long assetEntryPK); /** * Removes the association between the asset category 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 category * @param assetEntry the asset entry */ public void removeAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry); /** * Removes the association between the asset category 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 category * @param assetEntryPKs the primary keys of the asset entries */ public void removeAssetEntries(long pk, long[] assetEntryPKs); /** * Removes the association between the asset category 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 category * @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 category, 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 category * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category */ public void setAssetEntries(long pk, long[] assetEntryPKs); /** * Sets the asset entries associated with the asset category, 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 category * @param assetEntries the asset entries to be associated with the asset category */ public void setAssetEntries(long pk, java.util.List<com.liferay.asset.kernel.model.AssetEntry> assetEntries); @Override public java.util.Set<java.lang.String> getBadColumnNames(); public long countAncestors(AssetCategory assetCategory); public long countDescendants(AssetCategory assetCategory); public java.util.List<AssetCategory> getAncestors( AssetCategory assetCategory); public java.util.List<AssetCategory> getDescendants( AssetCategory assetCategory); /** * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. * * <p> * Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenver necessary. * </p> * * @param groupId the ID of the scope * @param force whether to force the rebuild even if the tree is not stale */ public void rebuildTree(long groupId, boolean force); public void setRebuildTreeEnabled(boolean rebuildTreeEnabled); }