Liferay 6.0-ee

com.liferay.portlet.asset.service.persistence
Class AssetCategoryUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.persistence.AssetCategoryUtil

public class AssetCategoryUtil
extends Object

The persistence utility for the asset category service. This utility wraps AssetCategoryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
AssetCategoryUtil()
           
 
Method Summary
static void addAssetEntries(long pk, List<AssetEntry> assetEntries)
          Adds an association between the asset category and the asset entries.
static void addAssetEntries(long pk, long[] assetEntryPKs)
          Adds an association between the asset category and the asset entries.
static void addAssetEntry(long pk, AssetEntry assetEntry)
          Adds an association between the asset category and the asset entry.
static void addAssetEntry(long pk, long assetEntryPK)
          Adds an association between the asset category and the asset entry.
static void cacheResult(AssetCategory assetCategory)
          Caches the asset category in the entity cache if it is enabled.
static void cacheResult(List<AssetCategory> assetCategories)
          Caches the asset categories in the entity cache if it is enabled.
static void clearAssetEntries(long pk)
          Clears all associations between the asset category and its asset entries.
static void clearCache()
           
static void clearCache(AssetCategory assetCategory)
           
static boolean containsAssetEntries(long pk)
          Determines whether the asset category has any asset entries associated with it.
static boolean containsAssetEntry(long pk, long assetEntryPK)
          Determines whether the asset entry is associated with the asset category.
static int countAll()
          Counts all the asset categories.
static int countByGroupId(long groupId)
          Counts all the asset categories where groupId = ?.
static int countByN_V(String name, long vocabularyId)
          Counts all the asset categories where name = ? and vocabularyId = ?.
static int countByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.
static int countByP_N(long parentCategoryId, String name)
          Counts all the asset categories where parentCategoryId = ? and name = ?.
static int countByP_V(long parentCategoryId, long vocabularyId)
          Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?.
static int countByParentCategoryId(long parentCategoryId)
          Counts all the asset categories where parentCategoryId = ?.
static int countByUUID_G(String uuid, long groupId)
          Counts all the asset categories where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Counts all the asset categories where uuid = ?.
static int countByVocabularyId(long vocabularyId)
          Counts all the asset categories where vocabularyId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetCategory create(long categoryId)
          Creates a new asset category with the primary key.
static AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found.
static AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId, boolean retrieveFromCache)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found, optionally using the finder cache.
static AssetCategory fetchByPrimaryKey(long categoryId)
          Finds the asset category with the primary key or returns null if it could not be found.
static AssetCategory fetchByUUID_G(String uuid, long groupId)
          Finds the asset category where uuid = ? and groupId = ? or returns null if it could not be found.
static AssetCategory fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Finds the asset category where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the asset categories where groupId = ?.
static List<AssetCategory> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the asset categories where groupId = ?.
static List<AssetCategory> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the asset categories where groupId = ?.
static List<AssetCategory> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the asset categories where groupId = ?.
static List<AssetCategory> findAll()
          Finds all the asset categories.
static List<AssetCategory> findAll(int start, int end)
          Finds a range of all the asset categories.
static List<AssetCategory> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories.
static AssetCategory findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where groupId = ?.
static AssetCategory findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where groupId = ?.
static AssetCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where groupId = ?.
static List<AssetCategory> findByGroupId(long groupId)
          Finds all the asset categories where groupId = ?.
static List<AssetCategory> findByGroupId(long groupId, int start, int end)
          Finds a range of all the asset categories where groupId = ?.
static List<AssetCategory> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where groupId = ?.
static AssetCategory findByN_V_First(String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where name = ? and vocabularyId = ?.
static AssetCategory findByN_V_Last(String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where name = ? and vocabularyId = ?.
static AssetCategory[] findByN_V_PrevAndNext(long categoryId, String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?.
static List<AssetCategory> findByN_V(String name, long vocabularyId)
          Finds all the asset categories where name = ? and vocabularyId = ?.
static List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end)
          Finds a range of all the asset categories where name = ? and vocabularyId = ?.
static List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where name = ? and vocabularyId = ?.
static AssetCategory findByP_N_First(long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ? and name = ?.
static AssetCategory findByP_N_Last(long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ? and name = ?.
static AssetCategory[] findByP_N_PrevAndNext(long categoryId, long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?.
static AssetCategory findByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a NoSuchCategoryException if it could not be found.
static List<AssetCategory> findByP_N(long parentCategoryId, String name)
          Finds all the asset categories where parentCategoryId = ? and name = ?.
static List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ? and name = ?.
static List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ? and name = ?.
static AssetCategory findByP_V_First(long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
static AssetCategory findByP_V_Last(long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
static AssetCategory[] findByP_V_PrevAndNext(long categoryId, long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
static List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId)
          Finds all the asset categories where parentCategoryId = ? and vocabularyId = ?.
static List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
static List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
static AssetCategory findByParentCategoryId_First(long parentCategoryId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ?.
static AssetCategory findByParentCategoryId_Last(long parentCategoryId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ?.
static AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId, long parentCategoryId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?.
static List<AssetCategory> findByParentCategoryId(long parentCategoryId)
          Finds all the asset categories where parentCategoryId = ?.
static List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ?.
static List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ?.
static AssetCategory findByPrimaryKey(long categoryId)
          Finds the asset category with the primary key or throws a NoSuchCategoryException if it could not be found.
static AssetCategory findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where uuid = ?.
static AssetCategory findByUUID_G(String uuid, long groupId)
          Finds the asset category where uuid = ? and groupId = ? or throws a NoSuchCategoryException if it could not be found.
static AssetCategory findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where uuid = ?.
static AssetCategory[] findByUuid_PrevAndNext(long categoryId, String uuid, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where uuid = ?.
static List<AssetCategory> findByUuid(String uuid)
          Finds all the asset categories where uuid = ?.
static List<AssetCategory> findByUuid(String uuid, int start, int end)
          Finds a range of all the asset categories where uuid = ?.
static List<AssetCategory> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where uuid = ?.
static AssetCategory findByVocabularyId_First(long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where vocabularyId = ?.
static AssetCategory findByVocabularyId_Last(long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where vocabularyId = ?.
static AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = ?.
static List<AssetCategory> findByVocabularyId(long vocabularyId)
          Finds all the asset categories where vocabularyId = ?.
static List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end)
          Finds a range of all the asset categories where vocabularyId = ?.
static List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where vocabularyId = ?.
static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static List<AssetEntry> getAssetEntries(long pk)
          Gets all the asset entries associated with the asset category.
static List<AssetEntry> getAssetEntries(long pk, int start, int end)
          Gets a range of all the asset entries associated with the asset category.
static List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset entries associated with the asset category.
static int getAssetEntriesSize(long pk)
          Gets the number of asset entries associated with the asset category.
static AssetCategoryPersistence getPersistence()
           
static void rebuildTree(long groupId, boolean force)
          Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
static AssetCategory remove(AssetCategory assetCategory)
           
static AssetCategory remove(long categoryId)
          Removes the asset category with the primary key from the database.
static void removeAll()
          Removes all the asset categories from the database.
static void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
          Removes the association between the asset category and the asset entries.
static void removeAssetEntries(long pk, long[] assetEntryPKs)
          Removes the association between the asset category and the asset entries.
static void removeAssetEntry(long pk, AssetEntry assetEntry)
          Removes the association between the asset category and the asset entry.
static void removeAssetEntry(long pk, long assetEntryPK)
          Removes the association between the asset category and the asset entry.
static void removeByGroupId(long groupId)
          Removes all the asset categories where groupId = ? from the database.
static void removeByN_V(String name, long vocabularyId)
          Removes all the asset categories where name = ? and vocabularyId = ? from the database.
static void removeByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database.
static void removeByP_N(long parentCategoryId, String name)
          Removes all the asset categories where parentCategoryId = ? and name = ? from the database.
static void removeByP_V(long parentCategoryId, long vocabularyId)
          Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database.
static void removeByParentCategoryId(long parentCategoryId)
          Removes all the asset categories where parentCategoryId = ? from the database.
static void removeByUUID_G(String uuid, long groupId)
          Removes the asset category where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the asset categories where uuid = ? from the database.
static void removeByVocabularyId(long vocabularyId)
          Removes all the asset categories where vocabularyId = ? from the database.
static void setAssetEntries(long pk, List<AssetEntry> assetEntries)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
static void setAssetEntries(long pk, long[] assetEntryPKs)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
 void setPersistence(AssetCategoryPersistence persistence)
           
static AssetCategory update(AssetCategory assetCategory, boolean merge)
           
static AssetCategory update(AssetCategory assetCategory, boolean merge, ServiceContext serviceContext)
           
static AssetCategory updateImpl(AssetCategory assetCategory, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryUtil

public AssetCategoryUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(AssetCategory assetCategory)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<AssetCategory> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static AssetCategory remove(AssetCategory assetCategory)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static AssetCategory update(AssetCategory assetCategory,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static AssetCategory update(AssetCategory assetCategory,
                                   boolean merge,
                                   ServiceContext serviceContext)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
assetCategory - the asset category to cache

cacheResult

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

Parameters:
assetCategories - the asset categories to cache

create

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

Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

remove

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

Parameters:
categoryId - the primary key of the asset category to remove
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static AssetCategory updateImpl(AssetCategory assetCategory,
                                       boolean merge)
                                throws SystemException
Throws:
SystemException

findByPrimaryKey

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

Parameters:
categoryId - the primary key of the asset category to find
Returns:
the asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

Parameters:
categoryId - the primary key of the asset category to find
Returns:
the asset category, or null if a asset category with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<AssetCategory> findByUuid(String uuid)
                                      throws SystemException
Finds all the asset categories where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<AssetCategory> findByUuid(String uuid,
                                             int start,
                                             int end)
                                      throws SystemException
Finds 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.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<AssetCategory> findByUuid(String uuid,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds 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.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static AssetCategory findByUuid_First(String uuid,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByUuid_Last

public static AssetCategory findByUuid_Last(String uuid,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static AssetCategory[] findByUuid_PrevAndNext(long categoryId,
                                                     String uuid,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByUUID_G

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

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

fetchByUUID_G

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

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

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

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<AssetCategory> findByGroupId(long groupId)
                                         throws SystemException
Finds all the asset categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<AssetCategory> findByGroupId(long groupId,
                                                int start,
                                                int end)
                                         throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<AssetCategory> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static AssetCategory findByGroupId_First(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static AssetCategory findByGroupId_Last(long groupId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static AssetCategory[] findByGroupId_PrevAndNext(long categoryId,
                                                        long groupId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetCategory> filterFindByGroupId(long groupId)
                                               throws SystemException
Filters by the user's permissions and finds all the asset categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetCategory> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetCategory> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public static List<AssetCategory> findByParentCategoryId(long parentCategoryId)
                                                  throws SystemException
Finds all the asset categories where parentCategoryId = ?.

Parameters:
parentCategoryId - the parent category id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public static List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public static List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId_First

public static AssetCategory findByParentCategoryId_First(long parentCategoryId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByParentCategoryId_Last

public static AssetCategory findByParentCategoryId_Last(long parentCategoryId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByParentCategoryId_PrevAndNext

public static AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId,
                                                                 long parentCategoryId,
                                                                 OrderByComparator orderByComparator)
                                                          throws SystemException,
                                                                 NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByVocabularyId

public static List<AssetCategory> findByVocabularyId(long vocabularyId)
                                              throws SystemException
Finds all the asset categories where vocabularyId = ?.

Parameters:
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId

public static List<AssetCategory> findByVocabularyId(long vocabularyId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Finds 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.

Parameters:
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId

public static List<AssetCategory> findByVocabularyId(long vocabularyId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Finds 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.

Parameters:
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId_First

public static AssetCategory findByVocabularyId_First(long vocabularyId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByVocabularyId_Last

public static AssetCategory findByVocabularyId_Last(long vocabularyId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByVocabularyId_PrevAndNext

public static AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId,
                                                             long vocabularyId,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException,
                                                             NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByP_N

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N

public static List<AssetCategory> findByP_N(long parentCategoryId,
                                            String name,
                                            int start,
                                            int end)
                                     throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N

public static List<AssetCategory> findByP_N(long parentCategoryId,
                                            String name,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N_First

public static AssetCategory findByP_N_First(long parentCategoryId,
                                            String name,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_N_Last

public static AssetCategory findByP_N_Last(long parentCategoryId,
                                           String name,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_N_PrevAndNext

public static AssetCategory[] findByP_N_PrevAndNext(long categoryId,
                                                    long parentCategoryId,
                                                    String name,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByP_V

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

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V

public static List<AssetCategory> findByP_V(long parentCategoryId,
                                            long vocabularyId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V

public static List<AssetCategory> findByP_V(long parentCategoryId,
                                            long vocabularyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds 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.

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V_First

public static AssetCategory findByP_V_First(long parentCategoryId,
                                            long vocabularyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_V_Last

public static AssetCategory findByP_V_Last(long parentCategoryId,
                                           long vocabularyId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_V_PrevAndNext

public static AssetCategory[] findByP_V_PrevAndNext(long categoryId,
                                                    long parentCategoryId,
                                                    long vocabularyId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByN_V

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

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V

public static List<AssetCategory> findByN_V(String name,
                                            long vocabularyId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds 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.

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V

public static List<AssetCategory> findByN_V(String name,
                                            long vocabularyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds 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.

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V_First

public static AssetCategory findByN_V_First(String name,
                                            long vocabularyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchCategoryException
Finds the first asset category in the ordered set 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.

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByN_V_Last

public static AssetCategory findByN_V_Last(String name,
                                           long vocabularyId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchCategoryException
Finds the last asset category in the ordered set 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.

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByN_V_PrevAndNext

public static AssetCategory[] findByN_V_PrevAndNext(long categoryId,
                                                    String name,
                                                    long vocabularyId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchCategoryException
Finds the asset categories before and after the current asset category in the ordered set 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.

Parameters:
categoryId - the primary key of the current asset category
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByP_N_V

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

fetchByP_N_V

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

fetchByP_N_V

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategory> findAll()
                                   throws SystemException
Finds all the asset categories.

Returns:
the asset categories
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategory> findAll(int start,
                                          int end)
                                   throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of asset categories
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategory> findAll(int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset categories
Throws:
SystemException - if a system exception occurred

removeByUuid

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

Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByUUID_G

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

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchCategoryException

removeByGroupId

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

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByParentCategoryId

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

Parameters:
parentCategoryId - the parent category id to search with
Throws:
SystemException - if a system exception occurred

removeByVocabularyId

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

Parameters:
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByP_N

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred

removeByP_V

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

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByN_V

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

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByP_N_V

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

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred
NoSuchCategoryException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Counts all the asset categories where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
                         throws SystemException
Counts all the asset categories where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the asset categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the asset categories where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByParentCategoryId

public static int countByParentCategoryId(long parentCategoryId)
                                   throws SystemException
Counts all the asset categories where parentCategoryId = ?.

Parameters:
parentCategoryId - the parent category id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByVocabularyId

public static int countByVocabularyId(long vocabularyId)
                               throws SystemException
Counts all the asset categories where vocabularyId = ?.

Parameters:
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_N

public static int countByP_N(long parentCategoryId,
                             String name)
                      throws SystemException
Counts all the asset categories where parentCategoryId = ? and name = ?.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_V

public static int countByP_V(long parentCategoryId,
                             long vocabularyId)
                      throws SystemException
Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByN_V

public static int countByN_V(String name,
                             long vocabularyId)
                      throws SystemException
Counts all the asset categories where name = ? and vocabularyId = ?.

Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_N_V

public static int countByP_N_V(long parentCategoryId,
                               String name,
                               long vocabularyId)
                        throws SystemException
Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.

Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the asset categories.

Returns:
the number of asset categories
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk)
                                        throws SystemException
Gets all the asset entries associated with the asset category.

Parameters:
pk - the primary key of the asset category to get the associated asset entries for
Returns:
the asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk,
                                               int start,
                                               int end)
                                        throws SystemException
Gets 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.

Parameters:
pk - the primary key of the asset category to get the associated asset entries for
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Gets 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.

Parameters:
pk - the primary key of the asset category to get the associated asset entries for
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntriesSize

public static int getAssetEntriesSize(long pk)
                               throws SystemException
Gets the number of asset entries associated with the asset category.

Parameters:
pk - the primary key of the asset category to get the number of associated asset entries for
Returns:
the number of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

containsAssetEntry

public static boolean containsAssetEntry(long pk,
                                         long assetEntryPK)
                                  throws SystemException
Determines whether the asset entry is associated with the asset category.

Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Returns:
whether the asset entry is associated with the asset category
Throws:
SystemException - if a system exception occurred

containsAssetEntries

public static boolean containsAssetEntries(long pk)
                                    throws SystemException
Determines whether the asset category has any asset entries associated with it.

Parameters:
pk - the primary key of the asset category to check for associations with asset entries
Returns:
whether the asset category has any asset entries associated with it
Throws:
SystemException - if a system exception occurred

addAssetEntry

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

Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Throws:
SystemException - if a system exception occurred

addAssetEntry

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

Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry
Throws:
SystemException - if a system exception occurred

addAssetEntries

public static void addAssetEntries(long pk,
                                   long[] assetEntryPKs)
                            throws SystemException
Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries
Throws:
SystemException - if a system exception occurred

addAssetEntries

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

Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries
Throws:
SystemException - if a system exception occurred

clearAssetEntries

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

Parameters:
pk - the primary key of the asset category to clear the associated asset entries from
Throws:
SystemException - if a system exception occurred

removeAssetEntry

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

Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Throws:
SystemException - if a system exception occurred

removeAssetEntry

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

Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry
Throws:
SystemException - if a system exception occurred

removeAssetEntries

public static void removeAssetEntries(long pk,
                                      long[] assetEntryPKs)
                               throws SystemException
Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries
Throws:
SystemException - if a system exception occurred

removeAssetEntries

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

Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries
Throws:
SystemException - if a system exception occurred

setAssetEntries

public static void setAssetEntries(long pk,
                                   long[] assetEntryPKs)
                            throws SystemException
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.

Parameters:
pk - the primary key of the asset category to set the associations for
assetEntryPKs - the primary keys of the asset entries to be associated with the asset category
Throws:
SystemException - if a system exception occurred

setAssetEntries

public static void setAssetEntries(long pk,
                                   List<AssetEntry> assetEntries)
                            throws SystemException
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.

Parameters:
pk - the primary key of the asset category to set the associations for
assetEntries - the asset entries to be associated with the asset category
Throws:
SystemException - if a system exception occurred

rebuildTree

public static void rebuildTree(long groupId,
                               boolean force)
                        throws SystemException
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.

Parameters:
groupId - the id of the scope to rebuild the tree for
force - whether to force the rebuild even if the tree is not stale
Throws:
SystemException

getPersistence

public static AssetCategoryPersistence getPersistence()

setPersistence

public void setPersistence(AssetCategoryPersistence persistence)

Liferay 6.0-ee