Liferay 6.2.0

com.liferay.portlet.asset.service.persistence
Interface AssetEntryPersistence

All Superinterfaces:
BasePersistence<AssetEntry>
All Known Implementing Classes:
AssetEntryPersistenceImpl

@ProviderType
public interface AssetEntryPersistence
extends BasePersistence<AssetEntry>

The persistence interface for the asset entry service.

Caching information and settings can be found in portal.properties

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

Method Summary
abstract  void addAssetCategories(long pk, List<AssetCategory> assetCategories)
          Adds an association between the asset entry and the asset categories.
abstract  void addAssetCategories(long pk, long[] assetCategoryPKs)
          Adds an association between the asset entry and the asset categories.
abstract  void addAssetCategory(long pk, AssetCategory assetCategory)
          Adds an association between the asset entry and the asset category.
abstract  void addAssetCategory(long pk, long assetCategoryPK)
          Adds an association between the asset entry and the asset category.
abstract  void addAssetTag(long pk, AssetTag assetTag)
          Adds an association between the asset entry and the asset tag.
abstract  void addAssetTag(long pk, long assetTagPK)
          Adds an association between the asset entry and the asset tag.
abstract  void addAssetTags(long pk, List<AssetTag> assetTags)
          Adds an association between the asset entry and the asset tags.
abstract  void addAssetTags(long pk, long[] assetTagPKs)
          Adds an association between the asset entry and the asset tags.
abstract  void cacheResult(AssetEntry assetEntry)
          Caches the asset entry in the entity cache if it is enabled.
abstract  void cacheResult(List<AssetEntry> assetEntries)
          Caches the asset entries in the entity cache if it is enabled.
abstract  void clearAssetCategories(long pk)
          Clears all associations between the asset entry and its asset categories.
abstract  void clearAssetTags(long pk)
          Clears all associations between the asset entry and its asset tags.
abstract  boolean containsAssetCategories(long pk)
          Returns true if the asset entry has any asset categories associated with it.
abstract  boolean containsAssetCategory(long pk, long assetCategoryPK)
          Returns true if the asset category is associated with the asset entry.
abstract  boolean containsAssetTag(long pk, long assetTagPK)
          Returns true if the asset tag is associated with the asset entry.
abstract  boolean containsAssetTags(long pk)
          Returns true if the asset entry has any asset tags associated with it.
abstract  int countAll()
          Returns the number of asset entries.
abstract  int countByC_C(long classNameId, long classPK)
          Returns the number of asset entries where classNameId = ? and classPK = ?.
abstract  int countByCompanyId(long companyId)
          Returns the number of asset entries where companyId = ?.
abstract  int countByExpirationDate(Date expirationDate)
          Returns the number of asset entries where expirationDate = ?.
abstract  int countByG_CU(long groupId, String classUuid)
          Returns the number of asset entries where groupId = ? and classUuid = ?.
abstract  int countByLayoutUuid(String layoutUuid)
          Returns the number of asset entries where layoutUuid = ?.
abstract  int countByPublishDate(Date publishDate)
          Returns the number of asset entries where publishDate = ?.
abstract  int countByVisible(boolean visible)
          Returns the number of asset entries where visible = ?.
abstract  AssetEntry create(long entryId)
          Creates a new asset entry with the primary key.
abstract  AssetEntry fetchByC_C(long classNameId, long classPK)
          Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found.
abstract  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.
abstract  AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
abstract  AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
abstract  AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
abstract  AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
abstract  AssetEntry fetchByG_CU(long groupId, String classUuid)
          Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found.
abstract  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.
abstract  AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
abstract  AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
abstract  AssetEntry fetchByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or returns null if it could not be found.
abstract  AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
abstract  AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
abstract  AssetEntry fetchByVisible_First(boolean visible, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
abstract  AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
abstract  List<AssetEntry> findAll()
          Returns all the asset entries.
abstract  List<AssetEntry> findAll(int start, int end)
          Returns a range of all the asset entries.
abstract  List<AssetEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries.
abstract  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.
abstract  AssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
abstract  AssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
abstract  AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.
abstract  List<AssetEntry> findByCompanyId(long companyId)
          Returns all the asset entries where companyId = ?.
abstract  List<AssetEntry> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset entries where companyId = ?.
abstract  List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries where companyId = ?.
abstract  AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
abstract  AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
abstract  AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.
abstract  List<AssetEntry> findByExpirationDate(Date expirationDate)
          Returns all the asset entries where expirationDate = ?.
abstract  List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end)
          Returns a range of all the asset entries where expirationDate = ?.
abstract  List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries where expirationDate = ?.
abstract  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.
abstract  AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
abstract  AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
abstract  AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.
abstract  List<AssetEntry> findByLayoutUuid(String layoutUuid)
          Returns all the asset entries where layoutUuid = ?.
abstract  List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end)
          Returns a range of all the asset entries where layoutUuid = ?.
abstract  List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries where layoutUuid = ?.
abstract  AssetEntry findByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.
abstract  AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
abstract  AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
abstract  AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.
abstract  List<AssetEntry> findByPublishDate(Date publishDate)
          Returns all the asset entries where publishDate = ?.
abstract  List<AssetEntry> findByPublishDate(Date publishDate, int start, int end)
          Returns a range of all the asset entries where publishDate = ?.
abstract  List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries where publishDate = ?.
abstract  AssetEntry findByVisible_First(boolean visible, OrderByComparator orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
abstract  AssetEntry findByVisible_Last(boolean visible, OrderByComparator orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
abstract  AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.
abstract  List<AssetEntry> findByVisible(boolean visible)
          Returns all the asset entries where visible = ?.
abstract  List<AssetEntry> findByVisible(boolean visible, int start, int end)
          Returns a range of all the asset entries where visible = ?.
abstract  List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries where visible = ?.
abstract  List<AssetCategory> getAssetCategories(long pk)
          Returns all the asset categories associated with the asset entry.
abstract  List<AssetCategory> getAssetCategories(long pk, int start, int end)
          Returns a range of all the asset categories associated with the asset entry.
abstract  List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset categories associated with the asset entry.
abstract  int getAssetCategoriesSize(long pk)
          Returns the number of asset categories associated with the asset entry.
abstract  List<AssetTag> getAssetTags(long pk)
          Returns all the asset tags associated with the asset entry.
abstract  List<AssetTag> getAssetTags(long pk, int start, int end)
          Returns a range of all the asset tags associated with the asset entry.
abstract  List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags associated with the asset entry.
abstract  int getAssetTagsSize(long pk)
          Returns the number of asset tags associated with the asset entry.
abstract  AssetEntry remove(long entryId)
          Removes the asset entry with the primary key from the database.
abstract  void removeAll()
          Removes all the asset entries from the database.
abstract  void removeAssetCategories(long pk, List<AssetCategory> assetCategories)
          Removes the association between the asset entry and the asset categories.
abstract  void removeAssetCategories(long pk, long[] assetCategoryPKs)
          Removes the association between the asset entry and the asset categories.
abstract  void removeAssetCategory(long pk, AssetCategory assetCategory)
          Removes the association between the asset entry and the asset category.
abstract  void removeAssetCategory(long pk, long assetCategoryPK)
          Removes the association between the asset entry and the asset category.
abstract  void removeAssetTag(long pk, AssetTag assetTag)
          Removes the association between the asset entry and the asset tag.
abstract  void removeAssetTag(long pk, long assetTagPK)
          Removes the association between the asset entry and the asset tag.
abstract  void removeAssetTags(long pk, List<AssetTag> assetTags)
          Removes the association between the asset entry and the asset tags.
abstract  void removeAssetTags(long pk, long[] assetTagPKs)
          Removes the association between the asset entry and the asset tags.
abstract  AssetEntry removeByC_C(long classNameId, long classPK)
          Removes the asset entry where classNameId = ? and classPK = ? from the database.
abstract  void removeByCompanyId(long companyId)
          Removes all the asset entries where companyId = ? from the database.
abstract  void removeByExpirationDate(Date expirationDate)
          Removes all the asset entries where expirationDate = ? from the database.
abstract  AssetEntry removeByG_CU(long groupId, String classUuid)
          Removes the asset entry where groupId = ? and classUuid = ? from the database.
abstract  void removeByLayoutUuid(String layoutUuid)
          Removes all the asset entries where layoutUuid = ? from the database.
abstract  void removeByPublishDate(Date publishDate)
          Removes all the asset entries where publishDate = ? from the database.
abstract  void removeByVisible(boolean visible)
          Removes all the asset entries where visible = ? from the database.
abstract  void setAssetCategories(long pk, List<AssetCategory> assetCategories)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
abstract  void setAssetCategories(long pk, long[] assetCategoryPKs)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
abstract  void setAssetTags(long pk, List<AssetTag> assetTags)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
abstract  void setAssetTags(long pk, long[] assetTagPKs)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
abstract  AssetEntry updateImpl(AssetEntry assetEntry)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByCompanyId

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

Parameters:
companyId - the company ID
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<AssetEntry> findByCompanyId(long companyId,
                                 int start,
                                 int end)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<AssetEntry> findByCompanyId(long companyId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

AssetEntry findByCompanyId_First(long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        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
SystemException - if a system exception occurred

fetchByCompanyId_First

AssetEntry fetchByCompanyId_First(long companyId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

AssetEntry findByCompanyId_Last(long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByCompanyId_Last

AssetEntry fetchByCompanyId_Last(long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

AssetEntry[] findByCompanyId_PrevAndNext(long entryId,
                                         long companyId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                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
SystemException - if a system exception occurred

removeByCompanyId

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

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

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

Parameters:
companyId - the company ID
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

findByVisible

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

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

findByVisible

List<AssetEntry> findByVisible(boolean visible,
                               int start,
                               int end)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByVisible

List<AssetEntry> findByVisible(boolean visible,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByVisible_First

AssetEntry findByVisible_First(boolean visible,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByVisible_First

AssetEntry fetchByVisible_First(boolean visible,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByVisible_Last

AssetEntry findByVisible_Last(boolean visible,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByVisible_Last

AssetEntry fetchByVisible_Last(boolean visible,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByVisible_PrevAndNext

AssetEntry[] findByVisible_PrevAndNext(long entryId,
                                       boolean visible,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              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
SystemException - if a system exception occurred

removeByVisible

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

Parameters:
visible - the visible
Throws:
SystemException - if a system exception occurred

countByVisible

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

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

findByPublishDate

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

Parameters:
publishDate - the publish date
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByPublishDate

List<AssetEntry> findByPublishDate(Date publishDate,
                                   int start,
                                   int end)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByPublishDate

List<AssetEntry> findByPublishDate(Date publishDate,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByPublishDate_First

AssetEntry findByPublishDate_First(Date publishDate,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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
SystemException - if a system exception occurred

fetchByPublishDate_First

AssetEntry fetchByPublishDate_First(Date publishDate,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByPublishDate_Last

AssetEntry findByPublishDate_Last(Date publishDate,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByPublishDate_Last

AssetEntry fetchByPublishDate_Last(Date publishDate,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByPublishDate_PrevAndNext

AssetEntry[] findByPublishDate_PrevAndNext(long entryId,
                                           Date publishDate,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  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
SystemException - if a system exception occurred

removeByPublishDate

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

Parameters:
publishDate - the publish date
Throws:
SystemException - if a system exception occurred

countByPublishDate

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

Parameters:
publishDate - the publish date
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

findByExpirationDate

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

Parameters:
expirationDate - the expiration date
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByExpirationDate

List<AssetEntry> findByExpirationDate(Date expirationDate,
                                      int start,
                                      int end)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByExpirationDate

List<AssetEntry> findByExpirationDate(Date expirationDate,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByExpirationDate_First

AssetEntry findByExpirationDate_First(Date expirationDate,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

fetchByExpirationDate_First

AssetEntry fetchByExpirationDate_First(Date expirationDate,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByExpirationDate_Last

AssetEntry findByExpirationDate_Last(Date expirationDate,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            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
SystemException - if a system exception occurred

fetchByExpirationDate_Last

AssetEntry fetchByExpirationDate_Last(Date expirationDate,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByExpirationDate_PrevAndNext

AssetEntry[] findByExpirationDate_PrevAndNext(long entryId,
                                              Date expirationDate,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     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
SystemException - if a system exception occurred

removeByExpirationDate

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

Parameters:
expirationDate - the expiration date
Throws:
SystemException - if a system exception occurred

countByExpirationDate

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

Parameters:
expirationDate - the expiration date
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

findByLayoutUuid

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

Parameters:
layoutUuid - the layout uuid
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByLayoutUuid

List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                  int start,
                                  int end)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLayoutUuid

List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLayoutUuid_First

AssetEntry findByLayoutUuid_First(String layoutUuid,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByLayoutUuid_First

AssetEntry fetchByLayoutUuid_First(String layoutUuid,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLayoutUuid_Last

AssetEntry findByLayoutUuid_Last(String layoutUuid,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        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
SystemException - if a system exception occurred

fetchByLayoutUuid_Last

AssetEntry fetchByLayoutUuid_Last(String layoutUuid,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLayoutUuid_PrevAndNext

AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId,
                                          String layoutUuid,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 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
SystemException - if a system exception occurred

removeByLayoutUuid

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

Parameters:
layoutUuid - the layout uuid
Throws:
SystemException - if a system exception occurred

countByLayoutUuid

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

Parameters:
layoutUuid - the layout uuid
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

findByG_CU

AssetEntry findByG_CU(long groupId,
                      String classUuid)
                      throws SystemException,
                             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
SystemException - if a system exception occurred

fetchByG_CU

AssetEntry fetchByG_CU(long groupId,
                       String classUuid)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByG_CU

AssetEntry fetchByG_CU(long groupId,
                       String classUuid,
                       boolean retrieveFromCache)
                       throws SystemException
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 use the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

removeByG_CU

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

Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the asset entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

countByG_CU

int countByG_CU(long groupId,
                String classUuid)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C

AssetEntry findByC_C(long classNameId,
                     long classPK)
                     throws SystemException,
                            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
SystemException - if a system exception occurred

fetchByC_C

AssetEntry fetchByC_C(long classNameId,
                      long classPK)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByC_C

AssetEntry fetchByC_C(long classNameId,
                      long classPK,
                      boolean retrieveFromCache)
                      throws SystemException
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 use the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

removeByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the asset entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

cacheResult

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

Parameters:
assetEntry - the asset entry

cacheResult

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

Parameters:
assetEntries - the asset entries

create

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

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

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

updateImpl

AssetEntry updateImpl(AssetEntry assetEntry)
                      throws SystemException
Throws:
SystemException

findByPrimaryKey

AssetEntry findByPrimaryKey(long entryId)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByPrimaryKey

AssetEntry fetchByPrimaryKey(long entryId)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

List<AssetEntry> findAll()
                         throws SystemException
Returns all the asset entries.

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

findAll

List<AssetEntry> findAll(int start,
                         int end)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

List<AssetEntry> findAll(int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of asset entries.

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

getAssetCategories

List<AssetCategory> getAssetCategories(long pk)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetCategories

List<AssetCategory> getAssetCategories(long pk,
                                       int start,
                                       int end)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetCategories

List<AssetCategory> getAssetCategories(long pk,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetCategoriesSize

int getAssetCategoriesSize(long pk)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetCategory

boolean containsAssetCategory(long pk,
                              long assetCategoryPK)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetCategories

boolean containsAssetCategories(long pk)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetCategory

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

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

addAssetCategory

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

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

addAssetCategories

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

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

addAssetCategories

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

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

clearAssetCategories

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

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

removeAssetCategory

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

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

removeAssetCategory

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

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

removeAssetCategories

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

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

removeAssetCategories

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

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

setAssetCategories

void setAssetCategories(long pk,
                        long[] assetCategoryPKs)
                        throws SystemException
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

setAssetCategories

void setAssetCategories(long pk,
                        List<AssetCategory> assetCategories)
                        throws SystemException
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

getAssetTags

List<AssetTag> getAssetTags(long pk)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetTags

List<AssetTag> getAssetTags(long pk,
                            int start,
                            int end)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetTags

List<AssetTag> getAssetTags(long pk,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetTagsSize

int getAssetTagsSize(long pk)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetTag

boolean containsAssetTag(long pk,
                         long assetTagPK)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetTags

boolean containsAssetTags(long pk)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetTag

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

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

addAssetTag

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

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

addAssetTags

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

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

addAssetTags

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

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

clearAssetTags

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

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

removeAssetTag

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

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

removeAssetTag

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

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

removeAssetTags

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

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

removeAssetTags

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

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

setAssetTags

void setAssetTags(long pk,
                  long[] assetTagPKs)
                  throws SystemException
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

setAssetTags

void setAssetTags(long pk,
                  List<AssetTag> assetTags)
                  throws SystemException
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

Liferay 6.2.0