Liferay 7.0-ce-b4

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

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

@ProviderType
public class AssetEntryUtil
extends Object

The persistence utility for the asset entry service. This utility wraps com.liferay.portlet.asset.service.persistence.impl.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.

Caching information and settings can be found in portal.properties

See Also:
AssetEntryPersistence, com.liferay.portlet.asset.service.persistence.impl.AssetEntryPersistenceImpl

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)
          Returns true if the asset entry has any asset categories associated with it.
static boolean containsAssetCategory(long pk, long assetCategoryPK)
          Returns true if the asset category is associated with the asset entry.
static boolean containsAssetTag(long pk, long assetTagPK)
          Returns true if the asset tag is associated with the asset entry.
static boolean containsAssetTags(long pk)
          Returns true if the asset entry has any asset tags associated with it.
static int countAll()
          Returns the number of asset entries.
static int countByC_C(long classNameId, long classPK)
          Returns the number of asset entries where classNameId = ? and classPK = ?.
static int countByCompanyId(long companyId)
          Returns the number of asset entries where companyId = ?.
static int countByExpirationDate(Date expirationDate)
          Returns the number of asset entries where expirationDate = ?.
static int countByG_CU(long groupId, String classUuid)
          Returns the number of asset entries where groupId = ? and classUuid = ?.
static int countByGroupId(long groupId)
          Returns the number of asset entries where groupId = ?.
static int countByLayoutUuid(String layoutUuid)
          Returns the number of asset entries where layoutUuid = ?.
static int countByPublishDate(Date publishDate)
          Returns the number of asset entries where publishDate = ?.
static int countByVisible(boolean visible)
          Returns the number of asset entries where visible = ?.
static 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)
          Returns 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)
          Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
static AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
static AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
static AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
static AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
static AssetEntry fetchByG_CU(long groupId, String classUuid)
          Returns 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)
          Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.
static AssetEntry fetchByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where groupId = ?.
static AssetEntry fetchByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where groupId = ?.
static AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
static AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
static AssetEntry fetchByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or returns null if it could not be found.
static Map<Serializable,AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
static AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
static AssetEntry fetchByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
static AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
static List<AssetEntry> findAll()
          Returns all the asset entries.
static List<AssetEntry> findAll(int start, int end)
          Returns a range of all the asset entries.
static List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries.
static List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries.
static AssetEntry findByC_C(long classNameId, long classPK)
          Returns the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
static AssetEntry findByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
static AssetEntry findByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
static AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId)
          Returns all the asset entries where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset entries where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where companyId = ?.
static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where companyId = ?.
static AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
static AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
static AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.
static List<AssetEntry> findByExpirationDate(Date expirationDate)
          Returns all the asset entries where expirationDate = ?.
static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end)
          Returns a range of all the asset entries where expirationDate = ?.
static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where expirationDate = ?.
static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where expirationDate = ?.
static AssetEntry findByG_CU(long groupId, String classUuid)
          Returns the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.
static AssetEntry findByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where groupId = ?.
static AssetEntry findByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where groupId = ?.
static AssetEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.
static List<AssetEntry> findByGroupId(long groupId)
          Returns all the asset entries where groupId = ?.
static List<AssetEntry> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset entries where groupId = ?.
static List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where groupId = ?.
static List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where groupId = ?.
static AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
static AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
static AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.
static List<AssetEntry> findByLayoutUuid(String layoutUuid)
          Returns all the asset entries where layoutUuid = ?.
static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end)
          Returns a range of all the asset entries where layoutUuid = ?.
static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where layoutUuid = ?.
static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where layoutUuid = ?.
static AssetEntry findByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.
static AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
static AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
static AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.
static List<AssetEntry> findByPublishDate(Date publishDate)
          Returns all the asset entries where publishDate = ?.
static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end)
          Returns a range of all the asset entries where publishDate = ?.
static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where publishDate = ?.
static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where publishDate = ?.
static AssetEntry findByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
static AssetEntry findByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
static AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.
static List<AssetEntry> findByVisible(boolean visible)
          Returns all the asset entries where visible = ?.
static List<AssetEntry> findByVisible(boolean visible, int start, int end)
          Returns a range of all the asset entries where visible = ?.
static List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where visible = ?.
static List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where visible = ?.
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<AssetEntry> orderByComparator)
           
static List<AssetCategory> getAssetCategories(long pk)
          Returns all the asset categories associated with the asset entry.
static List<AssetCategory> getAssetCategories(long pk, int start, int end)
          Returns a range of all the asset categories associated with the asset entry.
static List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories associated with the asset entry.
static int getAssetCategoriesSize(long pk)
          Returns the number of asset categories associated with the asset entry.
static long[] getAssetCategoryPrimaryKeys(long pk)
          Returns the primaryKeys of asset categories associated with the asset entry.
static long[] getAssetTagPrimaryKeys(long pk)
          Returns the primaryKeys of asset tags associated with the asset entry.
static List<AssetTag> getAssetTags(long pk)
          Returns all the asset tags associated with the asset entry.
static List<AssetTag> getAssetTags(long pk, int start, int end)
          Returns a range of all the asset tags associated with the asset entry.
static List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags associated with the asset entry.
static int getAssetTagsSize(long pk)
          Returns the number of asset tags associated with the asset entry.
static AssetEntryPersistence getPersistence()
           
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 AssetEntry 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 removeByExpirationDate(Date expirationDate)
          Removes all the asset entries where expirationDate = ? from the database.
static AssetEntry removeByG_CU(long groupId, String classUuid)
          Removes the asset entry where groupId = ? and classUuid = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the asset entries where groupId = ? from the database.
static void removeByLayoutUuid(String layoutUuid)
          Removes all the asset entries where layoutUuid = ? from the database.
static void removeByPublishDate(Date publishDate)
          Removes all the asset entries where publishDate = ? from the database.
static void removeByVisible(boolean visible)
          Removes all the asset entries where visible = ? 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.
static AssetEntry update(AssetEntry assetEntry)
           
static AssetEntry update(AssetEntry assetEntry, ServiceContext serviceContext)
           
static AssetEntry updateImpl(AssetEntry assetEntry)
           
 
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 static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

update

public static AssetEntry update(AssetEntry assetEntry)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

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

findByGroupId

public static List<AssetEntry> findByGroupId(long groupId)
Returns all the asset entries where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching asset entries

findByGroupId

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

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

Parameters:
groupId - the group ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByGroupId

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

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

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

findByGroupId

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

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

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

findByGroupId_First

public static AssetEntry findByGroupId_First(long groupId,
                                             OrderByComparator<AssetEntry> orderByComparator)
                                      throws NoSuchEntryException
Returns the first asset entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByGroupId_First

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

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

findByGroupId_Last

public static AssetEntry findByGroupId_Last(long groupId,
                                            OrderByComparator<AssetEntry> orderByComparator)
                                     throws NoSuchEntryException
Returns the last asset entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByGroupId_Last

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

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

findByGroupId_PrevAndNext

public static AssetEntry[] findByGroupId_PrevAndNext(long entryId,
                                                     long groupId,
                                                     OrderByComparator<AssetEntry> orderByComparator)
                                              throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.

Parameters:
entryId - the primary key of the current asset entry
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByGroupId

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

Parameters:
groupId - the group ID

countByGroupId

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

Parameters:
groupId - the group ID
Returns:
the number of matching asset entries

findByCompanyId

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

Parameters:
companyId - the company ID
Returns:
the matching asset entries

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId,
                                               int start,
                                               int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId,
                                               int start,
                                               int end,
                                               OrderByComparator<AssetEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByCompanyId

public static List<AssetEntry> findByCompanyId(long companyId,
                                               int start,
                                               int end,
                                               OrderByComparator<AssetEntry> orderByComparator,
                                               boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByCompanyId_First

public static AssetEntry findByCompanyId_First(long companyId,
                                               OrderByComparator<AssetEntry> orderByComparator)
                                        throws NoSuchEntryException
Returns the first asset entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByCompanyId_First

public static AssetEntry fetchByCompanyId_First(long companyId,
                                                OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByCompanyId_Last

public static AssetEntry findByCompanyId_Last(long companyId,
                                              OrderByComparator<AssetEntry> orderByComparator)
                                       throws NoSuchEntryException
Returns the last asset entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByCompanyId_Last

public static AssetEntry fetchByCompanyId_Last(long companyId,
                                               OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByCompanyId_PrevAndNext

public static AssetEntry[] findByCompanyId_PrevAndNext(long entryId,
                                                       long companyId,
                                                       OrderByComparator<AssetEntry> orderByComparator)
                                                throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.

Parameters:
entryId - the primary key of the current asset entry
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByCompanyId

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

Parameters:
companyId - the company ID

countByCompanyId

public static int countByCompanyId(long companyId)
Returns the number of asset entries where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching asset entries

findByVisible

public static List<AssetEntry> findByVisible(boolean visible)
Returns all the asset entries where visible = ?.

Parameters:
visible - the visible
Returns:
the matching asset entries

findByVisible

public static List<AssetEntry> findByVisible(boolean visible,
                                             int start,
                                             int end)
Returns a range of all the asset entries where visible = ?.

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

Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByVisible

public static List<AssetEntry> findByVisible(boolean visible,
                                             int start,
                                             int end,
                                             OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where visible = ?.

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

Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByVisible

public static List<AssetEntry> findByVisible(boolean visible,
                                             int start,
                                             int end,
                                             OrderByComparator<AssetEntry> orderByComparator,
                                             boolean retrieveFromCache)
Returns an ordered range of all the asset entries where visible = ?.

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

Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByVisible_First

public static AssetEntry findByVisible_First(boolean visible,
                                             OrderByComparator<AssetEntry> orderByComparator)
                                      throws NoSuchEntryException
Returns the first asset entry in the ordered set where visible = ?.

Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByVisible_First

public static AssetEntry fetchByVisible_First(boolean visible,
                                              OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where visible = ?.

Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByVisible_Last

public static AssetEntry findByVisible_Last(boolean visible,
                                            OrderByComparator<AssetEntry> orderByComparator)
                                     throws NoSuchEntryException
Returns the last asset entry in the ordered set where visible = ?.

Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByVisible_Last

public static AssetEntry fetchByVisible_Last(boolean visible,
                                             OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where visible = ?.

Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByVisible_PrevAndNext

public static AssetEntry[] findByVisible_PrevAndNext(long entryId,
                                                     boolean visible,
                                                     OrderByComparator<AssetEntry> orderByComparator)
                                              throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.

Parameters:
entryId - the primary key of the current asset entry
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByVisible

public static void removeByVisible(boolean visible)
Removes all the asset entries where visible = ? from the database.

Parameters:
visible - the visible

countByVisible

public static int countByVisible(boolean visible)
Returns the number of asset entries where visible = ?.

Parameters:
visible - the visible
Returns:
the number of matching asset entries

findByPublishDate

public static List<AssetEntry> findByPublishDate(Date publishDate)
Returns all the asset entries where publishDate = ?.

Parameters:
publishDate - the publish date
Returns:
the matching asset entries

findByPublishDate

public static List<AssetEntry> findByPublishDate(Date publishDate,
                                                 int start,
                                                 int end)
Returns a range of all the asset entries where publishDate = ?.

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

Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByPublishDate

public static List<AssetEntry> findByPublishDate(Date publishDate,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where publishDate = ?.

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

Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByPublishDate

public static List<AssetEntry> findByPublishDate(Date publishDate,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetEntry> orderByComparator,
                                                 boolean retrieveFromCache)
Returns an ordered range of all the asset entries where publishDate = ?.

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

Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByPublishDate_First

public static AssetEntry findByPublishDate_First(Date publishDate,
                                                 OrderByComparator<AssetEntry> orderByComparator)
                                          throws NoSuchEntryException
Returns the first asset entry in the ordered set where publishDate = ?.

Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByPublishDate_First

public static AssetEntry fetchByPublishDate_First(Date publishDate,
                                                  OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?.

Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByPublishDate_Last

public static AssetEntry findByPublishDate_Last(Date publishDate,
                                                OrderByComparator<AssetEntry> orderByComparator)
                                         throws NoSuchEntryException
Returns the last asset entry in the ordered set where publishDate = ?.

Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByPublishDate_Last

public static AssetEntry fetchByPublishDate_Last(Date publishDate,
                                                 OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?.

Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByPublishDate_PrevAndNext

public static AssetEntry[] findByPublishDate_PrevAndNext(long entryId,
                                                         Date publishDate,
                                                         OrderByComparator<AssetEntry> orderByComparator)
                                                  throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.

Parameters:
entryId - the primary key of the current asset entry
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByPublishDate

public static void removeByPublishDate(Date publishDate)
Removes all the asset entries where publishDate = ? from the database.

Parameters:
publishDate - the publish date

countByPublishDate

public static int countByPublishDate(Date publishDate)
Returns the number of asset entries where publishDate = ?.

Parameters:
publishDate - the publish date
Returns:
the number of matching asset entries

findByExpirationDate

public static List<AssetEntry> findByExpirationDate(Date expirationDate)
Returns all the asset entries where expirationDate = ?.

Parameters:
expirationDate - the expiration date
Returns:
the matching asset entries

findByExpirationDate

public static List<AssetEntry> findByExpirationDate(Date expirationDate,
                                                    int start,
                                                    int end)
Returns a range of all the asset entries where expirationDate = ?.

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

Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByExpirationDate

public static List<AssetEntry> findByExpirationDate(Date expirationDate,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where expirationDate = ?.

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

Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByExpirationDate

public static List<AssetEntry> findByExpirationDate(Date expirationDate,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<AssetEntry> orderByComparator,
                                                    boolean retrieveFromCache)
Returns an ordered range of all the asset entries where expirationDate = ?.

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

Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByExpirationDate_First

public static AssetEntry findByExpirationDate_First(Date expirationDate,
                                                    OrderByComparator<AssetEntry> orderByComparator)
                                             throws NoSuchEntryException
Returns the first asset entry in the ordered set where expirationDate = ?.

Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByExpirationDate_First

public static AssetEntry fetchByExpirationDate_First(Date expirationDate,
                                                     OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?.

Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByExpirationDate_Last

public static AssetEntry findByExpirationDate_Last(Date expirationDate,
                                                   OrderByComparator<AssetEntry> orderByComparator)
                                            throws NoSuchEntryException
Returns the last asset entry in the ordered set where expirationDate = ?.

Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByExpirationDate_Last

public static AssetEntry fetchByExpirationDate_Last(Date expirationDate,
                                                    OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?.

Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByExpirationDate_PrevAndNext

public static AssetEntry[] findByExpirationDate_PrevAndNext(long entryId,
                                                            Date expirationDate,
                                                            OrderByComparator<AssetEntry> orderByComparator)
                                                     throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.

Parameters:
entryId - the primary key of the current asset entry
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByExpirationDate

public static void removeByExpirationDate(Date expirationDate)
Removes all the asset entries where expirationDate = ? from the database.

Parameters:
expirationDate - the expiration date

countByExpirationDate

public static int countByExpirationDate(Date expirationDate)
Returns the number of asset entries where expirationDate = ?.

Parameters:
expirationDate - the expiration date
Returns:
the number of matching asset entries

findByLayoutUuid

public static List<AssetEntry> findByLayoutUuid(String layoutUuid)
Returns all the asset entries where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
Returns:
the matching asset entries

findByLayoutUuid

public static List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                                int start,
                                                int end)
Returns a range of all the asset entries where layoutUuid = ?.

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

Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByLayoutUuid

public static List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                                int start,
                                                int end,
                                                OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where layoutUuid = ?.

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

Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByLayoutUuid

public static List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                                int start,
                                                int end,
                                                OrderByComparator<AssetEntry> orderByComparator,
                                                boolean retrieveFromCache)
Returns an ordered range of all the asset entries where layoutUuid = ?.

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

Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByLayoutUuid_First

public static AssetEntry findByLayoutUuid_First(String layoutUuid,
                                                OrderByComparator<AssetEntry> orderByComparator)
                                         throws NoSuchEntryException
Returns the first asset entry in the ordered set where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByLayoutUuid_First

public static AssetEntry fetchByLayoutUuid_First(String layoutUuid,
                                                 OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByLayoutUuid_Last

public static AssetEntry findByLayoutUuid_Last(String layoutUuid,
                                               OrderByComparator<AssetEntry> orderByComparator)
                                        throws NoSuchEntryException
Returns the last asset entry in the ordered set where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByLayoutUuid_Last

public static AssetEntry fetchByLayoutUuid_Last(String layoutUuid,
                                                OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByLayoutUuid_PrevAndNext

public static AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId,
                                                        String layoutUuid,
                                                        OrderByComparator<AssetEntry> orderByComparator)
                                                 throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.

Parameters:
entryId - the primary key of the current asset entry
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeByLayoutUuid

public static void removeByLayoutUuid(String layoutUuid)
Removes all the asset entries where layoutUuid = ? from the database.

Parameters:
layoutUuid - the layout uuid

countByLayoutUuid

public static int countByLayoutUuid(String layoutUuid)
Returns the number of asset entries where layoutUuid = ?.

Parameters:
layoutUuid - the layout uuid
Returns:
the number of matching asset entries

findByG_CU

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

Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByG_CU

public static AssetEntry fetchByG_CU(long groupId,
                                     String classUuid)
Returns 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
classUuid - the class uuid
Returns:
the matching asset entry, or null if a matching asset entry could not be found

fetchByG_CU

public static AssetEntry fetchByG_CU(long groupId,
                                     String classUuid,
                                     boolean retrieveFromCache)
Returns 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
classUuid - the class uuid
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found

removeByG_CU

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

Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException

countByG_CU

public static int countByG_CU(long groupId,
                              String classUuid)
Returns the number of asset entries where groupId = ? and classUuid = ?.

Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the number of matching asset entries

findByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByC_C

public static AssetEntry fetchByC_C(long classNameId,
                                    long classPK)
Returns 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
classPK - the class p k
Returns:
the matching asset entry, or null if a matching asset entry could not be found

fetchByC_C

public static AssetEntry fetchByC_C(long classNameId,
                                    long classPK,
                                    boolean retrieveFromCache)
Returns 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
classPK - the class p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found

removeByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException

countByC_C

public static int countByC_C(long classNameId,
                             long classPK)
Returns the number of asset entries where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching asset entries

cacheResult

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

Parameters:
assetEntry - the asset entry

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

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 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
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

updateImpl

public static AssetEntry updateImpl(AssetEntry assetEntry)

findByPrimaryKey

public static AssetEntry findByPrimaryKey(long entryId)
                                   throws NoSuchEntryException
Returns 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
Returns:
the asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

fetchByPrimaryKey

public static AssetEntry fetchByPrimaryKey(long entryId)
Returns 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
Returns:
the asset entry, or null if a asset entry with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<AssetEntry> findAll()
Returns all the asset entries.

Returns:
the asset entries

findAll

public static List<AssetEntry> findAll(int start,
                                       int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset entries

findAll

public static List<AssetEntry> findAll(int start,
                                       int end,
                                       OrderByComparator<AssetEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset entries

findAll

public static List<AssetEntry> findAll(int start,
                                       int end,
                                       OrderByComparator<AssetEntry> orderByComparator,
                                       boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

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


countAll

public static int countAll()
Returns the number of asset entries.

Returns:
the number of asset entries

getAssetCategoryPrimaryKeys

public static long[] getAssetCategoryPrimaryKeys(long pk)
Returns the primaryKeys of asset categories associated with the asset entry.

Parameters:
pk - the primary key of the asset entry
Returns:
long[] of the primaryKeys of asset categories associated with the asset entry

getAssetCategories

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

Parameters:
pk - the primary key of the asset entry
Returns:
the asset categories associated with the asset entry

getAssetCategories

public static List<AssetCategory> getAssetCategories(long pk,
                                                     int start,
                                                     int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset categories associated with the asset entry

getAssetCategories

public static List<AssetCategory> getAssetCategories(long pk,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<AssetCategory> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

getAssetCategoriesSize

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

Parameters:
pk - the primary key of the asset entry
Returns:
the number of asset categories associated with the asset entry

containsAssetCategory

public static boolean containsAssetCategory(long pk,
                                            long assetCategoryPK)
Returns true if 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:
true if the asset category is associated with the asset entry; false otherwise

containsAssetCategories

public static boolean containsAssetCategories(long pk)
Returns true if 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:
true if the asset entry has any asset categories associated with it; false otherwise

addAssetCategory

public static void addAssetCategory(long pk,
                                    long assetCategoryPK)
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

addAssetCategory

public static void addAssetCategory(long pk,
                                    AssetCategory assetCategory)
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

addAssetCategories

public static void addAssetCategories(long pk,
                                      long[] assetCategoryPKs)
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

addAssetCategories

public static void addAssetCategories(long pk,
                                      List<AssetCategory> assetCategories)
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

clearAssetCategories

public static void clearAssetCategories(long pk)
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

removeAssetCategory

public static void removeAssetCategory(long pk,
                                       long assetCategoryPK)
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

removeAssetCategory

public static void removeAssetCategory(long pk,
                                       AssetCategory assetCategory)
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

removeAssetCategories

public static void removeAssetCategories(long pk,
                                         long[] assetCategoryPKs)
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

removeAssetCategories

public static void removeAssetCategories(long pk,
                                         List<AssetCategory> assetCategories)
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

setAssetCategories

public static void setAssetCategories(long pk,
                                      long[] assetCategoryPKs)
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
assetCategoryPKs - the primary keys of the asset categories to be associated with the asset entry

setAssetCategories

public static void setAssetCategories(long pk,
                                      List<AssetCategory> assetCategories)
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
assetCategories - the asset categories to be associated with the asset entry

getAssetTagPrimaryKeys

public static long[] getAssetTagPrimaryKeys(long pk)
Returns the primaryKeys of asset tags associated with the asset entry.

Parameters:
pk - the primary key of the asset entry
Returns:
long[] of the primaryKeys of asset tags associated with the asset entry

getAssetTags

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

Parameters:
pk - the primary key of the asset entry
Returns:
the asset tags associated with the asset entry

getAssetTags

public static List<AssetTag> getAssetTags(long pk,
                                          int start,
                                          int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset tags associated with the asset entry

getAssetTags

public static List<AssetTag> getAssetTags(long pk,
                                          int start,
                                          int end,
                                          OrderByComparator<AssetTag> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset tags associated with the asset entry

getAssetTagsSize

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

Parameters:
pk - the primary key of the asset entry
Returns:
the number of asset tags associated with the asset entry

containsAssetTag

public static boolean containsAssetTag(long pk,
                                       long assetTagPK)
Returns true if 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:
true if the asset tag is associated with the asset entry; false otherwise

containsAssetTags

public static boolean containsAssetTags(long pk)
Returns true if 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:
true if the asset entry has any asset tags associated with it; false otherwise

addAssetTag

public static void addAssetTag(long pk,
                               long assetTagPK)
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

addAssetTag

public static void addAssetTag(long pk,
                               AssetTag assetTag)
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

addAssetTags

public static void addAssetTags(long pk,
                                long[] assetTagPKs)
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

addAssetTags

public static void addAssetTags(long pk,
                                List<AssetTag> assetTags)
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

clearAssetTags

public static void clearAssetTags(long pk)
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

removeAssetTag

public static void removeAssetTag(long pk,
                                  long assetTagPK)
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

removeAssetTag

public static void removeAssetTag(long pk,
                                  AssetTag assetTag)
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

removeAssetTags

public static void removeAssetTags(long pk,
                                   long[] assetTagPKs)
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

removeAssetTags

public static void removeAssetTags(long pk,
                                   List<AssetTag> assetTags)
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

setAssetTags

public static void setAssetTags(long pk,
                                long[] assetTagPKs)
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
assetTagPKs - the primary keys of the asset tags to be associated with the asset entry

setAssetTags

public static void setAssetTags(long pk,
                                List<AssetTag> assetTags)
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
assetTags - the asset tags to be associated with the asset entry

getPersistence

public static AssetEntryPersistence getPersistence()

Liferay 7.0-ce-b4