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.AssetTagPersistencestatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionbooleanaddAssetTag(long pk, long assetTagPK) Adds an association between the asset entry and the asset tag.booleanaddAssetTag(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Adds an association between the asset entry and the asset tag.booleanaddAssetTags(long pk, long[] assetTagPKs) Adds an association between the asset entry and the asset tags.booleanaddAssetTags(long pk, List<com.liferay.asset.kernel.model.AssetTag> assetTags) Adds an association between the asset entry and the asset tags.voidInitializes the asset entry persistence.voidclearAssetTags(long pk) Clears all associations between the asset entry and its asset tags.booleancontainsAssetTag(long pk, long assetTagPK) Returnstrueif the asset tag is associated with the asset entry.booleancontainsAssetTags(long pk) Returnstrueif the asset entry has any asset tags associated with it.intcountByC_C(long classNameId, long classPK) Returns the number of asset entries where classNameId = ? and classPK = ?.intcountByC_CN(long companyId, long classNameId) Returns the number of asset entries where companyId = ? and classNameId = ?.intcountByClassUuid(String classUuid) Returns the number of asset entries where classUuid = ?.intcountByCompanyId(long companyId) Returns the number of asset entries where companyId = ?.intcountByExpirationDate(Date expirationDate) Returns the number of asset entries where expirationDate = ?.intcountByG_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 = ?.intcountByG_C_V(long groupId, long classNameId, boolean visible) Returns the number of asset entries where groupId = ? and classNameId = ? and visible = ?.intcountByG_CU(long groupId, String classUuid) Returns the number of asset entries where groupId = ? and classUuid = ?.intcountByGroupId(long groupId) Returns the number of asset entries where groupId = ?.intcountByLayoutUuid(String layoutUuid) Returns the number of asset entries where layoutUuid = ?.intcountByPublishDate(Date publishDate) Returns the number of asset entries where publishDate = ?.intcountByVisible(boolean visible) Returns the number of asset entries where visible = ?.com.liferay.asset.kernel.model.AssetEntrycreate(long entryId) Creates a new asset entry with the primary key.voiddestroy()com.liferay.asset.kernel.model.AssetEntryfetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the asset entry where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetEntryfetchByC_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.AssetEntryfetchByClassUuid_First(String classUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where classUuid = ?.com.liferay.asset.kernel.model.AssetEntryfetchByCompanyId_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.AssetEntryfetchByExpirationDate_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.AssetEntryfetchByG_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.AssetEntryfetchByG_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.AssetEntryfetchByG_CU(long groupId, String classUuid, boolean useFinderCache) Returns the asset entry where groupId = ? and classUuid = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetEntryfetchByGroupId_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.AssetEntryfetchByLayoutUuid_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.AssetEntryfetchByPrimaryKey(long entryId) Returns the asset entry with the primary key or returnsnullif it could not be found.com.liferay.asset.kernel.model.AssetEntryfetchByPublishDate_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.AssetEntryfetchByVisible_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.AssetEntryfindByC_C(long classNameId, long classPK) Returns the asset entry where classNameId = ? and classPK = ? or throws aNoSuchEntryExceptionif it could not be found.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.AssetEntryfindByC_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 = ?.List<com.liferay.asset.kernel.model.AssetEntry>findByClassUuid(String classUuid, 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 classUuid = ?.com.liferay.asset.kernel.model.AssetEntryfindByClassUuid_First(String classUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where classUuid = ?.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.AssetEntryfindByCompanyId_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 = ?.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.AssetEntryfindByExpirationDate_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 = ?.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.AssetEntryfindByG_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 = ?.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.AssetEntryfindByG_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.AssetEntryfindByG_CU(long groupId, String classUuid) Returns the asset entry where groupId = ? and classUuid = ? or throws aNoSuchEntryExceptionif it could not be found.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.AssetEntryfindByGroupId_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 = ?.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.AssetEntryfindByLayoutUuid_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.AssetEntryfindByPrimaryKey(long entryId) Returns the asset entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.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.AssetEntryfindByPublishDate_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 = ?.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.AssetEntryfindByVisible_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 = ?.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.intgetAssetTagsSize(long pk) Returns the number of asset tags associated with the asset entry.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.asset.kernel.model.AssetEntryremove(long entryId) Removes the asset entry with the primary key from the database.voidremoveAssetTag(long pk, long assetTagPK) Removes the association between the asset entry and the asset tag.voidremoveAssetTag(long pk, com.liferay.asset.kernel.model.AssetTag assetTag) Removes the association between the asset entry and the asset tag.voidremoveAssetTags(long pk, long[] assetTagPKs) Removes the association between the asset entry and the asset tags.voidremoveAssetTags(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.AssetEntryremoveByC_C(long classNameId, long classPK) Removes the asset entry where classNameId = ? and classPK = ? from the database.voidremoveByC_CN(long companyId, long classNameId) Removes all the asset entries where companyId = ? and classNameId = ? from the database.voidremoveByClassUuid(String classUuid) Removes all the asset entries where classUuid = ? from the database.voidremoveByCompanyId(long companyId) Removes all the asset entries where companyId = ? from the database.voidremoveByExpirationDate(Date expirationDate) Removes all the asset entries where expirationDate = ? from the database.voidremoveByG_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.voidremoveByG_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.AssetEntryremoveByG_CU(long groupId, String classUuid) Removes the asset entry where groupId = ? and classUuid = ? from the database.voidremoveByGroupId(long groupId) Removes all the asset entries where groupId = ? from the database.voidremoveByLayoutUuid(String layoutUuid) Removes all the asset entries where layoutUuid = ? from the database.voidremoveByPublishDate(Date publishDate) Removes all the asset entries where publishDate = ? from the database.voidremoveByVisible(boolean visible) Removes all the asset entries where visible = ? from the database.protected com.liferay.asset.kernel.model.AssetEntryremoveImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) voidsetAssetTags(long pk, long[] assetTagPKs) Sets the asset tags associated with the asset entry, removing and adding associations as necessary.voidsetAssetTags(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.AssetEntryupdateImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.asset.kernel.service.persistence.AssetEntryPersistence
fetchByC_C, fetchByG_CU, findByC_CN, findByC_CN, findByC_CN, findByClassUuid, findByClassUuid, findByClassUuid, findByCompanyId, findByCompanyId, findByCompanyId, findByExpirationDate, findByExpirationDate, findByExpirationDate, findByG_C_P_E, findByG_C_P_E, findByG_C_P_E, findByG_C_V, findByG_C_V, findByG_C_V, findByGroupId, findByGroupId, findByGroupId, findByLayoutUuid, findByLayoutUuid, findByLayoutUuid, findByPublishDate, findByPublishDate, findByPublishDate, findByVisible, findByVisible, findByVisibleMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, 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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByGroupIdin 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByGroupId
public void removeByGroupId(long groupId) Removes all the asset entries where groupId = ? from the database.- Specified by:
removeByGroupIdin 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:
countByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
groupId- the group ID- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByCompanyIdin 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the asset entries where companyId = ? from the database.- Specified by:
removeByCompanyIdin 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:
countByCompanyIdin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching asset entries
-
findByClassUuid
public List<com.liferay.asset.kernel.model.AssetEntry> findByClassUuid(String classUuid, 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 classUuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByClassUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
classUuid- the class 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
-
findByClassUuid_First
public com.liferay.asset.kernel.model.AssetEntry findByClassUuid_First(String classUuid, 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 classUuid = ?.- Specified by:
findByClassUuid_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
classUuid- the class 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
-
fetchByClassUuid_First
public com.liferay.asset.kernel.model.AssetEntry fetchByClassUuid_First(String classUuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator) Returns the first asset entry in the ordered set where classUuid = ?.- Specified by:
fetchByClassUuid_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
classUuid- the class uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset entry, or
nullif a matching asset entry could not be found
-
removeByClassUuid
Removes all the asset entries where classUuid = ? from the database.- Specified by:
removeByClassUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
classUuid- the class uuid
-
countByClassUuid
Returns the number of asset entries where classUuid = ?.- Specified by:
countByClassUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
classUuid- the class uuid- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByVisiblein 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByVisible
public void removeByVisible(boolean visible) Removes all the asset entries where visible = ? from the database.- Specified by:
removeByVisiblein 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:
countByVisiblein interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
visible- the visible- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByPublishDatein 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByPublishDate
Removes all the asset entries where publishDate = ? from the database.- Specified by:
removeByPublishDatein interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
publishDate- the publish date
-
countByPublishDate
Returns the number of asset entries where publishDate = ?.- Specified by:
countByPublishDatein interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
publishDate- the publish date- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByExpirationDatein 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByExpirationDate
Removes all the asset entries where expirationDate = ? from the database.- Specified by:
removeByExpirationDatein interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
expirationDate- the expiration date
-
countByExpirationDate
Returns the number of asset entries where expirationDate = ?.- Specified by:
countByExpirationDatein interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
expirationDate- the expiration date- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByLayoutUuidin 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
removeByLayoutUuid
Removes all the asset entries where layoutUuid = ? from the database.- Specified by:
removeByLayoutUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
layoutUuid- the layout uuid
-
countByLayoutUuid
Returns the number of asset entries where layoutUuid = ?.- Specified by:
countByLayoutUuidin 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 aNoSuchEntryExceptionif it could not be found.- Specified by:
findByG_CUin 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
public com.liferay.asset.kernel.model.AssetEntry fetchByG_CU(long groupId, String classUuid, boolean useFinderCache) Returns the asset entry where groupId = ? and classUuid = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByG_CUin 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
nullif 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_CUin 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_CUin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
groupId- the group IDclassUuid- the class uuid- Returns:
- the number 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByC_CNin 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
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_CNin 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_CNin 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 aNoSuchEntryExceptionif it could not be found.- Specified by:
findByC_Cin 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, boolean useFinderCache) Returns the asset entry where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_Cin 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
nullif 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_Cin 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_Cin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByG_C_Vin 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
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_Vin 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_Vin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
findByG_C_P_Ein 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_Firstin 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_Firstin 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
nullif a matching asset entry could not be found
-
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_Ein 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_Ein 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
-
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:
createin 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:
removein 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
-
removeImpl
protected com.liferay.asset.kernel.model.AssetEntry removeImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
updateImpl
public com.liferay.asset.kernel.model.AssetEntry updateImpl(com.liferay.asset.kernel.model.AssetEntry assetEntry) - Specified by:
updateImplin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
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 aNoSuchEntryExceptionif it could not be found.- Specified by:
findByPrimaryKeyin 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
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
fetchByPrimaryKey
public com.liferay.asset.kernel.model.AssetEntry fetchByPrimaryKey(long entryId) Returns the asset entry with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
entryId- the primary key of the asset entry- Returns:
- the asset entry, or
nullif a asset entry with the primary key could not be found
-
getAssetTagPrimaryKeys
public long[] getAssetTagPrimaryKeys(long pk) Returns the primaryKeys of asset tags associated with the asset entry.- Specified by:
getAssetTagPrimaryKeysin 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:
getAssetTagsin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
getAssetTagsin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryModelImpl.- Specified by:
getAssetTagsin 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:
getAssetTagsSizein 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) Returnstrueif the asset tag is associated with the asset entry.- Specified by:
containsAssetTagin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entryassetTagPK- the primary key of the asset tag- Returns:
trueif the asset tag is associated with the asset entry;falseotherwise
-
containsAssetTags
public boolean containsAssetTags(long pk) Returnstrueif the asset entry has any asset tags associated with it.- Specified by:
containsAssetTagsin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entry to check for associations with asset tags- Returns:
trueif the asset entry has any asset tags associated with it;falseotherwise
-
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:
addAssetTagin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entryassetTagPK- the primary key of the asset tag- Returns:
trueif an association between the asset entry and the asset tag was added;falseif 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:
addAssetTagin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entryassetTag- the asset tag- Returns:
trueif an association between the asset entry and the asset tag was added;falseif 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:
addAssetTagsin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entryassetTagPKs- the primary keys of the asset tags- Returns:
trueif at least one association between the asset entry and the asset tags was added;falseif 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:
addAssetTagsin interfacecom.liferay.asset.kernel.service.persistence.AssetEntryPersistence- Parameters:
pk- the primary key of the asset entryassetTags- the asset tags- Returns:
trueif at least one association between the asset entry and the asset tags was added;falseif 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:
clearAssetTagsin 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:
removeAssetTagin 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:
removeAssetTagin 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:
removeAssetTagsin 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:
removeAssetTagsin 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:
setAssetTagsin 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:
setAssetTagsin 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:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetEntry>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin 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:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetEntry,com.liferay.asset.kernel.exception.NoSuchEntryException>
-