public class AssetEntryUtil
extends Object
com.liferay.portlet.asset.service.persistence.impl.AssetEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
AssetEntryPersistence
Constructor and Description |
---|
AssetEntryUtil() |
Modifier and Type | Method and Description |
---|---|
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_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate)
Returns the number of asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static int |
countByG_C_V(long groupId,
long classNameId,
boolean visible)
Returns the number of asset entries where groupId = ? and classNameId = ? and visible = ?.
|
static int |
countByG_CU(long groupId,
String classUuid)
Returns the number of asset entries where groupId = ? and classUuid = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of asset entries where groupId = ?.
|
static int |
countByLayoutUuid(String layoutUuid)
Returns the number of asset entries where layoutUuid = ?.
|
static int |
countByPublishDate(Date publishDate)
Returns the number of asset entries where publishDate = ?.
|
static int |
countByVisible(boolean visible)
Returns the number of asset entries where visible = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static AssetEntry |
create(long entryId)
Creates a new asset entry with the primary key.
|
static AssetEntry |
fetchByC_C(long classNameId,
long classPK)
Returns the asset entry where classNameId = ? and classPK = ? or returns
null if it could not be found. |
static AssetEntry |
fetchByC_C(long classNameId,
long classPK,
boolean useFinderCache)
Returns the asset entry where classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static AssetEntry |
fetchByCompanyId_First(long companyId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?.
|
static AssetEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?.
|
static AssetEntry |
fetchByExpirationDate_First(Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?.
|
static AssetEntry |
fetchByExpirationDate_Last(Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?.
|
static AssetEntry |
fetchByG_C_P_E_First(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static AssetEntry |
fetchByG_C_P_E_Last(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static AssetEntry |
fetchByG_C_V_First(long groupId,
long classNameId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.
|
static AssetEntry |
fetchByG_C_V_Last(long groupId,
long classNameId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.
|
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 useFinderCache)
Returns the asset entry where groupId = ? and classUuid = ? or returns
null if it could not be found, optionally using the finder cache. |
static AssetEntry |
fetchByGroupId_First(long groupId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ?.
|
static AssetEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ?.
|
static AssetEntry |
fetchByLayoutUuid_First(String layoutUuid,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?.
|
static AssetEntry |
fetchByLayoutUuid_Last(String layoutUuid,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?.
|
static AssetEntry |
fetchByPrimaryKey(long entryId)
Returns the asset entry with the primary key or returns
null if it could not be found. |
static Map<Serializable,AssetEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static AssetEntry |
fetchByPublishDate_First(Date publishDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?.
|
static AssetEntry |
fetchByPublishDate_Last(Date publishDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?.
|
static AssetEntry |
fetchByVisible_First(boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where visible = ?.
|
static AssetEntry |
fetchByVisible_Last(boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where visible = ?.
|
static List<AssetEntry> |
findAll()
Returns all the asset entries.
|
static List<AssetEntry> |
findAll(int start,
int end)
Returns a range of all the asset entries.
|
static List<AssetEntry> |
findAll(int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries.
|
static List<AssetEntry> |
findAll(int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries.
|
static AssetEntry |
findByC_C(long classNameId,
long classPK)
Returns the asset entry where classNameId = ? and classPK = ? or throws a
NoSuchEntryException if it could not be found. |
static AssetEntry |
findByCompanyId_First(long companyId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?.
|
static AssetEntry |
findByCompanyId_Last(long companyId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?.
|
static AssetEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.
|
static List<AssetEntry> |
findByCompanyId(long companyId)
Returns all the asset entries where companyId = ?.
|
static List<AssetEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the asset entries where companyId = ?.
|
static List<AssetEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where companyId = ?.
|
static List<AssetEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where companyId = ?.
|
static AssetEntry |
findByExpirationDate_First(Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?.
|
static AssetEntry |
findByExpirationDate_Last(Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?.
|
static AssetEntry[] |
findByExpirationDate_PrevAndNext(long entryId,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.
|
static List<AssetEntry> |
findByExpirationDate(Date expirationDate)
Returns all the asset entries where expirationDate = ?.
|
static List<AssetEntry> |
findByExpirationDate(Date expirationDate,
int start,
int end)
Returns a range of all the asset entries where expirationDate = ?.
|
static List<AssetEntry> |
findByExpirationDate(Date expirationDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where expirationDate = ?.
|
static List<AssetEntry> |
findByExpirationDate(Date expirationDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where expirationDate = ?.
|
static AssetEntry |
findByG_C_P_E_First(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static AssetEntry |
findByG_C_P_E_Last(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static AssetEntry[] |
findByG_C_P_E_PrevAndNext(long entryId,
long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static List<AssetEntry> |
findByG_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate)
Returns all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static List<AssetEntry> |
findByG_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
int start,
int end)
Returns a range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static List<AssetEntry> |
findByG_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static List<AssetEntry> |
findByG_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.
|
static AssetEntry |
findByG_C_V_First(long groupId,
long classNameId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.
|
static AssetEntry |
findByG_C_V_Last(long groupId,
long classNameId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.
|
static AssetEntry[] |
findByG_C_V_PrevAndNext(long entryId,
long groupId,
long classNameId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.
|
static List<AssetEntry> |
findByG_C_V(long groupId,
long classNameId,
boolean visible)
Returns all the asset entries where groupId = ? and classNameId = ? and visible = ?.
|
static List<AssetEntry> |
findByG_C_V(long groupId,
long classNameId,
boolean visible,
int start,
int end)
Returns a range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.
|
static List<AssetEntry> |
findByG_C_V(long groupId,
long classNameId,
boolean visible,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.
|
static List<AssetEntry> |
findByG_C_V(long groupId,
long classNameId,
boolean visible,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.
|
static AssetEntry |
findByG_CU(long groupId,
String classUuid)
Returns the asset entry where groupId = ? and classUuid = ? or throws a
NoSuchEntryException if it could not be found. |
static AssetEntry |
findByGroupId_First(long groupId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ?.
|
static AssetEntry |
findByGroupId_Last(long groupId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ?.
|
static AssetEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.
|
static List<AssetEntry> |
findByGroupId(long groupId)
Returns all the asset entries where groupId = ?.
|
static List<AssetEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the asset entries where groupId = ?.
|
static List<AssetEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where groupId = ?.
|
static List<AssetEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where groupId = ?.
|
static AssetEntry |
findByLayoutUuid_First(String layoutUuid,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?.
|
static AssetEntry |
findByLayoutUuid_Last(String layoutUuid,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?.
|
static AssetEntry[] |
findByLayoutUuid_PrevAndNext(long entryId,
String layoutUuid,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.
|
static List<AssetEntry> |
findByLayoutUuid(String layoutUuid)
Returns all the asset entries where layoutUuid = ?.
|
static List<AssetEntry> |
findByLayoutUuid(String layoutUuid,
int start,
int end)
Returns a range of all the asset entries where layoutUuid = ?.
|
static List<AssetEntry> |
findByLayoutUuid(String layoutUuid,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where layoutUuid = ?.
|
static List<AssetEntry> |
findByLayoutUuid(String layoutUuid,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where layoutUuid = ?.
|
static AssetEntry |
findByPrimaryKey(long entryId)
Returns the asset entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static AssetEntry |
findByPublishDate_First(Date publishDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?.
|
static AssetEntry |
findByPublishDate_Last(Date publishDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?.
|
static AssetEntry[] |
findByPublishDate_PrevAndNext(long entryId,
Date publishDate,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.
|
static List<AssetEntry> |
findByPublishDate(Date publishDate)
Returns all the asset entries where publishDate = ?.
|
static List<AssetEntry> |
findByPublishDate(Date publishDate,
int start,
int end)
Returns a range of all the asset entries where publishDate = ?.
|
static List<AssetEntry> |
findByPublishDate(Date publishDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where publishDate = ?.
|
static List<AssetEntry> |
findByPublishDate(Date publishDate,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where publishDate = ?.
|
static AssetEntry |
findByVisible_First(boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where visible = ?.
|
static AssetEntry |
findByVisible_Last(boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where visible = ?.
|
static AssetEntry[] |
findByVisible_PrevAndNext(long entryId,
boolean visible,
OrderByComparator<AssetEntry> orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.
|
static List<AssetEntry> |
findByVisible(boolean visible)
Returns all the asset entries where visible = ?.
|
static List<AssetEntry> |
findByVisible(boolean visible,
int start,
int end)
Returns a range of all the asset entries where visible = ?.
|
static List<AssetEntry> |
findByVisible(boolean visible,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where visible = ?.
|
static List<AssetEntry> |
findByVisible(boolean visible,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset entries where visible = ?.
|
static List<AssetEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<AssetEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<AssetEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator) |
static List<AssetCategory> |
getAssetCategories(long pk)
Returns all the asset categories associated with the asset entry.
|
static List<AssetCategory> |
getAssetCategories(long pk,
int start,
int end)
Returns a range of all the asset categories associated with the asset entry.
|
static List<AssetCategory> |
getAssetCategories(long pk,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories associated with the asset entry.
|
static int |
getAssetCategoriesSize(long pk)
Returns the number of asset categories associated with the asset entry.
|
static long[] |
getAssetCategoryPrimaryKeys(long pk)
Returns the primaryKeys of asset categories associated with the asset entry.
|
static long[] |
getAssetTagPrimaryKeys(long pk)
Returns the primaryKeys of asset tags associated with the asset entry.
|
static List<AssetTag> |
getAssetTags(long pk)
Returns all the asset tags associated with the asset entry.
|
static List<AssetTag> |
getAssetTags(long pk,
int start,
int end)
Returns a range of all the asset tags associated with the asset entry.
|
static List<AssetTag> |
getAssetTags(long pk,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags associated with the asset entry.
|
static int |
getAssetTagsSize(long pk)
Returns the number of asset tags associated with the asset entry.
|
static AssetEntryPersistence |
getPersistence() |
static AssetEntry |
remove(long entryId)
Removes the asset entry with the primary key from the database.
|
static void |
removeAll()
Removes all the asset entries from the database.
|
static void |
removeAssetCategories(long pk,
List<AssetCategory> assetCategories)
Removes the association between the asset entry and the asset categories.
|
static void |
removeAssetCategories(long pk,
long[] assetCategoryPKs)
Removes the association between the asset entry and the asset categories.
|
static void |
removeAssetCategory(long pk,
AssetCategory assetCategory)
Removes the association between the asset entry and the asset category.
|
static void |
removeAssetCategory(long pk,
long assetCategoryPK)
Removes the association between the asset entry and the asset category.
|
static void |
removeAssetTag(long pk,
AssetTag assetTag)
Removes the association between the asset entry and the asset tag.
|
static void |
removeAssetTag(long pk,
long assetTagPK)
Removes the association between the asset entry and the asset tag.
|
static void |
removeAssetTags(long pk,
List<AssetTag> assetTags)
Removes the association between the asset entry and the asset tags.
|
static void |
removeAssetTags(long pk,
long[] assetTagPKs)
Removes the association between the asset entry and the asset tags.
|
static AssetEntry |
removeByC_C(long classNameId,
long classPK)
Removes the asset entry where classNameId = ? and classPK = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the asset entries where companyId = ? from the database.
|
static void |
removeByExpirationDate(Date expirationDate)
Removes all the asset entries where expirationDate = ? from the database.
|
static void |
removeByG_C_P_E(long groupId,
long classNameId,
Date publishDate,
Date expirationDate)
Removes all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ? from the database.
|
static void |
removeByG_C_V(long groupId,
long classNameId,
boolean visible)
Removes all the asset entries where groupId = ? and classNameId = ? and visible = ? from the database.
|
static AssetEntry |
removeByG_CU(long groupId,
String classUuid)
Removes the asset entry where groupId = ? and classUuid = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the asset entries where groupId = ? from the database.
|
static void |
removeByLayoutUuid(String layoutUuid)
Removes all the asset entries where layoutUuid = ? from the database.
|
static void |
removeByPublishDate(Date publishDate)
Removes all the asset entries where publishDate = ? from the database.
|
static void |
removeByVisible(boolean visible)
Removes all the asset entries where visible = ? from the database.
|
static void |
setAssetCategories(long pk,
List<AssetCategory> assetCategories)
Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
|
static void |
setAssetCategories(long pk,
long[] assetCategoryPKs)
Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
|
static void |
setAssetTags(long pk,
List<AssetTag> assetTags)
Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
|
static void |
setAssetTags(long pk,
long[] assetTagPKs)
Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
|
static AssetEntry |
update(AssetEntry assetEntry) |
static AssetEntry |
update(AssetEntry assetEntry,
ServiceContext serviceContext) |
static AssetEntry |
updateImpl(AssetEntry assetEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetEntry assetEntry)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<AssetEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
public static AssetEntry update(AssetEntry assetEntry)
public static AssetEntry update(AssetEntry assetEntry, ServiceContext serviceContext)
public static List<AssetEntry> findByGroupId(long groupId)
groupId
- the group IDpublic static List<AssetEntry> findByGroupId(long groupId, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group 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
)public static List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group 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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current asset entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a asset entry with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<AssetEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static List<AssetEntry> findByCompanyId(long companyId, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator<AssetEntry> orderByComparator) throws 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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static List<AssetEntry> findByVisible(boolean visible)
visible
- the visiblepublic static List<AssetEntry> findByVisible(boolean visible, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws 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 foundpublic static void removeByVisible(boolean visible)
visible
- the visiblepublic static int countByVisible(boolean visible)
visible
- the visiblepublic static List<AssetEntry> findByPublishDate(Date publishDate)
publishDate
- the publish datepublic static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator<AssetEntry> orderByComparator) throws 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 foundpublic static void removeByPublishDate(Date publishDate)
publishDate
- the publish datepublic static int countByPublishDate(Date publishDate)
publishDate
- the publish datepublic static List<AssetEntry> findByExpirationDate(Date expirationDate)
expirationDate
- the expiration datepublic static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws 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 foundpublic static void removeByExpirationDate(Date expirationDate)
expirationDate
- the expiration datepublic static int countByExpirationDate(Date expirationDate)
expirationDate
- the expiration datepublic static List<AssetEntry> findByLayoutUuid(String layoutUuid)
layoutUuid
- the layout uuidpublic static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator<AssetEntry> orderByComparator) throws 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 foundpublic static void removeByLayoutUuid(String layoutUuid)
layoutUuid
- the layout uuidpublic static int countByLayoutUuid(String layoutUuid)
layoutUuid
- the layout uuidpublic static AssetEntry findByG_CU(long groupId, String classUuid) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.groupId
- the group IDclassUuid
- the class uuidNoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByG_CU(long groupId, String classUuid)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassUuid
- the class uuidnull
if a matching asset entry could not be foundpublic static AssetEntry fetchByG_CU(long groupId, String classUuid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassUuid
- the class uuiduseFinderCache
- whether to use the finder cachenull
if a matching asset entry could not be foundpublic static AssetEntry removeByG_CU(long groupId, String classUuid) throws NoSuchEntryException
groupId
- the group IDclassUuid
- the class uuidNoSuchEntryException
public static int countByG_CU(long groupId, String classUuid)
groupId
- the group IDclassUuid
- the class uuidpublic static AssetEntry findByC_C(long classNameId, long classPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByC_C(long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pknull
if a matching asset entry could not be foundpublic static AssetEntry fetchByC_C(long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching asset entry could not be foundpublic static AssetEntry removeByC_C(long classNameId, long classPK) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
public static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static List<AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible)
groupId
- the group IDclassNameId
- the class name IDvisible
- the visiblepublic static List<AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDvisible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDvisible
- 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
)public static List<AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDvisible
- 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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByG_C_V_First(long groupId, long classNameId, boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByG_C_V_First(long groupId, long classNameId, boolean visible, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByG_C_V_Last(long groupId, long classNameId, boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByG_C_V_Last(long groupId, long classNameId, boolean visible, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByG_C_V_PrevAndNext(long entryId, long groupId, long classNameId, boolean visible, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current asset entrygroupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a asset entry with the primary key could not be foundpublic static void removeByG_C_V(long groupId, long classNameId, boolean visible)
groupId
- the group IDclassNameId
- the class name IDvisible
- the visiblepublic static int countByG_C_V(long groupId, long classNameId, boolean visible)
groupId
- the group IDclassNameId
- the class name IDvisible
- the visiblepublic static List<AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate)
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration datepublic static List<AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- 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
)public static List<AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- 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
)useFinderCache
- whether to use the finder cachepublic static AssetEntry findByG_C_P_E_First(long groupId, long classNameId, Date publishDate, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByG_C_P_E_First(long groupId, long classNameId, Date publishDate, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry findByG_C_P_E_Last(long groupId, long classNameId, Date publishDate, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching asset entry could not be foundpublic static AssetEntry fetchByG_C_P_E_Last(long groupId, long classNameId, Date publishDate, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset entry could not be foundpublic static AssetEntry[] findByG_C_P_E_PrevAndNext(long entryId, long groupId, long classNameId, Date publishDate, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current asset entrygroupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a asset entry with the primary key could not be foundpublic static void removeByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate)
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration datepublic static int countByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate)
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration datepublic 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 entrypublic static AssetEntry remove(long entryId) throws NoSuchEntryException
entryId
- the primary key of the asset entryNoSuchEntryException
- if a asset entry with the primary key could not be foundpublic static AssetEntry updateImpl(AssetEntry assetEntry)
public static AssetEntry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.entryId
- the primary key of the asset entryNoSuchEntryException
- if a asset entry with the primary key could not be foundpublic static AssetEntry fetchByPrimaryKey(long entryId)
null
if it could not be found.entryId
- the primary key of the asset entrynull
if a asset entry with the primary key could not be foundpublic static List<AssetEntry> findAll()
public static List<AssetEntry> findAll(int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)public static List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getAssetCategoryPrimaryKeys(long pk)
pk
- the primary key of the asset entrypublic static List<AssetCategory> getAssetCategories(long pk)
pk
- the primary key of the asset entrypublic static List<AssetCategory> getAssetCategories(long pk, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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)public static List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static int getAssetCategoriesSize(long pk)
pk
- the primary key of the asset entrypublic static boolean containsAssetCategory(long pk, long assetCategoryPK)
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 categorytrue
if the asset category is associated with the asset entry; false
otherwisepublic static boolean containsAssetCategories(long pk)
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 categoriestrue
if the asset entry has any asset categories associated with it; false
otherwisepublic static void addAssetCategory(long pk, long assetCategoryPK)
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset categorypublic static void addAssetCategory(long pk, AssetCategory assetCategory)
pk
- the primary key of the asset entryassetCategory
- the asset categorypublic static void addAssetCategories(long pk, long[] assetCategoryPKs)
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categoriespublic static void addAssetCategories(long pk, List<AssetCategory> assetCategories)
pk
- the primary key of the asset entryassetCategories
- the asset categoriespublic static void clearAssetCategories(long pk)
pk
- the primary key of the asset entry to clear the associated asset categories frompublic static void removeAssetCategory(long pk, long assetCategoryPK)
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset categorypublic static void removeAssetCategory(long pk, AssetCategory assetCategory)
pk
- the primary key of the asset entryassetCategory
- the asset categorypublic static void removeAssetCategories(long pk, long[] assetCategoryPKs)
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categoriespublic static void removeAssetCategories(long pk, List<AssetCategory> assetCategories)
pk
- the primary key of the asset entryassetCategories
- the asset categoriespublic static void setAssetCategories(long pk, long[] assetCategoryPKs)
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories to be associated with the asset entrypublic static void setAssetCategories(long pk, List<AssetCategory> assetCategories)
pk
- the primary key of the asset entryassetCategories
- the asset categories to be associated with the asset entrypublic static long[] getAssetTagPrimaryKeys(long pk)
pk
- the primary key of the asset entrypublic static List<AssetTag> getAssetTags(long pk)
pk
- the primary key of the asset entrypublic static List<AssetTag> getAssetTags(long pk, int start, int end)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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)public static List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator<AssetTag> orderByComparator)
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, then the query will include the default ORDER BY logic from AssetEntryModelImpl
.
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
)public static int getAssetTagsSize(long pk)
pk
- the primary key of the asset entrypublic static boolean containsAssetTag(long pk, long assetTagPK)
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 tagtrue
if the asset tag is associated with the asset entry; false
otherwisepublic static boolean containsAssetTags(long pk)
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 tagstrue
if the asset entry has any asset tags associated with it; false
otherwisepublic static void addAssetTag(long pk, long assetTagPK)
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tagpublic static void addAssetTag(long pk, AssetTag assetTag)
pk
- the primary key of the asset entryassetTag
- the asset tagpublic static void addAssetTags(long pk, long[] assetTagPKs)
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tagspublic static void addAssetTags(long pk, List<AssetTag> assetTags)
pk
- the primary key of the asset entryassetTags
- the asset tagspublic static void clearAssetTags(long pk)
pk
- the primary key of the asset entry to clear the associated asset tags frompublic static void removeAssetTag(long pk, long assetTagPK)
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tagpublic static void removeAssetTag(long pk, AssetTag assetTag)
pk
- the primary key of the asset entryassetTag
- the asset tagpublic static void removeAssetTags(long pk, long[] assetTagPKs)
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tagspublic static void removeAssetTags(long pk, List<AssetTag> assetTags)
pk
- the primary key of the asset entryassetTags
- the asset tagspublic static void setAssetTags(long pk, long[] assetTagPKs)
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags to be associated with the asset entrypublic static void setAssetTags(long pk, List<AssetTag> assetTags)
pk
- the primary key of the asset entryassetTags
- the asset tags to be associated with the asset entrypublic static AssetEntryPersistence getPersistence()