Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.persistence.impl
Class AssetCategoryPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategory>
      extended by com.liferay.portlet.asset.service.persistence.impl.AssetCategoryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetCategory>, AssetCategoryPersistence

@ProviderType
public class AssetCategoryPersistenceImpl
extends BasePersistenceImpl<AssetCategory>
implements AssetCategoryPersistence

The persistence implementation for the asset category service.

Caching information and settings can be found in portal.properties

See Also:
AssetCategoryPersistence, AssetCategoryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Nested Class Summary
protected  class AssetCategoryPersistenceImpl.UpdateTree
           
 
Field Summary
protected  TableMapper<AssetCategory,AssetEntry> assetCategoryToAssetEntryTableMapper
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_N_V
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_V
           
static FinderPath FINDER_PATH_COUNT_BY_G_V
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_N_V
           
static FinderPath FINDER_PATH_COUNT_BY_P_N
           
static FinderPath FINDER_PATH_COUNT_BY_P_N_V
           
static FinderPath FINDER_PATH_COUNT_BY_P_V
           
static FinderPath FINDER_PATH_COUNT_BY_PARENTCATEGORYID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_COUNT_BY_VOCABULARYID
           
static FinderPath FINDER_PATH_FETCH_BY_P_N_V
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_ANCESTORS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LIKEN_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_DESCENDANTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LIKEN_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_N_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_N_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_P_N
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_P_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PARENTCATEGORYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VOCABULARYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_GET_ANCESTORS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_GET_DESCENDANTS
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_N_V
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_V
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_V
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_N_V
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_N
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_V
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PARENTCATEGORYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VOCABULARYID
           
protected  FinderCache finderCache
           
protected  NestedSetsTreeManager<AssetCategory> nestedSetsTreeManager
           
protected  boolean rebuildTreeEnabled
           
protected  AssetCategoryPersistenceImpl.UpdateTree updateTree
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
AssetCategoryPersistenceImpl()
           
 
Method Summary
 void addAssetEntries(long pk, List<AssetEntry> assetEntries)
          Adds an association between the asset category and the asset entries.
 void addAssetEntries(long pk, long[] assetEntryPKs)
          Adds an association between the asset category and the asset entries.
 void addAssetEntry(long pk, AssetEntry assetEntry)
          Adds an association between the asset category and the asset entry.
 void addAssetEntry(long pk, long assetEntryPK)
          Adds an association between the asset category and the asset entry.
 void afterPropertiesSet()
          Initializes the asset category persistence.
 void cacheResult(AssetCategory assetCategory)
          Caches the asset category in the entity cache if it is enabled.
 void cacheResult(List<AssetCategory> assetCategories)
          Caches the asset categories in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(AssetCategoryModelImpl assetCategoryModelImpl, boolean isNew)
           
 void clearAssetEntries(long pk)
          Clears all associations between the asset category and its asset entries.
 void clearCache()
          Clears the cache for all asset categories.
 void clearCache(AssetCategory assetCategory)
          Clears the cache for the asset category.
 void clearCache(List<AssetCategory> assetCategories)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(AssetCategoryModelImpl assetCategoryModelImpl)
           
 boolean containsAssetEntries(long pk)
          Returns true if the asset category has any asset entries associated with it.
 boolean containsAssetEntry(long pk, long assetEntryPK)
          Returns true if the asset entry is associated with the asset category.
 int countAll()
          Returns the number of asset categories.
 long countAncestors(AssetCategory assetCategory)
           
 int countByG_LikeN_V(long groupId, String name, long vocabularyId)
          Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.
 int countByG_LikeN_V(long groupId, String name, long[] vocabularyIds)
          Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.
 int countByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId)
          Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 int countByG_P_V(long groupId, long parentCategoryId, long vocabularyId)
          Returns the number of asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 int countByG_V(long groupId, long vocabularyId)
          Returns the number of asset categories where groupId = ? and vocabularyId = ?.
 int countByG_V(long groupId, long[] vocabularyIds)
          Returns the number of asset categories where groupId = ? and vocabularyId = any ?.
 int countByGroupId(long groupId)
          Returns the number of asset categories where groupId = ?.
 int countByN_V(String name, long vocabularyId)
          Returns the number of asset categories where name = ? and vocabularyId = ?.
 int countByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.
 int countByP_N(long parentCategoryId, String name)
          Returns the number of asset categories where parentCategoryId = ? and name = ?.
 int countByP_V(long parentCategoryId, long vocabularyId)
          Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?.
 int countByParentCategoryId(long parentCategoryId)
          Returns the number of asset categories where parentCategoryId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of asset categories where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of asset categories where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of asset categories where uuid = ?.
 int countByVocabularyId(long vocabularyId)
          Returns the number of asset categories where vocabularyId = ?.
 long countDescendants(AssetCategory assetCategory)
           
protected  long countOrphanTreeNodes(long groupId)
           
 AssetCategory create(long categoryId)
          Creates a new asset category with the primary key.
 void destroy()
           
 AssetCategory fetchByG_LikeN_V_First(long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory fetchByG_LikeN_V_Last(long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory fetchByG_P_N_V_First(long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory fetchByG_P_N_V_Last(long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory fetchByG_P_V_First(long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory fetchByG_P_V_Last(long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory fetchByG_V_First(long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?.
 AssetCategory fetchByG_V_Last(long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?.
 AssetCategory fetchByGroupId_First(long groupId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ?.
 AssetCategory fetchByGroupId_Last(long groupId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ?.
 AssetCategory fetchByN_V_First(String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory fetchByN_V_Last(String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory fetchByP_N_First(long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory fetchByP_N_Last(long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found.
 AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId, boolean retrieveFromCache)
          Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found, optionally using the finder cache.
 AssetCategory fetchByP_V_First(long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory fetchByP_V_Last(long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory fetchByParentCategoryId_First(long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ?.
 AssetCategory fetchByParentCategoryId_Last(long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ?.
 AssetCategory fetchByPrimaryKey(long categoryId)
          Returns the asset category with the primary key or returns null if it could not be found.
 AssetCategory fetchByPrimaryKey(Serializable primaryKey)
          Returns the asset category with the primary key or returns null if it could not be found.
 Map<Serializable,AssetCategory> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 AssetCategory fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where uuid = ? and companyId = ?.
 AssetCategory fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where uuid = ? and companyId = ?.
 AssetCategory fetchByUuid_First(String uuid, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where uuid = ?.
 AssetCategory fetchByUUID_G(String uuid, long groupId)
          Returns the asset category where uuid = ? and groupId = ? or returns null if it could not be found.
 AssetCategory fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the asset category where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 AssetCategory fetchByUuid_Last(String uuid, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where uuid = ?.
 AssetCategory fetchByVocabularyId_First(long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where vocabularyId = ?.
 AssetCategory fetchByVocabularyId_Last(long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where vocabularyId = ?.
 int filterCountByG_LikeN_V(long groupId, String name, long vocabularyId)
          Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.
 int filterCountByG_LikeN_V(long groupId, String name, long[] vocabularyIds)
          Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.
 int filterCountByG_P_N_V(long groupId, long parentCategoryId, 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 = ?.
 int filterCountByG_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 = ?.
 int filterCountByG_V(long groupId, long vocabularyId)
          Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?.
 int filterCountByG_V(long groupId, long[] vocabularyIds)
          Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.
 int filterCountByGroupId(long groupId)
          Returns the number of asset categories that the user has permission to view where groupId = ?.
 AssetCategory[] filterFindByG_LikeN_V_PrevAndNext(long categoryId, long groupId, String name, long vocabularyId, 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 = ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long vocabularyId)
          Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long[] vocabularyIds)
          Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long[] vocabularyIds, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long vocabularyId, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_LikeN_V(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory[] filterFindByG_P_N_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, String name, long vocabularyId, 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 = ?.
 List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId)
          Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory[] filterFindByG_P_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, long vocabularyId, 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 = ?.
 List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId)
          Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory[] filterFindByG_V_PrevAndNext(long categoryId, long groupId, long vocabularyId, 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 = ?.
 List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId)
          Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds)
          Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_V(long groupId, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?.
 List<AssetCategory> filterFindByG_V(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?.
 AssetCategory[] filterFindByGroupId_PrevAndNext(long categoryId, long groupId, 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 = ?.
 List<AssetCategory> filterFindByGroupId(long groupId)
          Returns all the asset categories that the user has permission to view where groupId = ?.
 List<AssetCategory> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the asset categories that the user has permission to view where groupId = ?.
 List<AssetCategory> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?.
protected  AssetCategory filterGetByG_LikeN_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory filterGetByG_P_N_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory filterGetByG_P_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory filterGetByG_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory filterGetByGroupId_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
 List<AssetCategory> findAll()
          Returns all the asset categories.
 List<AssetCategory> findAll(int start, int end)
          Returns a range of all the asset categories.
 List<AssetCategory> findAll(int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories.
 List<AssetCategory> findAll(int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories.
 AssetCategory findByG_LikeN_V_First(long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory findByG_LikeN_V_Last(long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory[] findByG_LikeN_V_PrevAndNext(long categoryId, long groupId, String name, long vocabularyId, 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 = ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long vocabularyId)
          Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long[] vocabularyIds)
          Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long[] vocabularyIds, int start, int end)
          Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?, optionally using the finder cache.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.
 List<AssetCategory> findByG_LikeN_V(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.
 AssetCategory findByG_P_N_V_First(long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory findByG_P_N_V_Last(long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory[] findByG_P_N_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, String name, long vocabularyId, 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 = ?.
 List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId)
          Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.
 AssetCategory findByG_P_V_First(long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByG_P_V_Last(long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory[] findByG_P_V_PrevAndNext(long categoryId, long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId)
          Returns all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_P_V(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByG_V_First(long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?.
 AssetCategory findByG_V_Last(long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?.
 AssetCategory[] findByG_V_PrevAndNext(long categoryId, long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_V(long groupId, long vocabularyId)
          Returns all the asset categories where groupId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds)
          Returns all the asset categories where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end)
          Returns a range of all the asset categories where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = any ?.
 List<AssetCategory> findByG_V(long groupId, long[] vocabularyIds, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?, optionally using the finder cache.
 List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where groupId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?.
 List<AssetCategory> findByG_V(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?.
 AssetCategory findByGroupId_First(long groupId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where groupId = ?.
 AssetCategory findByGroupId_Last(long groupId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where groupId = ?.
 AssetCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId)
          Returns all the asset categories where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset categories where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where groupId = ?.
 AssetCategory findByN_V_First(String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory findByN_V_Last(String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory[] findByN_V_PrevAndNext(long categoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId)
          Returns all the asset categories where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?.
 AssetCategory findByP_N_First(long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory findByP_N_Last(long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory[] findByP_N_PrevAndNext(long categoryId, long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory findByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a NoSuchCategoryException if it could not be found.
 List<AssetCategory> findByP_N(long parentCategoryId, String name)
          Returns all the asset categories where parentCategoryId = ? and name = ?.
 List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end)
          Returns a range of all the asset categories where parentCategoryId = ? and name = ?.
 List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?.
 List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?.
 AssetCategory findByP_V_First(long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByP_V_Last(long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory[] findByP_V_PrevAndNext(long categoryId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId)
          Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end)
          Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByParentCategoryId_First(long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where parentCategoryId = ?.
 AssetCategory findByParentCategoryId_Last(long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where parentCategoryId = ?.
 AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId, long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId)
          Returns all the asset categories where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end)
          Returns a range of all the asset categories where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where parentCategoryId = ?.
 AssetCategory findByPrimaryKey(long categoryId)
          Returns the asset category with the primary key or throws a NoSuchCategoryException if it could not be found.
 AssetCategory findByPrimaryKey(Serializable primaryKey)
          Returns the asset category with the primary key or throws a NoSuchModelException if it could not be found.
 AssetCategory findByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where uuid = ? and companyId = ?.
 AssetCategory findByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where uuid = ? and companyId = ?.
 AssetCategory[] findByUuid_C_PrevAndNext(long categoryId, String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where uuid = ? and companyId = ?.
 List<AssetCategory> findByUuid_C(String uuid, long companyId)
          Returns all the asset categories where uuid = ? and companyId = ?.
 List<AssetCategory> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the asset categories where uuid = ? and companyId = ?.
 List<AssetCategory> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where uuid = ? and companyId = ?.
 List<AssetCategory> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where uuid = ? and companyId = ?.
 AssetCategory findByUuid_First(String uuid, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where uuid = ?.
 AssetCategory findByUUID_G(String uuid, long groupId)
          Returns the asset category where uuid = ? and groupId = ? or throws a NoSuchCategoryException if it could not be found.
 AssetCategory findByUuid_Last(String uuid, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where uuid = ?.
 AssetCategory[] findByUuid_PrevAndNext(long categoryId, String uuid, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where uuid = ?.
 List<AssetCategory> findByUuid(String uuid)
          Returns all the asset categories where uuid = ?.
 List<AssetCategory> findByUuid(String uuid, int start, int end)
          Returns a range of all the asset categories where uuid = ?.
 List<AssetCategory> findByUuid(String uuid, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where uuid = ?.
 List<AssetCategory> findByUuid(String uuid, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where uuid = ?.
 AssetCategory findByVocabularyId_First(long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the first asset category in the ordered set where vocabularyId = ?.
 AssetCategory findByVocabularyId_Last(long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the last asset category in the ordered set where vocabularyId = ?.
 AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator)
          Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId)
          Returns all the asset categories where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end)
          Returns a range of all the asset categories where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset categories where vocabularyId = ?.
 List<AssetCategory> getAncestors(AssetCategory assetCategory)
           
 List<AssetEntry> getAssetEntries(long pk)
          Returns all the asset entries associated with the asset category.
 List<AssetEntry> getAssetEntries(long pk, int start, int end)
          Returns a range of all the asset entries associated with the asset category.
 List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries associated with the asset category.
 int getAssetEntriesSize(long pk)
          Returns the number of asset entries associated with the asset category.
 long[] getAssetEntryPrimaryKeys(long pk)
          Returns the primaryKeys of asset entries associated with the asset category.
 Set<String> getBadColumnNames()
           
protected  AssetCategory getByG_LikeN_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByG_P_N_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long parentCategoryId, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByG_P_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByG_V_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByGroupId_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByN_V_PrevAndNext(Session session, AssetCategory assetCategory, String name, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByP_N_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, String name, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByP_V_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByParentCategoryId_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByUuid_C_PrevAndNext(Session session, AssetCategory assetCategory, String uuid, long companyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByUuid_PrevAndNext(Session session, AssetCategory assetCategory, String uuid, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
protected  AssetCategory getByVocabularyId_PrevAndNext(Session session, AssetCategory assetCategory, long vocabularyId, OrderByComparator<AssetCategory> orderByComparator, boolean previous)
           
 List<AssetCategory> getDescendants(AssetCategory assetCategory)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 void rebuildTree(long groupId, boolean force)
          Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
protected  long rebuildTree(Session session, SQLQuery selectQuery, SQLQuery updateQuery, long groupId, long parentCategoryId, long leftCategoryId)
           
 AssetCategory remove(long categoryId)
          Removes the asset category with the primary key from the database.
 AssetCategory remove(Serializable primaryKey)
          Removes the asset category with the primary key from the database.
 void removeAll()
          Removes all the asset categories from the database.
 void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
          Removes the association between the asset category and the asset entries.
 void removeAssetEntries(long pk, long[] assetEntryPKs)
          Removes the association between the asset category and the asset entries.
 void removeAssetEntry(long pk, AssetEntry assetEntry)
          Removes the association between the asset category and the asset entry.
 void removeAssetEntry(long pk, long assetEntryPK)
          Removes the association between the asset category and the asset entry.
 void removeByG_LikeN_V(long groupId, String name, long vocabularyId)
          Removes all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ? from the database.
 void removeByG_P_N_V(long groupId, long parentCategoryId, String name, long vocabularyId)
          Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ? from the database.
 void removeByG_P_V(long groupId, long parentCategoryId, long vocabularyId)
          Removes all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ? from the database.
 void removeByG_V(long groupId, long vocabularyId)
          Removes all the asset categories where groupId = ? and vocabularyId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the asset categories where groupId = ? from the database.
 void removeByN_V(String name, long vocabularyId)
          Removes all the asset categories where name = ? and vocabularyId = ? from the database.
 AssetCategory removeByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database.
 void removeByP_N(long parentCategoryId, String name)
          Removes all the asset categories where parentCategoryId = ? and name = ? from the database.
 void removeByP_V(long parentCategoryId, long vocabularyId)
          Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database.
 void removeByParentCategoryId(long parentCategoryId)
          Removes all the asset categories where parentCategoryId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the asset categories where uuid = ? and companyId = ? from the database.
 AssetCategory removeByUUID_G(String uuid, long groupId)
          Removes the asset category where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the asset categories where uuid = ? from the database.
 void removeByVocabularyId(long vocabularyId)
          Removes all the asset categories where vocabularyId = ? from the database.
protected  AssetCategory removeImpl(AssetCategory assetCategory)
          Removes the model instance from the database.
 void setAssetEntries(long pk, List<AssetEntry> assetEntries)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
 void setAssetEntries(long pk, long[] assetEntryPKs)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
 void setRebuildTreeEnabled(boolean rebuildTreeEnabled)
           
protected  AssetCategory toUnwrappedModel(AssetCategory assetCategory)
           
 AssetCategory updateImpl(AssetCategory assetCategory)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_COUNT_ANCESTORS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_ANCESTORS

FINDER_PATH_WITH_PAGINATION_COUNT_DESCENDANTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_DESCENDANTS

FINDER_PATH_WITH_PAGINATION_GET_ANCESTORS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_GET_ANCESTORS

FINDER_PATH_WITH_PAGINATION_GET_DESCENDANTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_GET_DESCENDANTS

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_PARENTCATEGORYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PARENTCATEGORYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PARENTCATEGORYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PARENTCATEGORYID

FINDER_PATH_COUNT_BY_PARENTCATEGORYID

public static final FinderPath FINDER_PATH_COUNT_BY_PARENTCATEGORYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_VOCABULARYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VOCABULARYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VOCABULARYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VOCABULARYID

FINDER_PATH_COUNT_BY_VOCABULARYID

public static final FinderPath FINDER_PATH_COUNT_BY_VOCABULARYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_V

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_V

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_V

FINDER_PATH_COUNT_BY_G_V

public static final FinderPath FINDER_PATH_COUNT_BY_G_V

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_P_N

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_P_N

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_N

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_N

FINDER_PATH_COUNT_BY_P_N

public static final FinderPath FINDER_PATH_COUNT_BY_P_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_P_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_P_V

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_V

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_P_V

FINDER_PATH_COUNT_BY_P_V

public static final FinderPath FINDER_PATH_COUNT_BY_P_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_N_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_N_V

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_N_V

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_N_V

FINDER_PATH_COUNT_BY_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_N_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_V

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_V

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_V

FINDER_PATH_COUNT_BY_G_P_V

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LIKEN_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LIKEN_V

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LIKEN_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LIKEN_V

FINDER_PATH_FETCH_BY_P_N_V

public static final FinderPath FINDER_PATH_FETCH_BY_P_N_V

FINDER_PATH_COUNT_BY_P_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_P_N_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_N_V

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_N_V

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_N_V

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_N_V

FINDER_PATH_COUNT_BY_G_P_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_N_V

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetCategoryToAssetEntryTableMapper

protected TableMapper<AssetCategory,AssetEntry> assetCategoryToAssetEntryTableMapper

nestedSetsTreeManager

protected NestedSetsTreeManager<AssetCategory> nestedSetsTreeManager

rebuildTreeEnabled

protected boolean rebuildTreeEnabled

updateTree

protected AssetCategoryPersistenceImpl.UpdateTree updateTree
Constructor Detail

AssetCategoryPersistenceImpl

public AssetCategoryPersistenceImpl()
Method Detail

findByUuid

public List<AssetCategory> findByUuid(String uuid)
Returns all the asset categories where uuid = ?.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
Returns:
the matching asset categories

findByUuid

public List<AssetCategory> findByUuid(String uuid,
                                      int start,
                                      int end)
Returns a range of all the asset categories where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByUuid

public List<AssetCategory> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByUuid

public List<AssetCategory> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetCategory> orderByComparator,
                                      boolean retrieveFromCache)
Returns an ordered range of all the asset categories where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByUuid_First

public AssetCategory findByUuid_First(String uuid,
                                      OrderByComparator<AssetCategory> orderByComparator)
                               throws NoSuchCategoryException
Returns the first asset category in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByUuid_First

public AssetCategory fetchByUuid_First(String uuid,
                                       OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByUuid_Last

public AssetCategory findByUuid_Last(String uuid,
                                     OrderByComparator<AssetCategory> orderByComparator)
                              throws NoSuchCategoryException
Returns the last asset category in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByUuid_Last

public AssetCategory fetchByUuid_Last(String uuid,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByUuid_PrevAndNext

public AssetCategory[] findByUuid_PrevAndNext(long categoryId,
                                              String uuid,
                                              OrderByComparator<AssetCategory> orderByComparator)
                                       throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByUuid_PrevAndNext

protected AssetCategory getByUuid_PrevAndNext(Session session,
                                              AssetCategory assetCategory,
                                              String uuid,
                                              OrderByComparator<AssetCategory> orderByComparator,
                                              boolean previous)

removeByUuid

public void removeByUuid(String uuid)
Removes all the asset categories where uuid = ? from the database.

Specified by:
removeByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid

countByUuid

public int countByUuid(String uuid)
Returns the number of asset categories where uuid = ?.

Specified by:
countByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching asset categories

findByUUID_G

public AssetCategory findByUUID_G(String uuid,
                                  long groupId)
                           throws NoSuchCategoryException
Returns the asset category where uuid = ? and groupId = ? or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByUUID_G

public AssetCategory fetchByUUID_G(String uuid,
                                   long groupId)
Returns the asset category where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching asset category, or null if a matching asset category could not be found

fetchByUUID_G

public AssetCategory fetchByUUID_G(String uuid,
                                   long groupId,
                                   boolean retrieveFromCache)
Returns the asset category where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset category, or null if a matching asset category could not be found

removeByUUID_G

public AssetCategory removeByUUID_G(String uuid,
                                    long groupId)
                             throws NoSuchCategoryException
Removes the asset category where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
Returns the number of asset categories where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching asset categories

findByUuid_C

public List<AssetCategory> findByUuid_C(String uuid,
                                        long companyId)
Returns all the asset categories where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching asset categories

findByUuid_C

public List<AssetCategory> findByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end)
Returns a range of all the asset categories where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByUuid_C

public List<AssetCategory> findByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByUuid_C

public List<AssetCategory> findByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetCategory> orderByComparator,
                                        boolean retrieveFromCache)
Returns an ordered range of all the asset categories where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByUuid_C_First

public AssetCategory findByUuid_C_First(String uuid,
                                        long companyId,
                                        OrderByComparator<AssetCategory> orderByComparator)
                                 throws NoSuchCategoryException
Returns the first asset category in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByUuid_C_First

public AssetCategory fetchByUuid_C_First(String uuid,
                                         long companyId,
                                         OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByUuid_C_Last

public AssetCategory findByUuid_C_Last(String uuid,
                                       long companyId,
                                       OrderByComparator<AssetCategory> orderByComparator)
                                throws NoSuchCategoryException
Returns the last asset category in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByUuid_C_Last

public AssetCategory fetchByUuid_C_Last(String uuid,
                                        long companyId,
                                        OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByUuid_C_PrevAndNext

public AssetCategory[] findByUuid_C_PrevAndNext(long categoryId,
                                                String uuid,
                                                long companyId,
                                                OrderByComparator<AssetCategory> orderByComparator)
                                         throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByUuid_C_PrevAndNext

protected AssetCategory getByUuid_C_PrevAndNext(Session session,
                                                AssetCategory assetCategory,
                                                String uuid,
                                                long companyId,
                                                OrderByComparator<AssetCategory> orderByComparator,
                                                boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
Removes all the asset categories where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
Returns the number of asset categories where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface AssetCategoryPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching asset categories

findByGroupId

public List<AssetCategory> findByGroupId(long groupId)
Returns all the asset categories where groupId = ?.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
Returns:
the matching asset categories

findByGroupId

public List<AssetCategory> findByGroupId(long groupId,
                                         int start,
                                         int end)
Returns a range of all the asset categories where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByGroupId

public List<AssetCategory> findByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByGroupId

public List<AssetCategory> findByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetCategory> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByGroupId_First

public AssetCategory findByGroupId_First(long groupId,
                                         OrderByComparator<AssetCategory> orderByComparator)
                                  throws NoSuchCategoryException
Returns the first asset category in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByGroupId_First

public AssetCategory fetchByGroupId_First(long groupId,
                                          OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByGroupId_Last

public AssetCategory findByGroupId_Last(long groupId,
                                        OrderByComparator<AssetCategory> orderByComparator)
                                 throws NoSuchCategoryException
Returns the last asset category in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByGroupId_Last

public AssetCategory fetchByGroupId_Last(long groupId,
                                         OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByGroupId_PrevAndNext

public AssetCategory[] findByGroupId_PrevAndNext(long categoryId,
                                                 long groupId,
                                                 OrderByComparator<AssetCategory> orderByComparator)
                                          throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByGroupId_PrevAndNext

protected AssetCategory getByGroupId_PrevAndNext(Session session,
                                                 AssetCategory assetCategory,
                                                 long groupId,
                                                 OrderByComparator<AssetCategory> orderByComparator,
                                                 boolean previous)

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId)
Returns all the asset categories that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
Returns:
the matching asset categories that the user has permission to view

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId,
                                               int start,
                                               int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

filterFindByGroupId_PrevAndNext

public AssetCategory[] filterFindByGroupId_PrevAndNext(long categoryId,
                                                       long groupId,
                                                       OrderByComparator<AssetCategory> orderByComparator)
                                                throws NoSuchCategoryException
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 = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

filterGetByGroupId_PrevAndNext

protected AssetCategory filterGetByGroupId_PrevAndNext(Session session,
                                                       AssetCategory assetCategory,
                                                       long groupId,
                                                       OrderByComparator<AssetCategory> orderByComparator,
                                                       boolean previous)

removeByGroupId

public void removeByGroupId(long groupId)
Removes all the asset categories where groupId = ? from the database.

Specified by:
removeByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID

countByGroupId

public int countByGroupId(long groupId)
Returns the number of asset categories where groupId = ?.

Specified by:
countByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching asset categories

filterCountByGroupId

public int filterCountByGroupId(long groupId)
Returns the number of asset categories that the user has permission to view where groupId = ?.

Specified by:
filterCountByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching asset categories that the user has permission to view

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId)
Returns all the asset categories where parentCategoryId = ?.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
Returns:
the matching asset categories

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                  int start,
                                                  int end)
Returns a range of all the asset categories where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<AssetCategory> orderByComparator,
                                                  boolean retrieveFromCache)
Returns an ordered range of all the asset categories where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByParentCategoryId_First

public AssetCategory findByParentCategoryId_First(long parentCategoryId,
                                                  OrderByComparator<AssetCategory> orderByComparator)
                                           throws NoSuchCategoryException
Returns the first asset category in the ordered set where parentCategoryId = ?.

Specified by:
findByParentCategoryId_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByParentCategoryId_First

public AssetCategory fetchByParentCategoryId_First(long parentCategoryId,
                                                   OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where parentCategoryId = ?.

Specified by:
fetchByParentCategoryId_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByParentCategoryId_Last

public AssetCategory findByParentCategoryId_Last(long parentCategoryId,
                                                 OrderByComparator<AssetCategory> orderByComparator)
                                          throws NoSuchCategoryException
Returns the last asset category in the ordered set where parentCategoryId = ?.

Specified by:
findByParentCategoryId_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByParentCategoryId_Last

public AssetCategory fetchByParentCategoryId_Last(long parentCategoryId,
                                                  OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where parentCategoryId = ?.

Specified by:
fetchByParentCategoryId_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByParentCategoryId_PrevAndNext

public AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId,
                                                          long parentCategoryId,
                                                          OrderByComparator<AssetCategory> orderByComparator)
                                                   throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?.

Specified by:
findByParentCategoryId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByParentCategoryId_PrevAndNext

protected AssetCategory getByParentCategoryId_PrevAndNext(Session session,
                                                          AssetCategory assetCategory,
                                                          long parentCategoryId,
                                                          OrderByComparator<AssetCategory> orderByComparator,
                                                          boolean previous)

removeByParentCategoryId

public void removeByParentCategoryId(long parentCategoryId)
Removes all the asset categories where parentCategoryId = ? from the database.

Specified by:
removeByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID

countByParentCategoryId

public int countByParentCategoryId(long parentCategoryId)
Returns the number of asset categories where parentCategoryId = ?.

Specified by:
countByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
Returns:
the number of matching asset categories

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId)
Returns all the asset categories where vocabularyId = ?.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId,
                                              int start,
                                              int end)
Returns a range of all the asset categories where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId,
                                              int start,
                                              int end,
                                              OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId,
                                              int start,
                                              int end,
                                              OrderByComparator<AssetCategory> orderByComparator,
                                              boolean retrieveFromCache)
Returns an ordered range of all the asset categories where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByVocabularyId_First

public AssetCategory findByVocabularyId_First(long vocabularyId,
                                              OrderByComparator<AssetCategory> orderByComparator)
                                       throws NoSuchCategoryException
Returns the first asset category in the ordered set where vocabularyId = ?.

Specified by:
findByVocabularyId_First in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByVocabularyId_First

public AssetCategory fetchByVocabularyId_First(long vocabularyId,
                                               OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where vocabularyId = ?.

Specified by:
fetchByVocabularyId_First in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByVocabularyId_Last

public AssetCategory findByVocabularyId_Last(long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator)
                                      throws NoSuchCategoryException
Returns the last asset category in the ordered set where vocabularyId = ?.

Specified by:
findByVocabularyId_Last in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByVocabularyId_Last

public AssetCategory fetchByVocabularyId_Last(long vocabularyId,
                                              OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where vocabularyId = ?.

Specified by:
fetchByVocabularyId_Last in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByVocabularyId_PrevAndNext

public AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId,
                                                      long vocabularyId,
                                                      OrderByComparator<AssetCategory> orderByComparator)
                                               throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?.

Specified by:
findByVocabularyId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByVocabularyId_PrevAndNext

protected AssetCategory getByVocabularyId_PrevAndNext(Session session,
                                                      AssetCategory assetCategory,
                                                      long vocabularyId,
                                                      OrderByComparator<AssetCategory> orderByComparator,
                                                      boolean previous)

removeByVocabularyId

public void removeByVocabularyId(long vocabularyId)
Removes all the asset categories where vocabularyId = ? from the database.

Specified by:
removeByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID

countByVocabularyId

public int countByVocabularyId(long vocabularyId)
Returns the number of asset categories where vocabularyId = ?.

Specified by:
countByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long vocabularyId)
Returns all the asset categories where groupId = ? and vocabularyId = ?.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long vocabularyId,
                                     int start,
                                     int end)
Returns a range of all the asset categories where groupId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByG_V_First

public AssetCategory findByG_V_First(long groupId,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
                              throws NoSuchCategoryException
Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?.

Specified by:
findByG_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_V_First

public AssetCategory fetchByG_V_First(long groupId,
                                      long vocabularyId,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?.

Specified by:
fetchByG_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByG_V_Last

public AssetCategory findByG_V_Last(long groupId,
                                    long vocabularyId,
                                    OrderByComparator<AssetCategory> orderByComparator)
                             throws NoSuchCategoryException
Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?.

Specified by:
findByG_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_V_Last

public AssetCategory fetchByG_V_Last(long groupId,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?.

Specified by:
fetchByG_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByG_V_PrevAndNext

public AssetCategory[] findByG_V_PrevAndNext(long categoryId,
                                             long groupId,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator)
                                      throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?.

Specified by:
findByG_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByG_V_PrevAndNext

protected AssetCategory getByG_V_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             long groupId,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator,
                                             boolean previous)

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long vocabularyId)
Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
Returns:
the matching asset categories that the user has permission to view

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long vocabularyId,
                                           int start,
                                           int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long vocabularyId,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

filterFindByG_V_PrevAndNext

public AssetCategory[] filterFindByG_V_PrevAndNext(long categoryId,
                                                   long groupId,
                                                   long vocabularyId,
                                                   OrderByComparator<AssetCategory> orderByComparator)
                                            throws NoSuchCategoryException
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 = ?.

Specified by:
filterFindByG_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

filterGetByG_V_PrevAndNext

protected AssetCategory filterGetByG_V_PrevAndNext(Session session,
                                                   AssetCategory assetCategory,
                                                   long groupId,
                                                   long vocabularyId,
                                                   OrderByComparator<AssetCategory> orderByComparator,
                                                   boolean previous)

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long[] vocabularyIds)
Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
Returns:
the matching asset categories that the user has permission to view

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long[] vocabularyIds,
                                           int start,
                                           int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_V

public List<AssetCategory> filterFindByG_V(long groupId,
                                           long[] vocabularyIds,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long[] vocabularyIds)
Returns all the asset categories where groupId = ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
Returns:
the matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long[] vocabularyIds,
                                     int start,
                                     int end)
Returns a range of all the asset categories where groupId = ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long[] vocabularyIds,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_V

public List<AssetCategory> findByG_V(long groupId,
                                     long[] vocabularyIds,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?, optionally using the finder cache.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

removeByG_V

public void removeByG_V(long groupId,
                        long vocabularyId)
Removes all the asset categories where groupId = ? and vocabularyId = ? from the database.

Specified by:
removeByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID

countByG_V

public int countByG_V(long groupId,
                      long vocabularyId)
Returns the number of asset categories where groupId = ? and vocabularyId = ?.

Specified by:
countByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

countByG_V

public int countByG_V(long groupId,
                      long[] vocabularyIds)
Returns the number of asset categories where groupId = ? and vocabularyId = any ?.

Specified by:
countByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
Returns:
the number of matching asset categories

filterCountByG_V

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 = ?.

Specified by:
filterCountByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories that the user has permission to view

filterCountByG_V

public int filterCountByG_V(long groupId,
                            long[] vocabularyIds)
Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?.

Specified by:
filterCountByG_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
vocabularyIds - the vocabulary IDs
Returns:
the number of matching asset categories that the user has permission to view

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name)
Returns all the asset categories where parentCategoryId = ? and name = ?.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
Returns:
the matching asset categories

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name,
                                     int start,
                                     int end)
Returns a range of all the asset categories where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByP_N_First

public AssetCategory findByP_N_First(long parentCategoryId,
                                     String name,
                                     OrderByComparator<AssetCategory> orderByComparator)
                              throws NoSuchCategoryException
Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?.

Specified by:
findByP_N_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByP_N_First

public AssetCategory fetchByP_N_First(long parentCategoryId,
                                      String name,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?.

Specified by:
fetchByP_N_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByP_N_Last

public AssetCategory findByP_N_Last(long parentCategoryId,
                                    String name,
                                    OrderByComparator<AssetCategory> orderByComparator)
                             throws NoSuchCategoryException
Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?.

Specified by:
findByP_N_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByP_N_Last

public AssetCategory fetchByP_N_Last(long parentCategoryId,
                                     String name,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?.

Specified by:
fetchByP_N_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByP_N_PrevAndNext

public AssetCategory[] findByP_N_PrevAndNext(long categoryId,
                                             long parentCategoryId,
                                             String name,
                                             OrderByComparator<AssetCategory> orderByComparator)
                                      throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?.

Specified by:
findByP_N_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByP_N_PrevAndNext

protected AssetCategory getByP_N_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             long parentCategoryId,
                                             String name,
                                             OrderByComparator<AssetCategory> orderByComparator,
                                             boolean previous)

removeByP_N

public void removeByP_N(long parentCategoryId,
                        String name)
Removes all the asset categories where parentCategoryId = ? and name = ? from the database.

Specified by:
removeByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name

countByP_N

public int countByP_N(long parentCategoryId,
                      String name)
Returns the number of asset categories where parentCategoryId = ? and name = ?.

Specified by:
countByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
Returns:
the number of matching asset categories

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId)
Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId,
                                     int start,
                                     int end)
Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByP_V_First

public AssetCategory findByP_V_First(long parentCategoryId,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
                              throws NoSuchCategoryException
Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByP_V_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByP_V_First

public AssetCategory fetchByP_V_First(long parentCategoryId,
                                      long vocabularyId,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Specified by:
fetchByP_V_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByP_V_Last

public AssetCategory findByP_V_Last(long parentCategoryId,
                                    long vocabularyId,
                                    OrderByComparator<AssetCategory> orderByComparator)
                             throws NoSuchCategoryException
Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByP_V_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByP_V_Last

public AssetCategory fetchByP_V_Last(long parentCategoryId,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Specified by:
fetchByP_V_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByP_V_PrevAndNext

public AssetCategory[] findByP_V_PrevAndNext(long categoryId,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator)
                                      throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByP_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByP_V_PrevAndNext

protected AssetCategory getByP_V_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator,
                                             boolean previous)

removeByP_V

public void removeByP_V(long parentCategoryId,
                        long vocabularyId)
Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database.

Specified by:
removeByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID

countByP_V

public int countByP_V(long parentCategoryId,
                      long vocabularyId)
Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?.

Specified by:
countByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId)
Returns all the asset categories where name = ? and vocabularyId = ?.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId,
                                     int start,
                                     int end)
Returns a range of all the asset categories where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetCategory> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByN_V_First

public AssetCategory findByN_V_First(String name,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
                              throws NoSuchCategoryException
Returns the first asset category in the ordered set where name = ? and vocabularyId = ?.

Specified by:
findByN_V_First in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByN_V_First

public AssetCategory fetchByN_V_First(String name,
                                      long vocabularyId,
                                      OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where name = ? and vocabularyId = ?.

Specified by:
fetchByN_V_First in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByN_V_Last

public AssetCategory findByN_V_Last(String name,
                                    long vocabularyId,
                                    OrderByComparator<AssetCategory> orderByComparator)
                             throws NoSuchCategoryException
Returns the last asset category in the ordered set where name = ? and vocabularyId = ?.

Specified by:
findByN_V_Last in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByN_V_Last

public AssetCategory fetchByN_V_Last(String name,
                                     long vocabularyId,
                                     OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where name = ? and vocabularyId = ?.

Specified by:
fetchByN_V_Last in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByN_V_PrevAndNext

public AssetCategory[] findByN_V_PrevAndNext(long categoryId,
                                             String name,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator)
                                      throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?.

Specified by:
findByN_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByN_V_PrevAndNext

protected AssetCategory getByN_V_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             String name,
                                             long vocabularyId,
                                             OrderByComparator<AssetCategory> orderByComparator,
                                             boolean previous)

removeByN_V

public void removeByN_V(String name,
                        long vocabularyId)
Removes all the asset categories where name = ? and vocabularyId = ? from the database.

Specified by:
removeByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID

countByN_V

public int countByN_V(String name,
                      long vocabularyId)
Returns the number of asset categories where name = ? and vocabularyId = ?.

Specified by:
countByN_V in interface AssetCategoryPersistence
Parameters:
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

findByG_P_V

public List<AssetCategory> findByG_P_V(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId)
Returns all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByG_P_V

public List<AssetCategory> findByG_P_V(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId,
                                       int start,
                                       int end)
Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_P_V

public List<AssetCategory> findByG_P_V(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId,
                                       int start,
                                       int end,
                                       OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_P_V

public List<AssetCategory> findByG_P_V(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId,
                                       int start,
                                       int end,
                                       OrderByComparator<AssetCategory> orderByComparator,
                                       boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByG_P_V_First

public AssetCategory findByG_P_V_First(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId,
                                       OrderByComparator<AssetCategory> orderByComparator)
                                throws NoSuchCategoryException
Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByG_P_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_P_V_First

public AssetCategory fetchByG_P_V_First(long groupId,
                                        long parentCategoryId,
                                        long vocabularyId,
                                        OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
fetchByG_P_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByG_P_V_Last

public AssetCategory findByG_P_V_Last(long groupId,
                                      long parentCategoryId,
                                      long vocabularyId,
                                      OrderByComparator<AssetCategory> orderByComparator)
                               throws NoSuchCategoryException
Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByG_P_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_P_V_Last

public AssetCategory fetchByG_P_V_Last(long groupId,
                                       long parentCategoryId,
                                       long vocabularyId,
                                       OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
fetchByG_P_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByG_P_V_PrevAndNext

public AssetCategory[] findByG_P_V_PrevAndNext(long categoryId,
                                               long groupId,
                                               long parentCategoryId,
                                               long vocabularyId,
                                               OrderByComparator<AssetCategory> orderByComparator)
                                        throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByG_P_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByG_P_V_PrevAndNext

protected AssetCategory getByG_P_V_PrevAndNext(Session session,
                                               AssetCategory assetCategory,
                                               long groupId,
                                               long parentCategoryId,
                                               long vocabularyId,
                                               OrderByComparator<AssetCategory> orderByComparator,
                                               boolean previous)

filterFindByG_P_V

public List<AssetCategory> filterFindByG_P_V(long groupId,
                                             long parentCategoryId,
                                             long vocabularyId)
Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
filterFindByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the matching asset categories that the user has permission to view

filterFindByG_P_V

public List<AssetCategory> filterFindByG_P_V(long groupId,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             int start,
                                             int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_P_V

public List<AssetCategory> filterFindByG_P_V(long groupId,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             int start,
                                             int end,
                                             OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

filterFindByG_P_V_PrevAndNext

public AssetCategory[] filterFindByG_P_V_PrevAndNext(long categoryId,
                                                     long groupId,
                                                     long parentCategoryId,
                                                     long vocabularyId,
                                                     OrderByComparator<AssetCategory> orderByComparator)
                                              throws NoSuchCategoryException
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 = ?.

Specified by:
filterFindByG_P_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

filterGetByG_P_V_PrevAndNext

protected AssetCategory filterGetByG_P_V_PrevAndNext(Session session,
                                                     AssetCategory assetCategory,
                                                     long groupId,
                                                     long parentCategoryId,
                                                     long vocabularyId,
                                                     OrderByComparator<AssetCategory> orderByComparator,
                                                     boolean previous)

removeByG_P_V

public void removeByG_P_V(long groupId,
                          long parentCategoryId,
                          long vocabularyId)
Removes all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ? from the database.

Specified by:
removeByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID

countByG_P_V

public int countByG_P_V(long groupId,
                        long parentCategoryId,
                        long vocabularyId)
Returns the number of asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?.

Specified by:
countByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

filterCountByG_P_V

public int filterCountByG_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 = ?.

Specified by:
filterCountByG_P_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories that the user has permission to view

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long vocabularyId)
Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long vocabularyId,
                                           int start,
                                           int end)
Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long vocabularyId,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long vocabularyId,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator,
                                           boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByG_LikeN_V_First

public AssetCategory findByG_LikeN_V_First(long groupId,
                                           String name,
                                           long vocabularyId,
                                           OrderByComparator<AssetCategory> orderByComparator)
                                    throws NoSuchCategoryException
Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
findByG_LikeN_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_LikeN_V_First

public AssetCategory fetchByG_LikeN_V_First(long groupId,
                                            String name,
                                            long vocabularyId,
                                            OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
fetchByG_LikeN_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByG_LikeN_V_Last

public AssetCategory findByG_LikeN_V_Last(long groupId,
                                          String name,
                                          long vocabularyId,
                                          OrderByComparator<AssetCategory> orderByComparator)
                                   throws NoSuchCategoryException
Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
findByG_LikeN_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_LikeN_V_Last

public AssetCategory fetchByG_LikeN_V_Last(long groupId,
                                           String name,
                                           long vocabularyId,
                                           OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
fetchByG_LikeN_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByG_LikeN_V_PrevAndNext

public AssetCategory[] findByG_LikeN_V_PrevAndNext(long categoryId,
                                                   long groupId,
                                                   String name,
                                                   long vocabularyId,
                                                   OrderByComparator<AssetCategory> orderByComparator)
                                            throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
findByG_LikeN_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByG_LikeN_V_PrevAndNext

protected AssetCategory getByG_LikeN_V_PrevAndNext(Session session,
                                                   AssetCategory assetCategory,
                                                   long groupId,
                                                   String name,
                                                   long vocabularyId,
                                                   OrderByComparator<AssetCategory> orderByComparator,
                                                   boolean previous)

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long vocabularyId)
Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset categories that the user has permission to view

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long vocabularyId,
                                                 int start,
                                                 int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long vocabularyId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and name LIKE ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

filterFindByG_LikeN_V_PrevAndNext

public AssetCategory[] filterFindByG_LikeN_V_PrevAndNext(long categoryId,
                                                         long groupId,
                                                         String name,
                                                         long vocabularyId,
                                                         OrderByComparator<AssetCategory> orderByComparator)
                                                  throws NoSuchCategoryException
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 = ?.

Specified by:
filterFindByG_LikeN_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

filterGetByG_LikeN_V_PrevAndNext

protected AssetCategory filterGetByG_LikeN_V_PrevAndNext(Session session,
                                                         AssetCategory assetCategory,
                                                         long groupId,
                                                         String name,
                                                         long vocabularyId,
                                                         OrderByComparator<AssetCategory> orderByComparator,
                                                         boolean previous)

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long[] vocabularyIds)
Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
Returns:
the matching asset categories that the user has permission to view

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long[] vocabularyIds,
                                                 int start,
                                                 int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_LikeN_V

public List<AssetCategory> filterFindByG_LikeN_V(long groupId,
                                                 String name,
                                                 long[] vocabularyIds,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long[] vocabularyIds)
Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
Returns:
the matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long[] vocabularyIds,
                                           int start,
                                           int end)
Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long[] vocabularyIds,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_LikeN_V

public List<AssetCategory> findByG_LikeN_V(long groupId,
                                           String name,
                                           long[] vocabularyIds,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetCategory> orderByComparator,
                                           boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?, optionally using the finder cache.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

removeByG_LikeN_V

public void removeByG_LikeN_V(long groupId,
                              String name,
                              long vocabularyId)
Removes all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ? from the database.

Specified by:
removeByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID

countByG_LikeN_V

public int countByG_LikeN_V(long groupId,
                            String name,
                            long vocabularyId)
Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
countByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

countByG_LikeN_V

public int countByG_LikeN_V(long groupId,
                            String name,
                            long[] vocabularyIds)
Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?.

Specified by:
countByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
Returns:
the number of matching asset categories

filterCountByG_LikeN_V

public int filterCountByG_LikeN_V(long groupId,
                                  String name,
                                  long vocabularyId)
Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?.

Specified by:
filterCountByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories that the user has permission to view

filterCountByG_LikeN_V

public int filterCountByG_LikeN_V(long groupId,
                                  String name,
                                  long[] vocabularyIds)
Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?.

Specified by:
filterCountByG_LikeN_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
name - the name
vocabularyIds - the vocabulary IDs
Returns:
the number of matching asset categories that the user has permission to view

findByP_N_V

public AssetCategory findByP_N_V(long parentCategoryId,
                                 String name,
                                 long vocabularyId)
                          throws NoSuchCategoryException
Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByP_N_V

public AssetCategory fetchByP_N_V(long parentCategoryId,
                                  String name,
                                  long vocabularyId)
Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset category, or null if a matching asset category could not be found

fetchByP_N_V

public AssetCategory fetchByP_N_V(long parentCategoryId,
                                  String name,
                                  long vocabularyId,
                                  boolean retrieveFromCache)
Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset category, or null if a matching asset category could not be found

removeByP_N_V

public AssetCategory removeByP_N_V(long parentCategoryId,
                                   String name,
                                   long vocabularyId)
                            throws NoSuchCategoryException
Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database.

Specified by:
removeByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException

countByP_N_V

public int countByP_N_V(long parentCategoryId,
                        String name,
                        long vocabularyId)
Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
countByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

findByG_P_N_V

public List<AssetCategory> findByG_P_N_V(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId)
Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
findByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset categories

findByG_P_N_V

public List<AssetCategory> findByG_P_N_V(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId,
                                         int start,
                                         int end)
Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories

findByG_P_N_V

public List<AssetCategory> findByG_P_N_V(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories

findByG_P_N_V

public List<AssetCategory> findByG_P_N_V(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetCategory> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset categories

findByG_P_N_V_First

public AssetCategory findByG_P_N_V_First(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId,
                                         OrderByComparator<AssetCategory> orderByComparator)
                                  throws NoSuchCategoryException
Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
findByG_P_N_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_P_N_V_First

public AssetCategory fetchByG_P_N_V_First(long groupId,
                                          long parentCategoryId,
                                          String name,
                                          long vocabularyId,
                                          OrderByComparator<AssetCategory> orderByComparator)
Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
fetchByG_P_N_V_First in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category, or null if a matching asset category could not be found

findByG_P_N_V_Last

public AssetCategory findByG_P_N_V_Last(long groupId,
                                        long parentCategoryId,
                                        String name,
                                        long vocabularyId,
                                        OrderByComparator<AssetCategory> orderByComparator)
                                 throws NoSuchCategoryException
Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
findByG_P_N_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found

fetchByG_P_N_V_Last

public AssetCategory fetchByG_P_N_V_Last(long groupId,
                                         long parentCategoryId,
                                         String name,
                                         long vocabularyId,
                                         OrderByComparator<AssetCategory> orderByComparator)
Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
fetchByG_P_N_V_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category, or null if a matching asset category could not be found

findByG_P_N_V_PrevAndNext

public AssetCategory[] findByG_P_N_V_PrevAndNext(long categoryId,
                                                 long groupId,
                                                 long parentCategoryId,
                                                 String name,
                                                 long vocabularyId,
                                                 OrderByComparator<AssetCategory> orderByComparator)
                                          throws NoSuchCategoryException
Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
findByG_P_N_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

getByG_P_N_V_PrevAndNext

protected AssetCategory getByG_P_N_V_PrevAndNext(Session session,
                                                 AssetCategory assetCategory,
                                                 long groupId,
                                                 long parentCategoryId,
                                                 String name,
                                                 long vocabularyId,
                                                 OrderByComparator<AssetCategory> orderByComparator,
                                                 boolean previous)

filterFindByG_P_N_V

public List<AssetCategory> filterFindByG_P_N_V(long groupId,
                                               long parentCategoryId,
                                               String name,
                                               long vocabularyId)
Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
filterFindByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the matching asset categories that the user has permission to view

filterFindByG_P_N_V

public List<AssetCategory> filterFindByG_P_N_V(long groupId,
                                               long parentCategoryId,
                                               String name,
                                               long vocabularyId,
                                               int start,
                                               int end)
Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view

filterFindByG_P_N_V

public List<AssetCategory> filterFindByG_P_N_V(long groupId,
                                               long parentCategoryId,
                                               String name,
                                               long vocabularyId,
                                               int start,
                                               int end,
                                               OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset categories that the user has permission to view

filterFindByG_P_N_V_PrevAndNext

public AssetCategory[] filterFindByG_P_N_V_PrevAndNext(long categoryId,
                                                       long groupId,
                                                       long parentCategoryId,
                                                       String name,
                                                       long vocabularyId,
                                                       OrderByComparator<AssetCategory> orderByComparator)
                                                throws NoSuchCategoryException
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 = ?.

Specified by:
filterFindByG_P_N_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

filterGetByG_P_N_V_PrevAndNext

protected AssetCategory filterGetByG_P_N_V_PrevAndNext(Session session,
                                                       AssetCategory assetCategory,
                                                       long groupId,
                                                       long parentCategoryId,
                                                       String name,
                                                       long vocabularyId,
                                                       OrderByComparator<AssetCategory> orderByComparator,
                                                       boolean previous)

removeByG_P_N_V

public void removeByG_P_N_V(long groupId,
                            long parentCategoryId,
                            String name,
                            long vocabularyId)
Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ? from the database.

Specified by:
removeByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID

countByG_P_N_V

public int countByG_P_N_V(long groupId,
                          long parentCategoryId,
                          String name,
                          long vocabularyId)
Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
countByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories

filterCountByG_P_N_V

public int filterCountByG_P_N_V(long groupId,
                                long parentCategoryId,
                                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 = ?.

Specified by:
filterCountByG_P_N_V in interface AssetCategoryPersistence
Parameters:
groupId - the group ID
parentCategoryId - the parent category ID
name - the name
vocabularyId - the vocabulary ID
Returns:
the number of matching asset categories that the user has permission to view

cacheResult

public void cacheResult(AssetCategory assetCategory)
Caches the asset category in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetCategoryPersistence
Parameters:
assetCategory - the asset category

cacheResult

public void cacheResult(List<AssetCategory> assetCategories)
Caches the asset categories in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetCategoryPersistence
Parameters:
assetCategories - the asset categories

clearCache

public void clearCache()
Clears the cache for all asset categories.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategory>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategory>

clearCache

public void clearCache(AssetCategory assetCategory)
Clears the cache for the asset category.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategory>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategory>
Parameters:
assetCategory - the instance of this model to clear the cache for

clearCache

public void clearCache(List<AssetCategory> assetCategories)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategory>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategory>
Parameters:
assetCategories - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(AssetCategoryModelImpl assetCategoryModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(AssetCategoryModelImpl assetCategoryModelImpl)

create

public AssetCategory create(long categoryId)
Creates a new asset category with the primary key. Does not add the asset category to the database.

Specified by:
create in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

remove

public AssetCategory remove(long categoryId)
                     throws NoSuchCategoryException
Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

remove

public AssetCategory remove(Serializable primaryKey)
                     throws NoSuchCategoryException
Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetCategory>
Overrides:
remove in class BasePersistenceImpl<AssetCategory>
Parameters:
primaryKey - the primary key of the asset category
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

removeImpl

protected AssetCategory removeImpl(AssetCategory assetCategory)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetCategory>
Parameters:
assetCategory - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public AssetCategory updateImpl(AssetCategory assetCategory)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetCategoryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetCategory>
Parameters:
assetCategory - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected AssetCategory toUnwrappedModel(AssetCategory assetCategory)

findByPrimaryKey

public AssetCategory findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchCategoryException
Returns the asset category with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetCategory>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetCategory>
Parameters:
primaryKey - the primary key of the asset category
Returns:
the asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

findByPrimaryKey

public AssetCategory findByPrimaryKey(long categoryId)
                               throws NoSuchCategoryException
Returns the asset category with the primary key or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found

fetchByPrimaryKey

public AssetCategory fetchByPrimaryKey(Serializable primaryKey)
Returns the asset category with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetCategory>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetCategory>
Parameters:
primaryKey - the primary key of the asset category
Returns:
the asset category, or null if a asset category with the primary key could not be found

fetchByPrimaryKey

public AssetCategory fetchByPrimaryKey(long categoryId)
Returns the asset category with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category, or null if a asset category with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,AssetCategory> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<AssetCategory>
Specified by:
fetchByPrimaryKeys in interface AssetCategoryPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<AssetCategory>

findAll

public List<AssetCategory> findAll()
Returns all the asset categories.

Specified by:
findAll in interface AssetCategoryPersistence
Returns:
the asset categories

findAll

public List<AssetCategory> findAll(int start,
                                   int end)
Returns a range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface AssetCategoryPersistence
Parameters:
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of asset categories

findAll

public List<AssetCategory> findAll(int start,
                                   int end,
                                   OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface AssetCategoryPersistence
Parameters:
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset categories

findAll

public List<AssetCategory> findAll(int start,
                                   int end,
                                   OrderByComparator<AssetCategory> orderByComparator,
                                   boolean retrieveFromCache)
Returns an ordered range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface AssetCategoryPersistence
Parameters:
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of asset categories

removeAll

public void removeAll()
Removes all the asset categories from the database.

Specified by:
removeAll in interface AssetCategoryPersistence

countAll

public int countAll()
Returns the number of asset categories.

Specified by:
countAll in interface AssetCategoryPersistence
Returns:
the number of asset categories

getAssetEntryPrimaryKeys

public long[] getAssetEntryPrimaryKeys(long pk)
Returns the primaryKeys of asset entries associated with the asset category.

Specified by:
getAssetEntryPrimaryKeys in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
Returns:
long[] of the primaryKeys of asset entries associated with the asset category

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk)
Returns all the asset entries associated with the asset category.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
Returns:
the asset entries associated with the asset category

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end)
Returns a range of all the asset entries associated with the asset category.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of asset entries associated with the asset category

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries associated with the asset category.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset entries associated with the asset category

getAssetEntriesSize

public int getAssetEntriesSize(long pk)
Returns the number of asset entries associated with the asset category.

Specified by:
getAssetEntriesSize in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
Returns:
the number of asset entries associated with the asset category

containsAssetEntry

public boolean containsAssetEntry(long pk,
                                  long assetEntryPK)
Returns true if the asset entry is associated with the asset category.

Specified by:
containsAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Returns:
true if the asset entry is associated with the asset category; false otherwise

containsAssetEntries

public boolean containsAssetEntries(long pk)
Returns true if the asset category has any asset entries associated with it.

Specified by:
containsAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to check for associations with asset entries
Returns:
true if the asset category has any asset entries associated with it; false otherwise

addAssetEntry

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.

Specified by:
addAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry

addAssetEntry

public void addAssetEntry(long pk,
                          AssetEntry assetEntry)
Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry

addAssetEntries

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.

Specified by:
addAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries

addAssetEntries

public void addAssetEntries(long pk,
                            List<AssetEntry> assetEntries)
Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries

clearAssetEntries

public void clearAssetEntries(long pk)
Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to clear the associated asset entries from

removeAssetEntry

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.

Specified by:
removeAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry

removeAssetEntry

public void removeAssetEntry(long pk,
                             AssetEntry assetEntry)
Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry

removeAssetEntries

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.

Specified by:
removeAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries

removeAssetEntries

public void removeAssetEntries(long pk,
                               List<AssetEntry> assetEntries)
Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries

setAssetEntries

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.

Specified by:
setAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries to be associated with the asset category

setAssetEntries

public void setAssetEntries(long pk,
                            List<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.

Specified by:
setAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries to be associated with the asset category

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<AssetCategory>
Specified by:
getBadColumnNames in interface AssetCategoryPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<AssetCategory>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<AssetCategory>

countAncestors

public long countAncestors(AssetCategory assetCategory)
Specified by:
countAncestors in interface AssetCategoryPersistence

countDescendants

public long countDescendants(AssetCategory assetCategory)
Specified by:
countDescendants in interface AssetCategoryPersistence

getAncestors

public List<AssetCategory> getAncestors(AssetCategory assetCategory)
Specified by:
getAncestors in interface AssetCategoryPersistence

getDescendants

public List<AssetCategory> getDescendants(AssetCategory assetCategory)
Specified by:
getDescendants in interface AssetCategoryPersistence

rebuildTree

public void rebuildTree(long groupId,
                        boolean force)
Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.

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.

Specified by:
rebuildTree in interface AssetCategoryPersistence
Parameters:
groupId - the ID of the scope
force - whether to force the rebuild even if the tree is not stale

setRebuildTreeEnabled

public void setRebuildTreeEnabled(boolean rebuildTreeEnabled)
Specified by:
setRebuildTreeEnabled in interface AssetCategoryPersistence

countOrphanTreeNodes

protected long countOrphanTreeNodes(long groupId)

rebuildTree

protected long rebuildTree(Session session,
                           SQLQuery selectQuery,
                           SQLQuery updateQuery,
                           long groupId,
                           long parentCategoryId,
                           long leftCategoryId)

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset category persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4