|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.service.persistence.AssetEntryUtil
@ProviderType public class AssetEntryUtil
The persistence utility for the asset entry service. This utility wraps AssetEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
AssetEntryPersistence
,
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 |
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 orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?. |
static AssetEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?. |
static AssetEntry |
fetchByExpirationDate_First(Date expirationDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?. |
static AssetEntry |
fetchByExpirationDate_Last(Date expirationDate,
OrderByComparator 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 |
fetchByLayoutUuid_First(String layoutUuid,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?. |
static AssetEntry |
fetchByLayoutUuid_Last(String layoutUuid,
OrderByComparator 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 AssetEntry |
fetchByPublishDate_First(Date publishDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?. |
static AssetEntry |
fetchByPublishDate_Last(Date publishDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?. |
static AssetEntry |
fetchByVisible_First(boolean visible,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where visible = ?. |
static AssetEntry |
fetchByVisible_Last(boolean visible,
OrderByComparator 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 orderByComparator)
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 orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?. |
static AssetEntry |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?. |
static 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 = ?. |
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 orderByComparator)
Returns an ordered range of all the asset entries where companyId = ?. |
static AssetEntry |
findByExpirationDate_First(Date expirationDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?. |
static AssetEntry |
findByExpirationDate_Last(Date expirationDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?. |
static 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 = ?. |
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 orderByComparator)
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 |
findByLayoutUuid_First(String layoutUuid,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?. |
static AssetEntry |
findByLayoutUuid_Last(String layoutUuid,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?. |
static 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 = ?. |
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 orderByComparator)
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 orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?. |
static AssetEntry |
findByPublishDate_Last(Date publishDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?. |
static 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 = ?. |
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 orderByComparator)
Returns an ordered range of all the asset entries where publishDate = ?. |
static AssetEntry |
findByVisible_First(boolean visible,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where visible = ?. |
static AssetEntry |
findByVisible_Last(boolean visible,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where visible = ?. |
static 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 = ?. |
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 orderByComparator)
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 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 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 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 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 |
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. |
void |
setPersistence(AssetEntryPersistence persistence)
Deprecated. As of 6.2.0 |
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 |
---|
public AssetEntryUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetEntry assetEntry)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AssetEntry update(AssetEntry assetEntry) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static AssetEntry update(AssetEntry assetEntry, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<AssetEntry> findByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current asset entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByVisible(boolean visible) throws SystemException
visible
- the visible
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByVisible(boolean visible, int start, int end) throws SystemException
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.
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetEntry findByVisible_First(boolean visible, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByVisible_First(boolean visible, OrderByComparator orderByComparator) throws SystemException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry findByVisible_Last(boolean visible, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator orderByComparator) throws SystemException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current asset entryvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByVisible(boolean visible) throws SystemException
visible
- the visible
SystemException
- if a system exception occurredpublic static int countByVisible(boolean visible) throws SystemException
visible
- the visible
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByPublishDate(Date publishDate) throws SystemException
publishDate
- the publish date
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end) throws SystemException
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.
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator orderByComparator) throws SystemException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator) throws SystemException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current asset entrypublishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByPublishDate(Date publishDate) throws SystemException
publishDate
- the publish date
SystemException
- if a system exception occurredpublic static int countByPublishDate(Date publishDate) throws SystemException
publishDate
- the publish date
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByExpirationDate(Date expirationDate) throws SystemException
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end) throws SystemException
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.
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator) throws SystemException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator) throws SystemException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current asset entryexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByExpirationDate(Date expirationDate) throws SystemException
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic static int countByExpirationDate(Date expirationDate) throws SystemException
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByLayoutUuid(String layoutUuid) throws SystemException
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end) throws SystemException
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.
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator) throws SystemException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator) throws SystemException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current asset entrylayoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByLayoutUuid(String layoutUuid) throws SystemException
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic static int countByLayoutUuid(String layoutUuid) throws SystemException
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic static AssetEntry findByG_CU(long groupId, String classUuid) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
groupId
- the group IDclassUuid
- the class uuid
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByG_CU(long groupId, String classUuid) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group IDclassUuid
- the class uuid
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group IDclassUuid
- the class uuidretrieveFromCache
- whether to use the finder cache
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry removeByG_CU(long groupId, String classUuid) throws SystemException, NoSuchEntryException
groupId
- the group IDclassUuid
- the class uuid
SystemException
- if a system exception occurred
NoSuchEntryException
public static int countByG_CU(long groupId, String classUuid) throws SystemException
groupId
- the group IDclassUuid
- the class uuid
SystemException
- if a system exception occurredpublic static AssetEntry findByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
classNameId
- the class name IDclassPK
- the class p k
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByC_C(long classNameId, long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
classNameId
- the class name IDclassPK
- the class p k
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
classNameId
- the class name IDclassPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic static AssetEntry removeByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurred
NoSuchEntryException
public static int countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static void cacheResult(AssetEntry assetEntry)
assetEntry
- the asset entrypublic static void cacheResult(List<AssetEntry> assetEntries)
assetEntries
- the asset entriespublic static AssetEntry create(long entryId)
entryId
- the primary key for the new asset entry
public static AssetEntry remove(long entryId) throws SystemException, NoSuchEntryException
entryId
- the primary key of the asset entry
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static AssetEntry updateImpl(AssetEntry assetEntry) throws SystemException
SystemException
public static AssetEntry findByPrimaryKey(long entryId) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
entryId
- the primary key of the asset entry
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static AssetEntry fetchByPrimaryKey(long entryId) throws SystemException
null
if it could not be found.
entryId
- the primary key of the asset entry
null
if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<AssetEntry> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<AssetEntry> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetEntry> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<AssetCategory> getAssetCategories(long pk) throws SystemException
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic static List<AssetCategory> getAssetCategories(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getAssetCategoriesSize(long pk) throws SystemException
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic static boolean containsAssetCategory(long pk, long assetCategoryPK) throws SystemException
true
if the asset category is associated with the asset entry.
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
true
if the asset category is associated with the asset entry; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsAssetCategories(long pk) throws SystemException
true
if the asset entry has any asset categories associated with it.
pk
- the primary key of the asset entry to check for associations with asset categories
true
if the asset entry has any asset categories associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addAssetCategory(long pk, long assetCategoryPK) throws SystemException
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredpublic static void addAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredpublic static void addAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredpublic static void addAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredpublic static void clearAssetCategories(long pk) throws SystemException
pk
- the primary key of the asset entry to clear the associated asset categories from
SystemException
- if a system exception occurredpublic static void removeAssetCategory(long pk, long assetCategoryPK) throws SystemException
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredpublic static void removeAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredpublic static void removeAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredpublic static void removeAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredpublic static void setAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredpublic static void setAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entryassetCategories
- the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredpublic static List<AssetTag> getAssetTags(long pk) throws SystemException
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic static List<AssetTag> getAssetTags(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getAssetTagsSize(long pk) throws SystemException
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic static boolean containsAssetTag(long pk, long assetTagPK) throws SystemException
true
if the asset tag is associated with the asset entry.
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
true
if the asset tag is associated with the asset entry; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsAssetTags(long pk) throws SystemException
true
if the asset entry has any asset tags associated with it.
pk
- the primary key of the asset entry to check for associations with asset tags
true
if the asset entry has any asset tags associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addAssetTag(long pk, long assetTagPK) throws SystemException
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredpublic static void addAssetTag(long pk, AssetTag assetTag) throws SystemException
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredpublic static void addAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredpublic static void addAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredpublic static void clearAssetTags(long pk) throws SystemException
pk
- the primary key of the asset entry to clear the associated asset tags from
SystemException
- if a system exception occurredpublic static void removeAssetTag(long pk, long assetTagPK) throws SystemException
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredpublic static void removeAssetTag(long pk, AssetTag assetTag) throws SystemException
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredpublic static void removeAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredpublic static void removeAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredpublic static void setAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags to be associated with the asset entry
SystemException
- if a system exception occurredpublic static void setAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entryassetTags
- the asset tags to be associated with the asset entry
SystemException
- if a system exception occurredpublic static AssetEntryPersistence getPersistence()
public void setPersistence(AssetEntryPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |