Class AssetTagPersistenceImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.persistence.AssetTagPersistence,com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.asset.kernel.service.persistence.AssetEntryPersistenceprotected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.model.AssetEntry> static 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 TypeMethodDescriptionbooleanaddAssetEntries(long pk, long[] assetEntryPKs) Adds an association between the asset tag and the asset entries.booleanaddAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Adds an association between the asset tag and the asset entries.booleanaddAssetEntry(long pk, long assetEntryPK) Adds an association between the asset tag and the asset entry.booleanaddAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry) Adds an association between the asset tag and the asset entry.voidInitializes the asset tag persistence.voidclearAssetEntries(long pk) Clears all associations between the asset tag and its asset entries.booleancontainsAssetEntries(long pk) Returnstrueif the asset tag has any asset entries associated with it.booleancontainsAssetEntry(long pk, long assetEntryPK) Returnstrueif the asset entry is associated with the asset tag.intcountByERC_G(String externalReferenceCode, long groupId) Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.intcountByG_LikeN(long[] groupIds, String name) Returns the number of asset tags where groupId = any ? and name LIKE ?.intcountByG_LikeN(long groupId, String name) Returns the number of asset tags where groupId = ? and name LIKE ?.intcountByG_N(long groupId, String name) Returns the number of asset tags where groupId = ? and name = ?.intcountByGroupId(long groupId) Returns the number of asset tags where groupId = ?.intcountByGroupId(long[] groupIds) Returns the number of asset tags where groupId = any ?.intcountByName(String name) Returns the number of asset tags where name = ?.intcountByName(String[] names) Returns the number of asset tags where name = any ?.intcountByUuid(String uuid) Returns the number of asset tags where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of asset tags where uuid = ? and companyId = ?.intcountByUUID_G(String uuid, long groupId) Returns the number of asset tags where uuid = ? and groupId = ?.com.liferay.asset.kernel.model.AssetTagcreate(long tagId) Creates a new asset tag with the primary key.voiddestroy()com.liferay.asset.kernel.model.AssetTagfetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the asset tag where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetTagfetchByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.com.liferay.asset.kernel.model.AssetTagfetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name = ?.com.liferay.asset.kernel.model.AssetTagfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.com.liferay.asset.kernel.model.AssetTagfetchByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.com.liferay.asset.kernel.model.AssetTagfetchByPrimaryKey(long tagId) Returns the asset tag with the primary key or returnsnullif it could not be found.com.liferay.asset.kernel.model.AssetTagfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.com.liferay.asset.kernel.model.AssetTagfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.com.liferay.asset.kernel.model.AssetTagfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the asset tag where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.asset.kernel.model.AssetTagfindByERC_G(String externalReferenceCode, long groupId) Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long[] groupIds, String name) Returns all the asset tags where groupId = any ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long[] groupIds, String name, int start, int end) Returns a range of all the asset tags where groupId = any ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long[] groupIds, String name, 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 where groupId = any ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long groupId, String name) Returns all the asset tags where groupId = ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long groupId, String name, int start, int end) Returns a range of all the asset tags where groupId = ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long groupId, String name, 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 where groupId = ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.com.liferay.asset.kernel.model.AssetTagfindByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.List<com.liferay.asset.kernel.model.AssetTag>findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name = ?.com.liferay.asset.kernel.model.AssetTagfindByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name = ?.List<com.liferay.asset.kernel.model.AssetTag>findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.List<com.liferay.asset.kernel.model.AssetTag>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ?.com.liferay.asset.kernel.model.AssetTagfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.List<com.liferay.asset.kernel.model.AssetTag>findByName(String[] names, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?, optionally using the finder cache.List<com.liferay.asset.kernel.model.AssetTag>findByName(String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?.com.liferay.asset.kernel.model.AssetTagfindByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.com.liferay.asset.kernel.model.AssetTagfindByPrimaryKey(long tagId) Returns the asset tag with the primary key or throws aNoSuchTagExceptionif it could not be found.List<com.liferay.asset.kernel.model.AssetTag>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ?.List<com.liferay.asset.kernel.model.AssetTag>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.com.liferay.asset.kernel.model.AssetTagfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.com.liferay.asset.kernel.model.AssetTagfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.com.liferay.asset.kernel.model.AssetTagfindByUUID_G(String uuid, long groupId) Returns the asset tag where uuid = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.List<com.liferay.asset.kernel.model.AssetEntry>getAssetEntries(long pk) Returns all the asset entries associated with the asset tag.List<com.liferay.asset.kernel.model.AssetEntry>getAssetEntries(long pk, int start, int end) Returns a range of all the asset entries associated with the asset tag.List<com.liferay.asset.kernel.model.AssetEntry>getAssetEntries(long pk, 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 associated with the asset tag.intgetAssetEntriesSize(long pk) Returns the number of asset entries associated with the asset tag.long[]getAssetEntryPrimaryKeys(long pk) Returns the primaryKeys of asset entries associated with the asset tag.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.AssetTagremove(long tagId) Removes the asset tag with the primary key from the database.voidremoveAssetEntries(long pk, long[] assetEntryPKs) Removes the association between the asset tag and the asset entries.voidremoveAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Removes the association between the asset tag and the asset entries.voidremoveAssetEntry(long pk, long assetEntryPK) Removes the association between the asset tag and the asset entry.voidremoveAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry) Removes the association between the asset tag and the asset entry.com.liferay.asset.kernel.model.AssetTagremoveByERC_G(String externalReferenceCode, long groupId) Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.voidremoveByG_LikeN(long groupId, String name) Removes all the asset tags where groupId = ? and name LIKE ? from the database.voidremoveByG_N(long groupId, String name) Removes all the asset tags where groupId = ? and name = ? from the database.voidremoveByGroupId(long groupId) Removes all the asset tags where groupId = ? from the database.voidremoveByName(String name) Removes all the asset tags where name = ? from the database.voidremoveByUuid(String uuid) Removes all the asset tags where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the asset tags where uuid = ? and companyId = ? from the database.com.liferay.asset.kernel.model.AssetTagremoveByUUID_G(String uuid, long groupId) Removes the asset tag where uuid = ? and groupId = ? from the database.protected com.liferay.asset.kernel.model.AssetTagremoveImpl(com.liferay.asset.kernel.model.AssetTag assetTag) voidsetAssetEntries(long pk, long[] assetEntryPKs) Sets the asset entries associated with the asset tag, removing and adding associations as necessary.voidsetAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Sets the asset entries associated with the asset tag, removing and adding associations as necessary.com.liferay.asset.kernel.model.AssetTagupdateImpl(com.liferay.asset.kernel.model.AssetTag assetTag) 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, 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.AssetTagPersistence
fetchByERC_G, fetchByUUID_G, findByG_N, findByG_N, findByG_N, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByName, findByName, findByName, findByName, findByName, findByName, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_CMethods 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, 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
-
assetEntryPersistence
@BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetEntryPersistence.class) protected com.liferay.asset.kernel.service.persistence.AssetEntryPersistence assetEntryPersistence -
assetTagToAssetEntryTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.model.AssetEntry> assetTagToAssetEntryTableMapper
-
-
Constructor Details
-
AssetTagPersistenceImpl
public AssetTagPersistenceImpl()
-
-
Method Details
-
findByUuid
public List<com.liferay.asset.kernel.model.AssetTag> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ?.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 fromAssetTagModelImpl.- Specified by:
findByUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByUuid_First
public com.liferay.asset.kernel.model.AssetTag findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where uuid = ?.- Specified by:
findByUuid_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByUuid_First
public com.liferay.asset.kernel.model.AssetTag fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
removeByUuid
Removes all the asset tags where uuid = ? from the database.- Specified by:
removeByUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of asset tags where uuid = ?.- Specified by:
countByUuidin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuid- Returns:
- the number of matching asset tags
-
findByUUID_G
public com.liferay.asset.kernel.model.AssetTag findByUUID_G(String uuid, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the asset tag where uuid = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.- Specified by:
findByUUID_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByUUID_G
public com.liferay.asset.kernel.model.AssetTag fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the asset tag where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByUUID_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
removeByUUID_G
public com.liferay.asset.kernel.model.AssetTag removeByUUID_G(String uuid, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException Removes the asset tag where uuid = ? and groupId = ? from the database.- Specified by:
removeByUUID_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the asset tag that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException
-
countByUUID_G
Returns the number of asset tags where uuid = ? and groupId = ?.- Specified by:
countByUUID_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching asset tags
-
findByUuid_C
public List<com.liferay.asset.kernel.model.AssetTag> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ? and 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 fromAssetTagModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByUuid_C_First
public com.liferay.asset.kernel.model.AssetTag findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByUuid_C_First
public com.liferay.asset.kernel.model.AssetTag fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
removeByUuid_C
Removes all the asset tags where uuid = ? and companyId = ? from the database.- Specified by:
removeByUuid_Cin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of asset tags where uuid = ? and companyId = ?.- Specified by:
countByUuid_Cin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching asset tags
-
findByGroupId
public List<com.liferay.asset.kernel.model.AssetTag> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags 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 fromAssetTagModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByGroupId_First
public com.liferay.asset.kernel.model.AssetTag findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where groupId = ?.- Specified by:
findByGroupId_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByGroupId_First
public com.liferay.asset.kernel.model.AssetTag fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.- Specified by:
fetchByGroupId_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
findByGroupId
public List<com.liferay.asset.kernel.model.AssetTag> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.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 fromAssetTagModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
removeByGroupId
public void removeByGroupId(long groupId) Removes all the asset tags where groupId = ? from the database.- Specified by:
removeByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group ID
-
countByGroupId
public int countByGroupId(long groupId) Returns the number of asset tags where groupId = ?.- Specified by:
countByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group ID- Returns:
- the number of matching asset tags
-
countByGroupId
public int countByGroupId(long[] groupIds) Returns the number of asset tags where groupId = any ?.- Specified by:
countByGroupIdin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDs- Returns:
- the number of matching asset tags
-
findByName
public List<com.liferay.asset.kernel.model.AssetTag> findByName(String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?.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 fromAssetTagModelImpl.- Specified by:
findByNamein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
name- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByName_First
public com.liferay.asset.kernel.model.AssetTag findByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where name = ?.- Specified by:
findByName_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByName_First
public com.liferay.asset.kernel.model.AssetTag fetchByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.- Specified by:
fetchByName_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
findByName
public List<com.liferay.asset.kernel.model.AssetTag> findByName(String[] names, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?, optionally using the finder cache.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 fromAssetTagModelImpl.- Specified by:
findByNamein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
names- the namesstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
removeByName
Removes all the asset tags where name = ? from the database.- Specified by:
removeByNamein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
name- the name
-
countByName
Returns the number of asset tags where name = ?.- Specified by:
countByNamein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
name- the name- Returns:
- the number of matching asset tags
-
countByName
Returns the number of asset tags where name = any ?.- Specified by:
countByNamein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
names- the names- Returns:
- the number of matching asset tags
-
findByG_N
public List<com.liferay.asset.kernel.model.AssetTag> findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name = ?.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 fromAssetTagModelImpl.- Specified by:
findByG_Nin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByG_N_First
public com.liferay.asset.kernel.model.AssetTag findByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where groupId = ? and name = ?.- Specified by:
findByG_N_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByG_N_First
public com.liferay.asset.kernel.model.AssetTag fetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name = ?.- Specified by:
fetchByG_N_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
removeByG_N
Removes all the asset tags where groupId = ? and name = ? from the database.- Specified by:
removeByG_Nin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the name
-
countByG_N
Returns the number of asset tags where groupId = ? and name = ?.- Specified by:
countByG_Nin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the number of matching asset tags
-
findByG_LikeN
Returns all the asset tags where groupId = ? and name LIKE ?.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, int start, int end) Returns a range of all the asset tags where groupId = ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)- Returns:
- the range of matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, 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 where groupId = ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
findByG_LikeN_First
public com.liferay.asset.kernel.model.AssetTag findByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.- Specified by:
findByG_LikeN_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByG_LikeN_First
public com.liferay.asset.kernel.model.AssetTag fetchByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.- Specified by:
fetchByG_LikeN_Firstin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag, or
nullif a matching asset tag could not be found
-
findByG_LikeN
Returns all the asset tags where groupId = any ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsname- the name- Returns:
- the matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end) Returns a range of all the asset tags where groupId = any ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)- Returns:
- the range of matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, 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 where groupId = any ? and name LIKE ?.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching asset tags
-
findByG_LikeN
public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.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 fromAssetTagModelImpl.- Specified by:
findByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsname- the namestart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (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 tags
-
removeByG_LikeN
Removes all the asset tags where groupId = ? and name LIKE ? from the database.- Specified by:
removeByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the name
-
countByG_LikeN
Returns the number of asset tags where groupId = ? and name LIKE ?.- Specified by:
countByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the number of matching asset tags
-
countByG_LikeN
Returns the number of asset tags where groupId = any ? and name LIKE ?.- Specified by:
countByG_LikeNin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
groupIds- the group IDsname- the name- Returns:
- the number of matching asset tags
-
findByERC_G
public com.liferay.asset.kernel.model.AssetTag findByERC_G(String externalReferenceCode, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.- Specified by:
findByERC_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a matching asset tag could not be found
-
fetchByERC_G
public com.liferay.asset.kernel.model.AssetTag fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the asset tag where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByERC_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
externalReferenceCode- the external reference codegroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
removeByERC_G
public com.liferay.asset.kernel.model.AssetTag removeByERC_G(String externalReferenceCode, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.- Specified by:
removeByERC_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the asset tag that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException
-
countByERC_G
Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.- Specified by:
countByERC_Gin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the number of matching asset tags
-
create
public com.liferay.asset.kernel.model.AssetTag create(long tagId) Creates a new asset tag with the primary key. Does not add the asset tag to the database.- Specified by:
createin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
tagId- the primary key for the new asset tag- Returns:
- the new asset tag
-
remove
public com.liferay.asset.kernel.model.AssetTag remove(long tagId) throws com.liferay.asset.kernel.exception.NoSuchTagException Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag that was removed
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a asset tag with the primary key could not be found
-
removeImpl
protected com.liferay.asset.kernel.model.AssetTag removeImpl(com.liferay.asset.kernel.model.AssetTag assetTag) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
updateImpl
public com.liferay.asset.kernel.model.AssetTag updateImpl(com.liferay.asset.kernel.model.AssetTag assetTag) - Specified by:
updateImplin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
findByPrimaryKey
public com.liferay.asset.kernel.model.AssetTag findByPrimaryKey(long tagId) throws com.liferay.asset.kernel.exception.NoSuchTagException Returns the asset tag with the primary key or throws aNoSuchTagExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag
- Throws:
com.liferay.asset.kernel.exception.NoSuchTagException- if a asset tag 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.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
fetchByPrimaryKey
public com.liferay.asset.kernel.model.AssetTag fetchByPrimaryKey(long tagId) Returns the asset tag with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag, or
nullif a asset tag with the primary key could not be found
-
getAssetEntryPrimaryKeys
public long[] getAssetEntryPrimaryKeys(long pk) Returns the primaryKeys of asset entries associated with the asset tag.- Specified by:
getAssetEntryPrimaryKeysin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tag- Returns:
- long[] of the primaryKeys of asset entries associated with the asset tag
-
getAssetEntries
Returns all the asset entries associated with the asset tag.- Specified by:
getAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tag- Returns:
- the asset entries associated with the asset tag
-
getAssetEntries
Returns a range of all the asset entries associated with the asset tag.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 fromAssetTagModelImpl.- Specified by:
getAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)- Returns:
- the range of asset entries associated with the asset tag
-
getAssetEntries
public List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(long pk, 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 associated with the asset tag.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 fromAssetTagModelImpl.- Specified by:
getAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagstart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of asset entries associated with the asset tag
-
getAssetEntriesSize
public int getAssetEntriesSize(long pk) Returns the number of asset entries associated with the asset tag.- Specified by:
getAssetEntriesSizein interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tag- Returns:
- the number of asset entries associated with the asset tag
-
containsAssetEntry
public boolean containsAssetEntry(long pk, long assetEntryPK) Returnstrueif the asset entry is associated with the asset tag.- Specified by:
containsAssetEntryin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPK- the primary key of the asset entry- Returns:
trueif the asset entry is associated with the asset tag;falseotherwise
-
containsAssetEntries
public boolean containsAssetEntries(long pk) Returnstrueif the asset tag has any asset entries associated with it.- Specified by:
containsAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tag to check for associations with asset entries- Returns:
trueif the asset tag has any asset entries associated with it;falseotherwise
-
addAssetEntry
public boolean addAssetEntry(long pk, long assetEntryPK) Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetEntryin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPK- the primary key of the asset entry- Returns:
trueif an association between the asset tag and the asset entry was added;falseif they were already associated
-
addAssetEntry
public boolean addAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry) Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetEntryin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntry- the asset entry- Returns:
trueif an association between the asset tag and the asset entry was added;falseif they were already associated
-
addAssetEntries
public boolean addAssetEntries(long pk, long[] assetEntryPKs) Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPKs- the primary keys of the asset entries- Returns:
trueif at least one association between the asset tag and the asset entries was added;falseif they were all already associated
-
addAssetEntries
public boolean addAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntries- the asset entries- Returns:
trueif at least one association between the asset tag and the asset entries was added;falseif they were all already associated
-
clearAssetEntries
public void clearAssetEntries(long pk) Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tag to clear the associated asset entries from
-
removeAssetEntry
public void removeAssetEntry(long pk, long assetEntryPK) Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetEntryin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPK- the primary key of the asset entry
-
removeAssetEntry
public void removeAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry) Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetEntryin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntry- the asset entry
-
removeAssetEntries
public void removeAssetEntries(long pk, long[] assetEntryPKs) Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPKs- the primary keys of the asset entries
-
removeAssetEntries
public void removeAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntries- the asset entries
-
setAssetEntries
public void setAssetEntries(long pk, long[] assetEntryPKs) Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntryPKs- the primary keys of the asset entries to be associated with the asset tag
-
setAssetEntries
Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setAssetEntriesin interfacecom.liferay.asset.kernel.service.persistence.AssetTagPersistence- Parameters:
pk- the primary key of the asset tagassetEntries- the asset entries to be associated with the asset tag
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
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.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
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.AssetTag>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the asset tag 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.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
-