Liferay 6.0.5

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

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

public class AssetEntryUtil
extends Object

The persistence utility for the asset entry service. This utility wraps AssetEntryPersistenceImpl 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:
AssetEntryPersistence, AssetEntryPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AssetEntryUtil()
           
 
Method Summary
static void addAssetCategories(long pk, List<AssetCategory> assetCategories)
          Adds an association between the asset entry and the asset categories.
static void addAssetCategories(long pk, long[] assetCategoryPKs)
          Adds an association between the asset entry and the asset categories.
static void addAssetCategory(long pk, AssetCategory assetCategory)
          Adds an association between the asset entry and the asset category.
static void addAssetCategory(long pk, long assetCategoryPK)
          Adds an association between the asset entry and the asset category.
static void addAssetTag(long pk, AssetTag assetTag)
          Adds an association between the asset entry and the asset tag.
static void addAssetTag(long pk, long assetTagPK)
          Adds an association between the asset entry and the asset tag.
static void addAssetTags(long pk, List<AssetTag> assetTags)
          Adds an association between the asset entry and the asset tags.
static void addAssetTags(long pk, long[] assetTagPKs)
          Adds an association between the asset entry and the asset tags.
static void cacheResult(AssetEntry assetEntry)
          Caches the asset entry in the entity cache if it is enabled.
static void cacheResult(List<AssetEntry> assetEntries)
          Caches the asset entries in the entity cache if it is enabled.
static void clearAssetCategories(long pk)
          Clears all associations between the asset entry and its asset categories.
static void clearAssetTags(long pk)
          Clears all associations between the asset entry and its asset tags.
static void clearCache()
           
static void clearCache(AssetEntry assetEntry)
           
static boolean containsAssetCategories(long pk)
          Determines whether the asset entry has any asset categories associated with it.
static boolean containsAssetCategory(long pk, long assetCategoryPK)
          Determines whether the asset category is associated with the asset entry.
static boolean containsAssetTag(long pk, long assetTagPK)
          Determines whether the asset tag is associated with the asset entry.
static boolean containsAssetTags(long pk)
          Determines whether the asset entry has any asset tags associated with it.
static int countAll()
          Counts all the asset entries.
static int countByC_C(long classNameId, long classPK)
          Counts all the asset entries where classNameId = ? and classPK = ?.
static int countByCompanyId(long companyId)
          Counts all the asset entries where companyId = ?.
static int countByG_CU(long groupId, String classUuid)
          Counts all the asset entries where groupId = ? and classUuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetEntry create(long entryId)
          Creates a new asset entry with the primary key.
static AssetEntry fetchByC_C(long classNameId, long classPK)
          Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found.
static AssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
          Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
static AssetEntry fetchByG_CU(long groupId, String classUuid)
          Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found.
static AssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache)
          Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.
static AssetEntry fetchByPrimaryKey(long entryId)
          Finds the asset entry with the primary key or returns null if it could not be found.
static List<AssetEntry> findAll()
          Finds all the asset entries.
static List<AssetEntry> findAll(int start, int end)
          Finds a range of all the asset entries.
static List<AssetEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset entries.
static AssetEntry findByC_C(long classNameId, long classPK)
          Finds the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
static AssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first asset entry in the ordered set where companyId = ?.
static AssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last asset entry in the ordered set where companyId = ?.
static AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator)
          Finds the asset entries before and after the current asset entry in the ordered set where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId)
          Finds all the asset entries where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the asset entries where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset entries where companyId = ?.
static AssetEntry findByG_CU(long groupId, String classUuid)
          Finds the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.
static AssetEntry findByPrimaryKey(long entryId)
          Finds the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.
static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static List<AssetCategory> getAssetCategories(long pk)
          Gets all the asset categories associated with the asset entry.
static List<AssetCategory> getAssetCategories(long pk, int start, int end)
          Gets a range of all the asset categories associated with the asset entry.
static List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset categories associated with the asset entry.
static int getAssetCategoriesSize(long pk)
          Gets the number of asset categories associated with the asset entry.
static List<AssetTag> getAssetTags(long pk)
          Gets all the asset tags associated with the asset entry.
static List<AssetTag> getAssetTags(long pk, int start, int end)
          Gets a range of all the asset tags associated with the asset entry.
static List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset tags associated with the asset entry.
static int getAssetTagsSize(long pk)
          Gets the number of asset tags associated with the asset entry.
static AssetEntryPersistence getPersistence()
           
static AssetEntry remove(AssetEntry assetEntry)
           
static AssetEntry remove(long entryId)
          Removes the asset entry with the primary key from the database.
static void removeAll()
          Removes all the asset entries from the database.
static void removeAssetCategories(long pk, List<AssetCategory> assetCategories)
          Removes the association between the asset entry and the asset categories.
static void removeAssetCategories(long pk, long[] assetCategoryPKs)
          Removes the association between the asset entry and the asset categories.
static void removeAssetCategory(long pk, AssetCategory assetCategory)
          Removes the association between the asset entry and the asset category.
static void removeAssetCategory(long pk, long assetCategoryPK)
          Removes the association between the asset entry and the asset category.
static void removeAssetTag(long pk, AssetTag assetTag)
          Removes the association between the asset entry and the asset tag.
static void removeAssetTag(long pk, long assetTagPK)
          Removes the association between the asset entry and the asset tag.
static void removeAssetTags(long pk, List<AssetTag> assetTags)
          Removes the association between the asset entry and the asset tags.
static void removeAssetTags(long pk, long[] assetTagPKs)
          Removes the association between the asset entry and the asset tags.
static void removeByC_C(long classNameId, long classPK)
          Removes the asset entry where classNameId = ? and classPK = ? from the database.
static void removeByCompanyId(long companyId)
          Removes all the asset entries where companyId = ? from the database.
static void removeByG_CU(long groupId, String classUuid)
          Removes the asset entry where groupId = ? and classUuid = ? from the database.
static void setAssetCategories(long pk, List<AssetCategory> assetCategories)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
static void setAssetCategories(long pk, long[] assetCategoryPKs)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
static void setAssetTags(long pk, List<AssetTag> assetTags)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
static void setAssetTags(long pk, long[] assetTagPKs)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
 void setPersistence(AssetEntryPersistence persistence)
           
static AssetEntry update(AssetEntry assetEntry, boolean merge)
           
static AssetEntry update(AssetEntry assetEntry, boolean merge, ServiceContext serviceContext)
           
static AssetEntry updateImpl(AssetEntry assetEntry, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryUtil

public AssetEntryUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(AssetEntry assetEntry)
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<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

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

update

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

update

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

cacheResult

public static void cacheResult(AssetEntry assetEntry)
Caches the asset entry in the entity cache if it is enabled.

Parameters:
assetEntry - the asset entry to cache

cacheResult

public static void cacheResult(List<AssetEntry> assetEntries)
Caches the asset entries in the entity cache if it is enabled.

Parameters:
assetEntries - the asset entries to cache

create

public static AssetEntry create(long entryId)
Creates a new asset entry with the primary key. Does not add the asset entry to the database.

Parameters:
entryId - the primary key for the new asset entry
Returns:
the new asset entry

remove

public static AssetEntry remove(long entryId)
                         throws SystemException,
                                NoSuchEntryException
Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

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

updateImpl

public static AssetEntry updateImpl(AssetEntry assetEntry,
                                    boolean merge)
                             throws SystemException
Throws:
SystemException

findByPrimaryKey

public static AssetEntry findByPrimaryKey(long entryId)
                                   throws SystemException,
                                          NoSuchEntryException
Finds the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.

Parameters:
entryId - the primary key of the asset entry to find
Returns:
the asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

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

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId)
                                        throws SystemException
Finds all the asset entries where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId,
                                               int start,
                                               int end)
                                        throws SystemException
Finds a range of all the asset entries where 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.

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

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the asset entries where 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.

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

findByCompanyId_First

public static AssetEntry findByCompanyId_First(long companyId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchEntryException
Finds the first asset entry in the ordered set where 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static AssetEntry findByCompanyId_Last(long companyId,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchEntryException
Finds the last asset entry in the ordered set where 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static AssetEntry[] findByCompanyId_PrevAndNext(long entryId,
                                                       long companyId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchEntryException
Finds the asset entries before and after the current asset entry in the ordered set where 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.

Parameters:
entryId - the primary key of the current asset entry
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

findByG_CU

public static AssetEntry findByG_CU(long groupId,
                                    String classUuid)
                             throws SystemException,
                                    NoSuchEntryException
Finds the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.

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

fetchByG_CU

public static AssetEntry fetchByG_CU(long groupId,
                                     String classUuid)
                              throws SystemException
Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found. Uses the finder cache.

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

fetchByG_CU

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

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

findByC_C

public static AssetEntry findByC_C(long classNameId,
                                   long classPK)
                            throws SystemException,
                                   NoSuchEntryException
Finds the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

fetchByC_C

public static AssetEntry fetchByC_C(long classNameId,
                                    long classPK)
                             throws SystemException
Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C

public static AssetEntry fetchByC_C(long classNameId,
                                    long classPK,
                                    boolean retrieveFromCache)
                             throws SystemException
Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetEntry> findAll()
                                throws SystemException
Finds all the asset entries.

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

findAll

public static List<AssetEntry> findAll(int start,
                                       int end)
                                throws SystemException
Finds a range of all the asset entries.

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 entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset entries
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetEntry> findAll(int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the asset entries.

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 entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset entries
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the asset entries where companyId = ? from the database.

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByG_CU

public static void removeByG_CU(long groupId,
                                String classUuid)
                         throws SystemException,
                                NoSuchEntryException
Removes the asset entry where groupId = ? and classUuid = ? from the database.

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

removeByC_C

public static void removeByC_C(long classNameId,
                               long classPK)
                        throws SystemException,
                               NoSuchEntryException
Removes the asset entry where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Counts all the asset entries where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

countByG_CU

public static int countByG_CU(long groupId,
                              String classUuid)
                       throws SystemException
Counts all the asset entries where groupId = ? and classUuid = ?.

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

countByC_C

public static int countByC_C(long classNameId,
                             long classPK)
                      throws SystemException
Counts all the asset entries where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

countAll

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

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

getAssetCategories

public static List<AssetCategory> getAssetCategories(long pk)
                                              throws SystemException
Gets all the asset categories associated with the asset entry.

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

getAssetCategories

public static List<AssetCategory> getAssetCategories(long pk,
                                                     int start,
                                                     int end)
                                              throws SystemException
Gets a range of all the asset categories associated with the asset entry.

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 entry to get the associated asset categories for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetCategories

public static List<AssetCategory> getAssetCategories(long pk,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Gets an ordered range of all the asset categories associated with the asset entry.

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 entry to get the associated asset categories for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetCategoriesSize

public static int getAssetCategoriesSize(long pk)
                                  throws SystemException
Gets the number of asset categories associated with the asset entry.

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

containsAssetCategory

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

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

containsAssetCategories

public static boolean containsAssetCategories(long pk)
                                       throws SystemException
Determines whether the asset entry has any asset categories associated with it.

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

addAssetCategory

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

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

addAssetCategory

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

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

addAssetCategories

public static void addAssetCategories(long pk,
                                      long[] assetCategoryPKs)
                               throws SystemException
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories
Throws:
SystemException - if a system exception occurred

addAssetCategories

public static void addAssetCategories(long pk,
                                      List<AssetCategory> assetCategories)
                               throws SystemException
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

clearAssetCategories

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

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

removeAssetCategory

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

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

removeAssetCategory

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

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

removeAssetCategories

public static void removeAssetCategories(long pk,
                                         long[] assetCategoryPKs)
                                  throws SystemException
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories
Throws:
SystemException - if a system exception occurred

removeAssetCategories

public static void removeAssetCategories(long pk,
                                         List<AssetCategory> assetCategories)
                                  throws SystemException
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

setAssetCategories

public static void setAssetCategories(long pk,
                                      long[] assetCategoryPKs)
                               throws SystemException
Sets the asset categories associated with the asset entry, 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 entry to set the associations for
assetCategoryPKs - the primary keys of the asset categories to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

setAssetCategories

public static void setAssetCategories(long pk,
                                      List<AssetCategory> assetCategories)
                               throws SystemException
Sets the asset categories associated with the asset entry, 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 entry to set the associations for
assetCategories - the asset categories to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTags

public static List<AssetTag> getAssetTags(long pk)
                                   throws SystemException
Gets all the asset tags associated with the asset entry.

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

getAssetTags

public static List<AssetTag> getAssetTags(long pk,
                                          int start,
                                          int end)
                                   throws SystemException
Gets a range of all the asset tags associated with the asset entry.

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 entry to get the associated asset tags for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTags

public static List<AssetTag> getAssetTags(long pk,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Gets an ordered range of all the asset tags associated with the asset entry.

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 entry to get the associated asset tags for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTagsSize

public static int getAssetTagsSize(long pk)
                            throws SystemException
Gets the number of asset tags associated with the asset entry.

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

containsAssetTag

public static boolean containsAssetTag(long pk,
                                       long assetTagPK)
                                throws SystemException
Determines whether the asset tag is associated with the asset entry.

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

containsAssetTags

public static boolean containsAssetTags(long pk)
                                 throws SystemException
Determines whether the asset entry has any asset tags associated with it.

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

addAssetTag

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

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

addAssetTag

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

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

addAssetTags

public static void addAssetTags(long pk,
                                long[] assetTagPKs)
                         throws SystemException
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags
Throws:
SystemException - if a system exception occurred

addAssetTags

public static void addAssetTags(long pk,
                                List<AssetTag> assetTags)
                         throws SystemException
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

clearAssetTags

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

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

removeAssetTag

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

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

removeAssetTag

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

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

removeAssetTags

public static void removeAssetTags(long pk,
                                   long[] assetTagPKs)
                            throws SystemException
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags
Throws:
SystemException - if a system exception occurred

removeAssetTags

public static void removeAssetTags(long pk,
                                   List<AssetTag> assetTags)
                            throws SystemException
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

setAssetTags

public static void setAssetTags(long pk,
                                long[] assetTagPKs)
                         throws SystemException
Sets the asset tags associated with the asset entry, 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 entry to set the associations for
assetTagPKs - the primary keys of the asset tags to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

setAssetTags

public static void setAssetTags(long pk,
                                List<AssetTag> assetTags)
                         throws SystemException
Sets the asset tags associated with the asset entry, 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 entry to set the associations for
assetTags - the asset tags to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

getPersistence

public static AssetEntryPersistence getPersistence()

setPersistence

public void setPersistence(AssetEntryPersistence persistence)

Liferay 6.0.5