Class AssetEntryPersistenceImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.persistence.AssetEntryPersistence
,com.liferay.portal.kernel.dao.orm.SessionFactory
,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetEntry,
com.liferay.asset.kernel.model.AssetTag> protected com.liferay.asset.kernel.service.persistence.AssetTagPersistence
static final String
static final String
static final String
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAssetTag
(long pk, long assetTagPK) Adds an association between the asset entry and the asset tag.boolean
addAssetTag
(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Adds an association between the asset entry and the asset tag.boolean
addAssetTags
(long pk, long[] assetTagPKs) Adds an association between the asset entry and the asset tags.boolean
addAssetTags
(long pk, List<com.liferay.asset.kernel.model.AssetTag> assetTags) Adds an association between the asset entry and the asset tags.void
Initializes the asset entry persistence.void
cacheResult
(com.liferay.asset.kernel.model.AssetEntry assetEntry) Caches the asset entry in the entity cache if it is enabled.void
cacheResult
(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Caches the asset entries in the entity cache if it is enabled.protected void
cacheUniqueFindersCache
(AssetEntryModelImpl assetEntryModelImpl) void
clearAssetTags
(long pk) Clears all associations between the asset entry and its asset tags.void
Clears the cache for all asset entries.void
clearCache
(com.liferay.asset.kernel.model.AssetEntry assetEntry) Clears the cache for the asset entry.void
clearCache
(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) void
clearCache
(Set<Serializable> primaryKeys) boolean
containsAssetTag
(long pk, long assetTagPK) Returnstrue
if the asset tag is associated with the asset entry.boolean
containsAssetTags
(long pk) Returnstrue
if the asset entry has any asset tags associated with it.int
countAll()
Returns the number of asset entries.int
countByC_C
(long classNameId, long classPK) Returns the number of asset entries where classNameId = ? and classPK = ?.int
countByC_CN
(long companyId, long classNameId) Returns the number of asset entries where companyId = ? and classNameId = ?.int
countByCompanyId
(long companyId) Returns the number of asset entries where companyId = ?.int
countByExpirationDate
(Date expirationDate) Returns the number of asset entries where expirationDate = ?.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 = ?.int
countByG_C_V
(long groupId, long classNameId, boolean visible) Returns the number of asset entries where groupId = ? and classNameId = ? and visible = ?.int
countByG_CU
(long groupId, String classUuid) Returns the number of asset entries where groupId = ? and classUuid = ?.int
countByGroupId
(long groupId) Returns the number of asset entries where groupId = ?.int
countByLayoutUuid
(String layoutUuid) Returns the number of asset entries where layoutUuid = ?.int
countByPublishDate
(Date publishDate) Returns the number of asset entries where publishDate = ?.int
countByVisible
(boolean visible) Returns the number of asset entries where visible = ?.com.liferay.asset.kernel.model.AssetEntry
create
(long entryId) Creates a new asset entry with the primary key.void
destroy()
com.liferay.asset.kernel.model.AssetEntry
fetchByC_C
(long classNameId, long classPK) Returns the asset entry where classNameId = ? and classPK = ? or returnsnull
if it could not be found.com.liferay.asset.kernel.model.AssetEntry
fetchByC_C
(long classNameId, long classPK, boolean useFinderCache) Returns the asset entry where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetEntry
fetchByC_CN_First
(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ? and classNameId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByC_CN_Last
(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ? and classNameId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByExpirationDate_First
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByExpirationDate_Last
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByG_C_P_E_First
(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByG_C_P_E_Last
(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByG_C_V_First
(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByG_C_V_Last
(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByG_CU
(long groupId, String classUuid) Returns the asset entry where groupId = ? and classUuid = ? or returnsnull
if it could not be found.com.liferay.asset.kernel.model.AssetEntry
fetchByG_CU
(long groupId, String classUuid, boolean useFinderCache) Returns the asset entry where groupId = ? and classUuid = ? or returnsnull
if it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetEntry
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByLayoutUuid_First
(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByLayoutUuid_Last
(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByPrimaryKey
(long entryId) Returns the asset entry with the primary key or returnsnull
if it could not be found.com.liferay.asset.kernel.model.AssetEntry
fetchByPrimaryKey
(Serializable primaryKey) Returns the asset entry with the primary key or returnsnull
if it could not be found.Map<Serializable,
com.liferay.asset.kernel.model.AssetEntry> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) com.liferay.asset.kernel.model.AssetEntry
fetchByPublishDate_First
(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where publishDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByPublishDate_Last
(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where publishDate = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByVisible_First
(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where visible = ?.com.liferay.asset.kernel.model.AssetEntry
fetchByVisible_Last
(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where visible = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findAll()
Returns all the asset entries.List<com.liferay.asset.kernel.model.AssetEntry>
findAll
(int start, int end) Returns a range of all the asset entries.List<com.liferay.asset.kernel.model.AssetEntry>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries.List<com.liferay.asset.kernel.model.AssetEntry>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries.com.liferay.asset.kernel.model.AssetEntry
findByC_C
(long classNameId, long classPK) Returns the asset entry where classNameId = ? and classPK = ? or throws aNoSuchEntryException
if it could not be found.List<com.liferay.asset.kernel.model.AssetEntry>
findByC_CN
(long companyId, long classNameId) Returns all the asset entries where companyId = ? and classNameId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByC_CN
(long companyId, long classNameId, int start, int end) Returns a range of all the asset entries where companyId = ? and classNameId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByC_CN
(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where companyId = ? and classNameId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByC_CN
(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where companyId = ? and classNameId = ?.com.liferay.asset.kernel.model.AssetEntry
findByC_CN_First
(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ? and classNameId = ?.com.liferay.asset.kernel.model.AssetEntry
findByC_CN_Last
(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ? and classNameId = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByC_CN_PrevAndNext
(long entryId, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where companyId = ? and classNameId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByCompanyId
(long companyId) Returns all the asset entries where companyId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the asset entries where companyId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where companyId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where companyId = ?.com.liferay.asset.kernel.model.AssetEntry
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ?.com.liferay.asset.kernel.model.AssetEntry
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByCompanyId_PrevAndNext
(long entryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByExpirationDate
(Date expirationDate) Returns all the asset entries where expirationDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByExpirationDate
(Date expirationDate, int start, int end) Returns a range of all the asset entries where expirationDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByExpirationDate
(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where expirationDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByExpirationDate
(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByExpirationDate_First
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByExpirationDate_Last
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByExpirationDate_PrevAndNext
(long entryId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.List<com.liferay.asset.kernel.model.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 = ?.List<com.liferay.asset.kernel.model.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 = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByG_C_P_E
(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByG_C_P_E
(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByG_C_P_E_First
(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByG_C_P_E_Last
(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByG_C_P_E_PrevAndNext
(long entryId, long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.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 = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByG_C_V
(long groupId, long classNameId, boolean visible) Returns all the asset entries where groupId = ? and classNameId = ? and visible = ?.List<com.liferay.asset.kernel.model.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 = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByG_C_V
(long groupId, long classNameId, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByG_C_V
(long groupId, long classNameId, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry
findByG_C_V_First
(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry
findByG_C_V_Last
(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByG_C_V_PrevAndNext
(long entryId, long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.com.liferay.asset.kernel.model.AssetEntry
findByG_CU
(long groupId, String classUuid) Returns the asset entry where groupId = ? and classUuid = ? or throws aNoSuchEntryException
if it could not be found.List<com.liferay.asset.kernel.model.AssetEntry>
findByGroupId
(long groupId) Returns all the asset entries where groupId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByGroupId
(long groupId, int start, int end) Returns a range of all the asset entries where groupId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ?.com.liferay.asset.kernel.model.AssetEntry
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ?.com.liferay.asset.kernel.model.AssetEntry
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByGroupId_PrevAndNext
(long entryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByLayoutUuid
(String layoutUuid) Returns all the asset entries where layoutUuid = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByLayoutUuid
(String layoutUuid, int start, int end) Returns a range of all the asset entries where layoutUuid = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByLayoutUuid
(String layoutUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where layoutUuid = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByLayoutUuid
(String layoutUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry
findByLayoutUuid_First
(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry
findByLayoutUuid_Last
(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByLayoutUuid_PrevAndNext
(long entryId, String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.com.liferay.asset.kernel.model.AssetEntry
findByPrimaryKey
(long entryId) Returns the asset entry with the primary key or throws aNoSuchEntryException
if it could not be found.com.liferay.asset.kernel.model.AssetEntry
findByPrimaryKey
(Serializable primaryKey) Returns the asset entry with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.List<com.liferay.asset.kernel.model.AssetEntry>
findByPublishDate
(Date publishDate) Returns all the asset entries where publishDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByPublishDate
(Date publishDate, int start, int end) Returns a range of all the asset entries where publishDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByPublishDate
(Date publishDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where publishDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByPublishDate
(Date publishDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where publishDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByPublishDate_First
(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where publishDate = ?.com.liferay.asset.kernel.model.AssetEntry
findByPublishDate_Last
(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where publishDate = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByPublishDate_PrevAndNext
(long entryId, Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByVisible
(boolean visible) Returns all the asset entries where visible = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByVisible
(boolean visible, int start, int end) Returns a range of all the asset entries where visible = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByVisible
(boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where visible = ?.List<com.liferay.asset.kernel.model.AssetEntry>
findByVisible
(boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where visible = ?.com.liferay.asset.kernel.model.AssetEntry
findByVisible_First
(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where visible = ?.com.liferay.asset.kernel.model.AssetEntry
findByVisible_Last
(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where visible = ?.com.liferay.asset.kernel.model.AssetEntry[]
findByVisible_PrevAndNext
(long entryId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.long[]
getAssetTagPrimaryKeys
(long pk) Returns the primaryKeys of asset tags associated with the asset entry.List<com.liferay.asset.kernel.model.AssetTag>
getAssetTags
(long pk) Returns all the asset tags associated with the asset entry.List<com.liferay.asset.kernel.model.AssetTag>
getAssetTags
(long pk, int start, int end) Returns a range of all the asset tags associated with the asset entry.List<com.liferay.asset.kernel.model.AssetTag>
getAssetTags
(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns an ordered range of all the asset tags associated with the asset entry.int
getAssetTagsSize
(long pk) Returns the number of asset tags associated with the asset entry.protected com.liferay.asset.kernel.model.AssetEntry
getByC_CN_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByCompanyId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByExpirationDate_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByG_C_P_E_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByG_C_V_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByGroupId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByLayoutUuid_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByPublishDate_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) protected com.liferay.asset.kernel.model.AssetEntry
getByVisible_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) getCTColumnNames
(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache
protected String
protected String
com.liferay.asset.kernel.model.AssetEntry
remove
(long entryId) Removes the asset entry with the primary key from the database.com.liferay.asset.kernel.model.AssetEntry
remove
(Serializable primaryKey) Removes the asset entry with the primary key from the database.void
Removes all the asset entries from the database.void
removeAssetTag
(long pk, long assetTagPK) Removes the association between the asset entry and the asset tag.void
removeAssetTag
(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Removes the association between the asset entry and the asset tag.void
removeAssetTags
(long pk, long[] assetTagPKs) Removes the association between the asset entry and the asset tags.void
removeAssetTags
(long pk, List<com.liferay.asset.kernel.model.AssetTag> assetTags) Removes the association between the asset entry and the asset tags.com.liferay.asset.kernel.model.AssetEntry
removeByC_C
(long classNameId, long classPK) Removes the asset entry where classNameId = ? and classPK = ? from the database.void
removeByC_CN
(long companyId, long classNameId) Removes all the asset entries where companyId = ? and classNameId = ? from the database.void
removeByCompanyId
(long companyId) Removes all the asset entries where companyId = ? from the database.void
removeByExpirationDate
(Date expirationDate) Removes all the asset entries where expirationDate = ? from the database.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.void
removeByG_C_V
(long groupId, long classNameId, boolean visible) Removes all the asset entries where groupId = ? and classNameId = ? and visible = ? from the database.com.liferay.asset.kernel.model.AssetEntry
removeByG_CU
(long groupId, String classUuid) Removes the asset entry where groupId = ? and classUuid = ? from the database.void
removeByGroupId
(long groupId) Removes all the asset entries where groupId = ? from the database.void
removeByLayoutUuid
(String layoutUuid) Removes all the asset entries where layoutUuid = ? from the database.void
removeByPublishDate
(Date publishDate) Removes all the asset entries where publishDate = ? from the database.void
removeByVisible
(boolean visible) Removes all the asset entries where visible = ? from the database.protected com.liferay.asset.kernel.model.AssetEntry
removeImpl
(com.liferay.asset.kernel.model.AssetEntry assetEntry) void
setAssetTags
(long pk, long[] assetTagPKs) Sets the asset tags associated with the asset entry, removing and adding associations as necessary.void
setAssetTags
(long pk, List<com.liferay.asset.kernel.model.AssetTag> assetTags) Sets the asset tags associated with the asset entry, removing and adding associations as necessary.com.liferay.asset.kernel.model.AssetEntry
updateImpl
(com.liferay.asset.kernel.model.AssetEntry assetEntry) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
assetTagPersistence
@BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetTagPersistence.class) protected com.liferay.asset.kernel.service.persistence.AssetTagPersistence assetTagPersistence -
assetEntryToAssetTagTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.model.AssetTag> assetEntryToAssetTagTableMapper
-
-
Constructor Details
-
AssetEntryPersistenceImpl
public AssetEntryPersistenceImpl()
-
-
Method Details
-
findByGroupId
Returns all the asset entries where groupId = ?.- Specified by:
findByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group ID- Returns:
- the matching asset entries
-
findByGroupId
public List<com.liferay.asset.kernel.model.AssetEntry> findByGroupId(long groupId, int start, int end) Returns a range of all the asset entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByGroupId
public List<com.liferay.asset.kernel.model.AssetEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByGroupId
public List<com.liferay.asset.kernel.model.AssetEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByGroupId_First
public com.liferay.asset.kernel.model.AssetEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where groupId = ?.- Specified by:
findByGroupId_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByGroupId_First
public com.liferay.asset.kernel.model.AssetEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ?.- Specified by:
fetchByGroupId_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByGroupId_Last
public com.liferay.asset.kernel.model.AssetEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where groupId = ?.- Specified by:
findByGroupId_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByGroupId_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ?.- Specified by:
fetchByGroupId_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByGroupId_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.- Specified by:
findByGroupId_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByGroupId_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByGroupId
public void removeByGroupId(long groupId) Removes all the asset entries where groupId = ? from the database.- Specified by:
removeByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group ID
-
countByGroupId
public int countByGroupId(long groupId) Returns the number of asset entries where groupId = ?.- Specified by:
countByGroupId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group ID- Returns:
- the number of matching asset entries
-
findByCompanyId
Returns all the asset entries where companyId = ?.- Specified by:
findByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company ID- Returns:
- the matching asset entries
-
findByCompanyId
public List<com.liferay.asset.kernel.model.AssetEntry> findByCompanyId(long companyId, int start, int end) Returns a range of all the asset entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByCompanyId
public List<com.liferay.asset.kernel.model.AssetEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByCompanyId
public List<com.liferay.asset.kernel.model.AssetEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByCompanyId_First
public com.liferay.asset.kernel.model.AssetEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where companyId = ?.- Specified by:
findByCompanyId_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByCompanyId_First
public com.liferay.asset.kernel.model.AssetEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByCompanyId_Last
public com.liferay.asset.kernel.model.AssetEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByCompanyId_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByCompanyId_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByCompanyId_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the asset entries where companyId = ? from the database.- Specified by:
removeByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of asset entries where companyId = ?.- Specified by:
countByCompanyId
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company ID- Returns:
- the number of matching asset entries
-
findByVisible
Returns all the asset entries where visible = ?.- Specified by:
findByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visible- Returns:
- the matching asset entries
-
findByVisible
public List<com.liferay.asset.kernel.model.AssetEntry> findByVisible(boolean visible, int start, int end) Returns a range of all the asset entries where visible = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByVisible
public List<com.liferay.asset.kernel.model.AssetEntry> findByVisible(boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where visible = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByVisible
public List<com.liferay.asset.kernel.model.AssetEntry> findByVisible(boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where visible = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByVisible_First
public com.liferay.asset.kernel.model.AssetEntry findByVisible_First(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where visible = ?.- Specified by:
findByVisible_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByVisible_First
public com.liferay.asset.kernel.model.AssetEntry fetchByVisible_First(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where visible = ?.- Specified by:
fetchByVisible_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByVisible_Last
public com.liferay.asset.kernel.model.AssetEntry findByVisible_Last(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where visible = ?.- Specified by:
findByVisible_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByVisible_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByVisible_Last(boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where visible = ?.- Specified by:
fetchByVisible_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByVisible_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.- Specified by:
findByVisible_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entryvisible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByVisible_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByVisible_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByVisible
public void removeByVisible(boolean visible) Removes all the asset entries where visible = ? from the database.- Specified by:
removeByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visible
-
countByVisible
public int countByVisible(boolean visible) Returns the number of asset entries where visible = ?.- Specified by:
countByVisible
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
visible
- the visible- Returns:
- the number of matching asset entries
-
findByPublishDate
Returns all the asset entries where publishDate = ?.- Specified by:
findByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish date- Returns:
- the matching asset entries
-
findByPublishDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByPublishDate(Date publishDate, int start, int end) Returns a range of all the asset entries where publishDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByPublishDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByPublishDate(Date publishDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where publishDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByPublishDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByPublishDate(Date publishDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where publishDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByPublishDate_First
public com.liferay.asset.kernel.model.AssetEntry findByPublishDate_First(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where publishDate = ?.- Specified by:
findByPublishDate_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByPublishDate_First
public com.liferay.asset.kernel.model.AssetEntry fetchByPublishDate_First(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where publishDate = ?.- Specified by:
fetchByPublishDate_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByPublishDate_Last
public com.liferay.asset.kernel.model.AssetEntry findByPublishDate_Last(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where publishDate = ?.- Specified by:
findByPublishDate_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByPublishDate_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByPublishDate_Last(Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where publishDate = ?.- Specified by:
fetchByPublishDate_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByPublishDate_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.- Specified by:
findByPublishDate_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entrypublishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByPublishDate_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByPublishDate_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, Date publishDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByPublishDate
Removes all the asset entries where publishDate = ? from the database.- Specified by:
removeByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish date
-
countByPublishDate
Returns the number of asset entries where publishDate = ?.- Specified by:
countByPublishDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
publishDate
- the publish date- Returns:
- the number of matching asset entries
-
findByExpirationDate
Returns all the asset entries where expirationDate = ?.- Specified by:
findByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration date- Returns:
- the matching asset entries
-
findByExpirationDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByExpirationDate(Date expirationDate, int start, int end) Returns a range of all the asset entries where expirationDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByExpirationDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where expirationDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByExpirationDate
public List<com.liferay.asset.kernel.model.AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where expirationDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByExpirationDate_First
public com.liferay.asset.kernel.model.AssetEntry findByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where expirationDate = ?.- Specified by:
findByExpirationDate_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByExpirationDate_First
public com.liferay.asset.kernel.model.AssetEntry fetchByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where expirationDate = ?.- Specified by:
fetchByExpirationDate_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByExpirationDate_Last
public com.liferay.asset.kernel.model.AssetEntry findByExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where expirationDate = ?.- Specified by:
findByExpirationDate_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByExpirationDate_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where expirationDate = ?.- Specified by:
fetchByExpirationDate_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByExpirationDate_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.- Specified by:
findByExpirationDate_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entryexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByExpirationDate_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByExpirationDate_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByExpirationDate
Removes all the asset entries where expirationDate = ? from the database.- Specified by:
removeByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration date
-
countByExpirationDate
Returns the number of asset entries where expirationDate = ?.- Specified by:
countByExpirationDate
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
expirationDate
- the expiration date- Returns:
- the number of matching asset entries
-
findByLayoutUuid
Returns all the asset entries where layoutUuid = ?.- Specified by:
findByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuid- Returns:
- the matching asset entries
-
findByLayoutUuid
public List<com.liferay.asset.kernel.model.AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end) Returns a range of all the asset entries where layoutUuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByLayoutUuid
public List<com.liferay.asset.kernel.model.AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where layoutUuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByLayoutUuid
public List<com.liferay.asset.kernel.model.AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where layoutUuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByLayoutUuid_First
public com.liferay.asset.kernel.model.AssetEntry findByLayoutUuid_First(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where layoutUuid = ?.- Specified by:
findByLayoutUuid_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByLayoutUuid_First
public com.liferay.asset.kernel.model.AssetEntry fetchByLayoutUuid_First(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where layoutUuid = ?.- Specified by:
fetchByLayoutUuid_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByLayoutUuid_Last
public com.liferay.asset.kernel.model.AssetEntry findByLayoutUuid_Last(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where layoutUuid = ?.- Specified by:
findByLayoutUuid_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByLayoutUuid_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByLayoutUuid_Last(String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where layoutUuid = ?.- Specified by:
fetchByLayoutUuid_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByLayoutUuid_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.- Specified by:
findByLayoutUuid_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entrylayoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByLayoutUuid_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByLayoutUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, String layoutUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByLayoutUuid
Removes all the asset entries where layoutUuid = ? from the database.- Specified by:
removeByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuid
-
countByLayoutUuid
Returns the number of asset entries where layoutUuid = ?.- Specified by:
countByLayoutUuid
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
layoutUuid
- the layout uuid- Returns:
- the number of matching asset entries
-
findByG_CU
public com.liferay.asset.kernel.model.AssetEntry findByG_CU(long groupId, String classUuid) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entry where groupId = ? and classUuid = ? or throws aNoSuchEntryException
if it could not be found.- Specified by:
findByG_CU
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassUuid
- the class uuid- Returns:
- the matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByG_CU
Returns the asset entry where groupId = ? and classUuid = ? or returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByG_CU
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassUuid
- the class uuid- Returns:
- the matching asset entry, or
null
if a matching asset entry could not be found
-
fetchByG_CU
public com.liferay.asset.kernel.model.AssetEntry fetchByG_CU(long groupId, String classUuid, boolean useFinderCache) Returns the asset entry where groupId = ? and classUuid = ? or returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByG_CU
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassUuid
- the class uuiduseFinderCache
- whether to use the finder cache- Returns:
- the matching asset entry, or
null
if a matching asset entry could not be found
-
removeByG_CU
public com.liferay.asset.kernel.model.AssetEntry removeByG_CU(long groupId, String classUuid) throws com.liferay.asset.kernel.exception.NoSuchEntryException Removes the asset entry where groupId = ? and classUuid = ? from the database.- Specified by:
removeByG_CU
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassUuid
- the class uuid- Returns:
- the asset entry that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
-
countByG_CU
Returns the number of asset entries where groupId = ? and classUuid = ?.- Specified by:
countByG_CU
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassUuid
- the class uuid- Returns:
- the number of matching asset entries
-
findByC_CN
Returns all the asset entries where companyId = ? and classNameId = ?.- Specified by:
findByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the matching asset entries
-
findByC_CN
public List<com.liferay.asset.kernel.model.AssetEntry> findByC_CN(long companyId, long classNameId, int start, int end) Returns a range of all the asset entries where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of matching asset entries
-
findByC_CN
public List<com.liferay.asset.kernel.model.AssetEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name 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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByC_CN
public List<com.liferay.asset.kernel.model.AssetEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByC_CN_First
public com.liferay.asset.kernel.model.AssetEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where companyId = ? and classNameId = ?.- Specified by:
findByC_CN_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByC_CN_First
public com.liferay.asset.kernel.model.AssetEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where companyId = ? and classNameId = ?.- Specified by:
fetchByC_CN_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByC_CN_Last
public com.liferay.asset.kernel.model.AssetEntry findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where companyId = ? and classNameId = ?.- Specified by:
findByC_CN_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByC_CN_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where companyId = ? and classNameId = ?.- Specified by:
fetchByC_CN_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByC_CN_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByC_CN_PrevAndNext(long entryId, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where companyId = ? and classNameId = ?.- Specified by:
findByC_CN_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the current asset entrycompanyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByC_CN_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByC_CN_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByC_CN
public void removeByC_CN(long companyId, long classNameId) Removes all the asset entries where companyId = ? and classNameId = ? from the database.- Specified by:
removeByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name ID
-
countByC_CN
public int countByC_CN(long companyId, long classNameId) Returns the number of asset entries where companyId = ? and classNameId = ?.- Specified by:
countByC_CN
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the number of matching asset entries
-
findByC_C
public com.liferay.asset.kernel.model.AssetEntry findByC_C(long classNameId, long classPK) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entry where classNameId = ? and classPK = ? or throws aNoSuchEntryException
if it could not be found.- Specified by:
findByC_C
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByC_C
public com.liferay.asset.kernel.model.AssetEntry fetchByC_C(long classNameId, long classPK) Returns the asset entry where classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByC_C
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching asset entry, or
null
if a matching asset entry could not be found
-
fetchByC_C
public com.liferay.asset.kernel.model.AssetEntry fetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the asset entry where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByC_C
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching asset entry, or
null
if a matching asset entry could not be found
-
removeByC_C
public com.liferay.asset.kernel.model.AssetEntry removeByC_C(long classNameId, long classPK) throws com.liferay.asset.kernel.exception.NoSuchEntryException Removes the asset entry where classNameId = ? and classPK = ? from the database.- Specified by:
removeByC_C
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the asset entry that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
-
countByC_C
public int countByC_C(long classNameId, long classPK) Returns the number of asset entries where classNameId = ? and classPK = ?.- Specified by:
countByC_C
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching asset entries
-
findByG_C_V
public List<com.liferay.asset.kernel.model.AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible) Returns all the asset entries where groupId = ? and classNameId = ? and visible = ?.- Specified by:
findByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visible- Returns:
- the matching asset entries
-
findByG_C_V
public List<com.liferay.asset.kernel.model.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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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)- Returns:
- the range of matching asset entries
-
findByG_C_V
public List<com.liferay.asset.kernel.model.AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByG_C_V
public List<com.liferay.asset.kernel.model.AssetEntry> findByG_C_V(long groupId, long classNameId, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and visible = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByG_C_V_First
public com.liferay.asset.kernel.model.AssetEntry findByG_C_V_First(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.- Specified by:
findByG_C_V_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByG_C_V_First
public com.liferay.asset.kernel.model.AssetEntry fetchByG_C_V_First(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.- Specified by:
fetchByG_C_V_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByG_C_V_Last
public com.liferay.asset.kernel.model.AssetEntry findByG_C_V_Last(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.- Specified by:
findByG_C_V_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByG_C_V_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByG_C_V_Last(long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.- Specified by:
fetchByG_C_V_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visibleorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByG_C_V_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByG_C_V_PrevAndNext(long entryId, long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where groupId = ? and classNameId = ? and visible = ?.- Specified by:
findByG_C_V_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByG_C_V_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByG_C_V_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, long classNameId, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByG_C_V
public void removeByG_C_V(long groupId, long classNameId, boolean visible) Removes all the asset entries where groupId = ? and classNameId = ? and visible = ? from the database.- Specified by:
removeByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visible
-
countByG_C_V
public int countByG_C_V(long groupId, long classNameId, boolean visible) Returns the number of asset entries where groupId = ? and classNameId = ? and visible = ?.- Specified by:
countByG_C_V
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDvisible
- the visible- Returns:
- the number of matching asset entries
-
findByG_C_P_E
public List<com.liferay.asset.kernel.model.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 = ?.- Specified by:
findByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration date- Returns:
- the matching asset entries
-
findByG_C_P_E
public List<com.liferay.asset.kernel.model.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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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)- Returns:
- the range of matching asset entries
-
findByG_C_P_E
public List<com.liferay.asset.kernel.model.AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching asset entries
-
findByG_C_P_E
public List<com.liferay.asset.kernel.model.AssetEntry> findByG_C_P_E(long groupId, long classNameId, Date publishDate, Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching asset entries
-
findByG_C_P_E_First
public com.liferay.asset.kernel.model.AssetEntry findByG_C_P_E_First(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
findByG_C_P_E_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByG_C_P_E_First
public com.liferay.asset.kernel.model.AssetEntry fetchByG_C_P_E_First(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
fetchByG_C_P_E_First
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching asset entry, or
null
if a matching asset entry could not be found
-
findByG_C_P_E_Last
public com.liferay.asset.kernel.model.AssetEntry findByG_C_P_E_Last(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
findByG_C_P_E_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a matching asset entry could not be found
-
fetchByG_C_P_E_Last
public com.liferay.asset.kernel.model.AssetEntry fetchByG_C_P_E_Last(long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the last asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
fetchByG_C_P_E_Last
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching asset entry, or
null
if a matching asset entry could not be found
-
findByG_C_P_E_PrevAndNext
public com.liferay.asset.kernel.model.AssetEntry[] findByG_C_P_E_PrevAndNext(long entryId, long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entries before and after the current asset entry in the ordered set where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
findByG_C_P_E_PrevAndNext
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
getByG_C_P_E_PrevAndNext
protected com.liferay.asset.kernel.model.AssetEntry getByG_C_P_E_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.asset.kernel.model.AssetEntry assetEntry, long groupId, long classNameId, Date publishDate, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean previous) -
removeByG_C_P_E
Removes all the asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ? from the database.- Specified by:
removeByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration date
-
countByG_C_P_E
Returns the number of asset entries where groupId = ? and classNameId = ? and publishDate = ? and expirationDate = ?.- Specified by:
countByG_C_P_E
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
groupId
- the group IDclassNameId
- the class name IDpublishDate
- the publish dateexpirationDate
- the expiration date- Returns:
- the number of matching asset entries
-
cacheResult
public void cacheResult(com.liferay.asset.kernel.model.AssetEntry assetEntry) Caches the asset entry in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Overrides:
cacheResult
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
- Parameters:
assetEntry
- the asset entry
-
cacheResult
Caches the asset entries in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
assetEntries
- the asset entries
-
clearCache
public void clearCache()Clears the cache for all asset entries.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
clearCache
public void clearCache(com.liferay.asset.kernel.model.AssetEntry assetEntry) Clears the cache for the asset entry.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
-
cacheUniqueFindersCache
-
create
public com.liferay.asset.kernel.model.AssetEntry create(long entryId) Creates a new asset entry with the primary key. Does not add the asset entry to the database.- Specified by:
create
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key for the new asset entry- Returns:
- the new asset entry
-
remove
public com.liferay.asset.kernel.model.AssetEntry remove(long entryId) throws com.liferay.asset.kernel.exception.NoSuchEntryException Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the asset entry- Returns:
- the asset entry that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
remove
public com.liferay.asset.kernel.model.AssetEntry remove(Serializable primaryKey) throws com.liferay.asset.kernel.exception.NoSuchEntryException Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
remove
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
- Parameters:
primaryKey
- the primary key of the asset entry- Returns:
- the asset entry that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
removeImpl
protected com.liferay.asset.kernel.model.AssetEntry removeImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) - Overrides:
removeImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
updateImpl
public com.liferay.asset.kernel.model.AssetEntry updateImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) - Specified by:
updateImpl
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Overrides:
updateImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
findByPrimaryKey
public com.liferay.asset.kernel.model.AssetEntry findByPrimaryKey(Serializable primaryKey) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entry with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
findByPrimaryKey
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
- Parameters:
primaryKey
- the primary key of the asset entry- Returns:
- the asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
findByPrimaryKey
public com.liferay.asset.kernel.model.AssetEntry findByPrimaryKey(long entryId) throws com.liferay.asset.kernel.exception.NoSuchEntryException Returns the asset entry with the primary key or throws aNoSuchEntryException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the asset entry- Returns:
- the asset entry
- Throws:
com.liferay.asset.kernel.exception.NoSuchEntryException
- if a asset entry with the primary key could not be found
-
fetchByPrimaryKey
Returns the asset entry with the primary key or returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
fetchByPrimaryKey
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
- Parameters:
primaryKey
- the primary key of the asset entry- Returns:
- the asset entry, or
null
if a asset entry with the primary key could not be found
-
fetchByPrimaryKey
public com.liferay.asset.kernel.model.AssetEntry fetchByPrimaryKey(long entryId) Returns the asset entry with the primary key or returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
entryId
- the primary key of the asset entry- Returns:
- the asset entry, or
null
if a asset entry with the primary key could not be found
-
fetchByPrimaryKeys
public Map<Serializable,com.liferay.asset.kernel.model.AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - Specified by:
fetchByPrimaryKeys
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
fetchByPrimaryKeys
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
findAll
Returns all the asset entries.- Specified by:
findAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Returns:
- the asset entries
-
findAll
Returns a range of all the asset entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of asset entries
-
findAll
public List<com.liferay.asset.kernel.model.AssetEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns an ordered range of all the asset entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of asset entries
-
findAll
public List<com.liferay.asset.kernel.model.AssetEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
findAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of asset entries
-
removeAll
public void removeAll()Removes all the asset entries from the database.- Specified by:
removeAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
-
countAll
public int countAll()Returns the number of asset entries.- Specified by:
countAll
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Returns:
- the number of asset entries
-
getAssetTagPrimaryKeys
public long[] getAssetTagPrimaryKeys(long pk) Returns the primaryKeys of asset tags associated with the asset entry.- Specified by:
getAssetTagPrimaryKeys
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entry- Returns:
- long[] of the primaryKeys of asset tags associated with the asset entry
-
getAssetTags
Returns all the asset tags associated with the asset entry.- Specified by:
getAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entry- Returns:
- the asset tags associated with the asset entry
-
getAssetTags
Returns a range of all the asset tags associated with the asset entry.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
getAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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)- Returns:
- the range of asset tags associated with the asset entry
-
getAssetTags
public List<com.liferay.asset.kernel.model.AssetTag> getAssetTags(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns an ordered range of all the asset tags associated with the asset entry.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl
.- Specified by:
getAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of asset tags associated with the asset entry
-
getAssetTagsSize
public int getAssetTagsSize(long pk) Returns the number of asset tags associated with the asset entry.- Specified by:
getAssetTagsSize
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entry- Returns:
- the number of asset tags associated with the asset entry
-
containsAssetTag
public boolean containsAssetTag(long pk, long assetTagPK) Returnstrue
if the asset tag is associated with the asset entry.- Specified by:
containsAssetTag
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag- Returns:
true
if the asset tag is associated with the asset entry;false
otherwise
-
containsAssetTags
public boolean containsAssetTags(long pk) Returnstrue
if the asset entry has any asset tags associated with it.- Specified by:
containsAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entry to check for associations with asset tags- Returns:
true
if the asset entry has any asset tags associated with it;false
otherwise
-
addAssetTag
public boolean addAssetTag(long pk, long assetTagPK) Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetTag
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag- Returns:
true
if an association between the asset entry and the asset tag was added;false
if they were already associated
-
addAssetTag
public boolean addAssetTag(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetTag
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTag
- the asset tag- Returns:
true
if an association between the asset entry and the asset tag was added;false
if they were already associated
-
addAssetTags
public boolean addAssetTags(long pk, long[] assetTagPKs) Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags- Returns:
true
if at least one association between the asset entry and the asset tags was added;false
if they were all already associated
-
addAssetTags
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTags
- the asset tags- Returns:
true
if at least one association between the asset entry and the asset tags was added;false
if they were all already associated
-
clearAssetTags
public void clearAssetTags(long pk) Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entry to clear the associated asset tags from
-
removeAssetTag
public void removeAssetTag(long pk, long assetTagPK) Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetTag
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
-
removeAssetTag
public void removeAssetTag(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetTag
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTag
- the asset tag
-
removeAssetTags
public void removeAssetTags(long pk, long[] assetTagPKs) Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
-
removeAssetTags
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTags
- the asset tags
-
setAssetTags
public void setAssetTags(long pk, long[] assetTagPKs) Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags to be associated with the asset entry
-
setAssetTags
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setAssetTags
in interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence
- Parameters:
pk
- the primary key of the asset entryassetTags
- the asset tags to be associated with the asset entry
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
getPKDBName
- Overrides:
getPKDBName
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
getSelectSQL
- Overrides:
getSelectSQL
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
getMappingTableNames
- Specified by:
getMappingTableNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
getTableColumnsMap
- Specified by:
getTableColumnsMap
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
- Overrides:
getTableColumnsMap
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-
getTableName
- Specified by:
getTableName
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the asset entry persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry>
-