Class AssetTagUtil
com.liferay.portlet.asset.service.persistence.impl.AssetTagPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddAssetEntries(long pk, long[] assetEntryPKs) Adds an association between the asset tag and the asset entries.static booleanaddAssetEntries(long pk, List<AssetEntry> assetEntries) Adds an association between the asset tag and the asset entries.static booleanaddAssetEntry(long pk, long assetEntryPK) Adds an association between the asset tag and the asset entry.static booleanaddAssetEntry(long pk, AssetEntry assetEntry) Adds an association between the asset tag and the asset entry.static voidcacheResult(AssetTag assetTag) Caches the asset tag in the entity cache if it is enabled.static voidcacheResult(List<AssetTag> assetTags) Caches the asset tags in the entity cache if it is enabled.static voidclearAssetEntries(long pk) Clears all associations between the asset tag and its asset entries.static voidstatic voidclearCache(AssetTag assetTag) static booleancontainsAssetEntries(long pk) Returnstrueif the asset tag has any asset entries associated with it.static booleancontainsAssetEntry(long pk, long assetEntryPK) Returnstrueif the asset entry is associated with the asset tag.static intcountAll()Returns the number of asset tags.static intcountByERC_G(String externalReferenceCode, long groupId) Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.static intcountByG_LikeN(long[] groupIds, String name) Returns the number of asset tags where groupId = any ? and name LIKE ?.static intcountByG_LikeN(long groupId, String name) Returns the number of asset tags where groupId = ? and name LIKE ?.static intcountByGroupId(long groupId) Returns the number of asset tags where groupId = ?.static intcountByGroupId(long[] groupIds) Returns the number of asset tags where groupId = any ?.static intcountByName(String name) Returns the number of asset tags where name = ?.static intcountByName(String[] names) Returns the number of asset tags where name = any ?.static intcountByUuid(String uuid) Returns the number of asset tags where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of asset tags where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of asset tags where uuid = ? and groupId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static AssetTagcreate(long tagId) Creates a new asset tag with the primary key.static AssetTagfetchByERC_G(String externalReferenceCode, long groupId) Returns the asset tag where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found.static 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.static AssetTagfetchByG_LikeN_First(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.static AssetTagfetchByG_LikeN_Last(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?.static AssetTagfetchByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.static AssetTagfetchByGroupId_Last(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ?.static AssetTagfetchByName_First(String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.static AssetTagfetchByName_Last(String name, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where name = ?.static AssetTagfetchByPrimaryKey(long tagId) Returns the asset tag with the primary key or returnsnullif it could not be found.static Map<Serializable,AssetTag> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static AssetTagfetchByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.static AssetTagfetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where uuid = ? and companyId = ?.static AssetTagfetchByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.static AssetTagfetchByUUID_G(String uuid, long groupId) Returns the asset tag where uuid = ? and groupId = ? or returnsnullif it could not be found.static 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.static AssetTagfetchByUuid_Last(String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where uuid = ?.findAll()Returns all the asset tags.findAll(int start, int end) Returns a range of all the asset tags.findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags.findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags.static AssetTagfindByERC_G(String externalReferenceCode, long groupId) Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.findByG_LikeN(long[] groupIds, String name) Returns all the asset tags where groupId = any ? and name LIKE ?.findByG_LikeN(long[] groupIds, String name, int start, int end) Returns a range of all the asset tags where groupId = any ? and name LIKE ?.findByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where groupId = any ? and name LIKE ?.findByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.findByG_LikeN(long groupId, String name) Returns all the asset tags where groupId = ? and name LIKE ?.findByG_LikeN(long groupId, String name, int start, int end) Returns a range of all the asset tags where groupId = ? and name LIKE ?.findByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.findByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.static AssetTagfindByG_LikeN_First(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.static AssetTagfindByG_LikeN_Last(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?.static AssetTag[]findByG_LikeN_PrevAndNext(long tagId, long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the asset tags before and after the current asset tag in the ordered set where groupId = ? and name LIKE ?.findByGroupId(long groupId) Returns all the asset tags where groupId = ?.findByGroupId(long[] groupIds) Returns all the asset tags where groupId = any ?.findByGroupId(long[] groupIds, int start, int end) Returns a range of all the asset tags where groupId = any ?.findByGroupId(long[] groupIds, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where groupId = any ?.findByGroupId(long[] groupIds, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.findByGroupId(long groupId, int start, int end) Returns a range of all the asset tags where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where groupId = ?.static AssetTagfindByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.static AssetTagfindByGroupId_Last(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ?.static AssetTag[]findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?.findByName(String name) Returns all the asset tags where name = ?.findByName(String[] names) Returns all the asset tags where name = any ?.findByName(String[] names, int start, int end) Returns a range of all the asset tags where name = any ?.findByName(String[] names, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where name = any ?.findByName(String[] names, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?, optionally using the finder cache.findByName(String name, int start, int end) Returns a range of all the asset tags where name = ?.findByName(String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where name = ?.findByName(String name, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where name = ?.static AssetTagfindByName_First(String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.static AssetTagfindByName_Last(String name, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where name = ?.static AssetTag[]findByName_PrevAndNext(long tagId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the asset tags before and after the current asset tag in the ordered set where name = ?.static AssetTagfindByPrimaryKey(long tagId) Returns the asset tag with the primary key or throws aNoSuchTagExceptionif it could not be found.findByUuid(String uuid) Returns all the asset tags where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the asset tags where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the asset tags where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the asset tags where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.static AssetTagfindByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.static AssetTagfindByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where uuid = ? and companyId = ?.static AssetTag[]findByUuid_C_PrevAndNext(long tagId, String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the asset tags before and after the current asset tag in the ordered set where uuid = ? and companyId = ?.static AssetTagfindByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.static AssetTagfindByUUID_G(String uuid, long groupId) Returns the asset tag where uuid = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.static AssetTagfindByUuid_Last(String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where uuid = ?.static AssetTag[]findByUuid_PrevAndNext(long tagId, String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the asset tags before and after the current asset tag in the ordered set where uuid = ?.findWithDynamicQuery(DynamicQuery dynamicQuery) findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<AssetTag> orderByComparator) static List<AssetEntry>getAssetEntries(long pk) Returns all the asset entries associated with the asset tag.static List<AssetEntry>getAssetEntries(long pk, int start, int end) Returns a range of all the asset entries associated with the asset tag.static List<AssetEntry>getAssetEntries(long pk, int start, int end, OrderByComparator<AssetEntry> orderByComparator) Returns an ordered range of all the asset entries associated with the asset tag.static intgetAssetEntriesSize(long pk) Returns the number of asset entries associated with the asset tag.static long[]getAssetEntryPrimaryKeys(long pk) Returns the primaryKeys of asset entries associated with the asset tag.static AssetTagPersistencestatic AssetTagremove(long tagId) Removes the asset tag with the primary key from the database.static voidRemoves all the asset tags from the database.static voidremoveAssetEntries(long pk, long[] assetEntryPKs) Removes the association between the asset tag and the asset entries.static voidremoveAssetEntries(long pk, List<AssetEntry> assetEntries) Removes the association between the asset tag and the asset entries.static voidremoveAssetEntry(long pk, long assetEntryPK) Removes the association between the asset tag and the asset entry.static voidremoveAssetEntry(long pk, AssetEntry assetEntry) Removes the association between the asset tag and the asset entry.static AssetTagremoveByERC_G(String externalReferenceCode, long groupId) Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.static voidremoveByG_LikeN(long groupId, String name) Removes all the asset tags where groupId = ? and name LIKE ? from the database.static voidremoveByGroupId(long groupId) Removes all the asset tags where groupId = ? from the database.static voidremoveByName(String name) Removes all the asset tags where name = ? from the database.static voidremoveByUuid(String uuid) Removes all the asset tags where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the asset tags where uuid = ? and companyId = ? from the database.static AssetTagremoveByUUID_G(String uuid, long groupId) Removes the asset tag where uuid = ? and groupId = ? from the database.static voidsetAssetEntries(long pk, long[] assetEntryPKs) Sets the asset entries associated with the asset tag, removing and adding associations as necessary.static voidsetAssetEntries(long pk, List<AssetEntry> assetEntries) Sets the asset entries associated with the asset tag, removing and adding associations as necessary.static voidsetPersistence(AssetTagPersistence persistence) static AssetTagstatic AssetTagupdate(AssetTag assetTag, ServiceContext serviceContext) static AssetTagupdateImpl(AssetTag assetTag)
-
Constructor Details
-
AssetTagUtil
public AssetTagUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
update
-
update
-
findByUuid
Returns all the asset tags where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching asset tags
-
findByUuid
Returns a 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.- Parameters:
uuid- the uuidstart- 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
-
findByUuid
public static List<AssetTag> findByUuid(String uuid, int start, int end, OrderByComparator<AssetTag> orderByComparator) 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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByUuid
public static List<AssetTag> findByUuid(String uuid, int start, int end, OrderByComparator<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.- 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 static AssetTag findByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the first asset tag in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByUuid_First
public static AssetTag fetchByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ?.- 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
-
findByUuid_Last
public static AssetTag findByUuid_Last(String uuid, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the last asset tag in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByUuid_Last
Returns the last asset tag in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag, or
nullif a matching asset tag could not be found
-
findByUuid_PrevAndNext
public static AssetTag[] findByUuid_PrevAndNext(long tagId, String uuid, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the asset tags before and after the current asset tag in the ordered set where uuid = ?.- Parameters:
tagId- the primary key of the current asset taguuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
removeByUuid
Removes all the asset tags where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of asset tags where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching asset tags
-
findByUUID_G
Returns the asset tag where uuid = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByUUID_G
Returns the asset tag where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
fetchByUUID_G
Returns the asset tag where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- 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
Removes the asset tag where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the asset tag that was removed
- Throws:
NoSuchTagException
-
countByUUID_G
Returns the number of asset tags where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching asset tags
-
findByUuid_C
Returns all the asset tags where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching asset tags
-
findByUuid_C
Returns a 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.- 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)- Returns:
- the range of matching asset tags
-
findByUuid_C
public static List<AssetTag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator) 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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByUuid_C
public static List<AssetTag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<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.- 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 static AssetTag findByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByUuid_C_First
public static AssetTag fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.- 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
-
findByUuid_C_Last
public static AssetTag findByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the last asset tag in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByUuid_C_Last
public static AssetTag fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag, or
nullif a matching asset tag could not be found
-
findByUuid_C_PrevAndNext
public static AssetTag[] findByUuid_C_PrevAndNext(long tagId, String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the asset tags before and after the current asset tag in the ordered set where uuid = ? and companyId = ?.- Parameters:
tagId- the primary key of the current asset taguuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
removeByUuid_C
Removes all the asset tags where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of asset tags where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching asset tags
-
findByGroupId
Returns all the asset tags where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching asset tags
-
findByGroupId
Returns a 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.- 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)- Returns:
- the range of matching asset tags
-
findByGroupId
public static List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) 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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByGroupId
public static List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator<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.- 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 static AssetTag findByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the first asset tag in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByGroupId_First
public static AssetTag fetchByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ?.- 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_Last
public static AssetTag findByGroupId_Last(long groupId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the last asset tag in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByGroupId_Last
public static AssetTag fetchByGroupId_Last(long groupId, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag, or
nullif a matching asset tag could not be found
-
findByGroupId_PrevAndNext
public static AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?.- Parameters:
tagId- the primary key of the current asset taggroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
findByGroupId
Returns all the asset tags where groupId = any ?.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.- Parameters:
groupIds- the group IDs- Returns:
- the matching asset tags
-
findByGroupId
Returns a range of all the asset tags where groupId = any ?.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.- 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)- Returns:
- the range of matching asset tags
-
findByGroupId
public static List<AssetTag> findByGroupId(long[] groupIds, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where groupId = any ?.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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByGroupId
public static List<AssetTag> findByGroupId(long[] groupIds, int start, int end, OrderByComparator<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.- 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 static void removeByGroupId(long groupId) Removes all the asset tags where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of asset tags where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching asset tags
-
countByGroupId
public static int countByGroupId(long[] groupIds) Returns the number of asset tags where groupId = any ?.- Parameters:
groupIds- the group IDs- Returns:
- the number of matching asset tags
-
findByName
Returns all the asset tags where name = ?.- Parameters:
name- the name- Returns:
- the matching asset tags
-
findByName
Returns a 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.- Parameters:
name- 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
-
findByName
public static List<AssetTag> findByName(String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) 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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByName
public static List<AssetTag> findByName(String name, int start, int end, OrderByComparator<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.- 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 static AssetTag findByName_First(String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the first asset tag in the ordered set where name = ?.- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByName_First
public static AssetTag fetchByName_First(String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where name = ?.- 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_Last
public static AssetTag findByName_Last(String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the last asset tag in the ordered set where name = ?.- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByName_Last
Returns the last asset tag in the ordered set where name = ?.- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag, or
nullif a matching asset tag could not be found
-
findByName_PrevAndNext
public static AssetTag[] findByName_PrevAndNext(long tagId, String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the asset tags before and after the current asset tag in the ordered set where name = ?.- Parameters:
tagId- the primary key of the current asset tagname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
findByName
Returns all the asset tags where name = any ?.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.- Parameters:
names- the names- Returns:
- the matching asset tags
-
findByName
Returns a range of all the asset tags where name = any ?.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.- Parameters:
names- the namesstart- 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
-
findByName
public static List<AssetTag> findByName(String[] names, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags where name = any ?.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.- 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)- Returns:
- the ordered range of matching asset tags
-
findByName
public static List<AssetTag> findByName(String[] names, int start, int end, OrderByComparator<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.- 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.- Parameters:
name- the name
-
countByName
Returns the number of asset tags where name = ?.- Parameters:
name- the name- Returns:
- the number of matching asset tags
-
countByName
Returns the number of asset tags where name = any ?.- Parameters:
names- the names- Returns:
- the number of matching asset tags
-
findByG_LikeN
Returns all the asset tags where groupId = ? and name LIKE ?.- Parameters:
groupId- the group IDname- the name- Returns:
- the matching asset tags
-
findByG_LikeN
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.- 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 static List<AssetTag> findByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<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.- 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 static List<AssetTag> findByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<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.- 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 static AssetTag findByG_LikeN_First(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByG_LikeN_First
public static AssetTag fetchByG_LikeN_First(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.- 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_Last
public static AssetTag findByG_LikeN_Last(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByG_LikeN_Last
public static AssetTag fetchByG_LikeN_Last(long groupId, String name, OrderByComparator<AssetTag> orderByComparator) Returns the last asset tag in the ordered set where groupId = ? and name LIKE ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset tag, or
nullif a matching asset tag could not be found
-
findByG_LikeN_PrevAndNext
public static AssetTag[] findByG_LikeN_PrevAndNext(long tagId, long groupId, String name, OrderByComparator<AssetTag> orderByComparator) throws NoSuchTagException Returns the asset tags before and after the current asset tag in the ordered set where groupId = ? and name LIKE ?.- Parameters:
tagId- the primary key of the current asset taggroupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
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.- Parameters:
groupIds- the group IDsname- the name- Returns:
- the matching asset tags
-
findByG_LikeN
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.- 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 static List<AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<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.- 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 static List<AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<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.- 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.- Parameters:
groupId- the group IDname- the name
-
countByG_LikeN
Returns the number of asset tags where groupId = ? and name LIKE ?.- 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 ?.- Parameters:
groupIds- the group IDsname- the name- Returns:
- the number of matching asset tags
-
findByERC_G
public static AssetTag findByERC_G(String externalReferenceCode, long groupId) throws NoSuchTagException Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws aNoSuchTagExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching asset tag
- Throws:
NoSuchTagException- if a matching asset tag could not be foundNoSuchTagException
-
fetchByERC_G
Returns the asset tag where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
fetchByERC_G
public static 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.- 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 static AssetTag removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchTagException Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the asset tag that was removed
- Throws:
NoSuchTagException
-
countByERC_G
Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the number of matching asset tags
-
cacheResult
Caches the asset tag in the entity cache if it is enabled.- Parameters:
assetTag- the asset tag
-
cacheResult
Caches the asset tags in the entity cache if it is enabled.- Parameters:
assetTags- the asset tags
-
create
Creates a new asset tag with the primary key. Does not add the asset tag to the database.- Parameters:
tagId- the primary key for the new asset tag- Returns:
- the new asset tag
-
remove
Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag that was removed
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
updateImpl
-
findByPrimaryKey
Returns the asset tag with the primary key or throws aNoSuchTagExceptionif it could not be found.- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag
- Throws:
NoSuchTagException- if a asset tag with the primary key could not be foundNoSuchTagException
-
fetchByPrimaryKey
Returns the asset tag with the primary key or returnsnullif it could not be found.- 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
-
findAll
Returns all the asset tags.- Returns:
- the asset tags
-
findAll
Returns a range of all the asset tags.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.- Parameters:
start- 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 tags
-
findAll
public static List<AssetTag> findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns an ordered range of all the asset tags.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.- Parameters:
start- 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 tags
-
findAll
public static List<AssetTag> findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset tags.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.- Parameters:
start- 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 asset tags
-
removeAll
public static void removeAll()Removes all the asset tags from the database. -
countAll
public static int countAll()Returns the number of asset tags.- Returns:
- the number of asset tags
-
getAssetEntryPrimaryKeys
public static long[] getAssetEntryPrimaryKeys(long pk) Returns the primaryKeys of asset entries associated with the asset tag.- 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.- 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.- 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 static List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator<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.- 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 static int getAssetEntriesSize(long pk) Returns the number of asset entries associated with the asset tag.- Parameters:
pk- the primary key of the asset tag- Returns:
- the number of asset entries associated with the asset tag
-
containsAssetEntry
public static boolean containsAssetEntry(long pk, long assetEntryPK) Returnstrueif the asset entry is associated with the asset tag.- 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 static boolean containsAssetEntries(long pk) Returnstrueif the asset tag has any asset entries associated with it.- 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 static 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.- 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
Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- 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 static 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.- 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
Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- 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 static 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.- Parameters:
pk- the primary key of the asset tag to clear the associated asset entries from
-
removeAssetEntry
public static 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.- Parameters:
pk- the primary key of the asset tagassetEntryPK- the primary key of the asset entry
-
removeAssetEntry
Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the asset tagassetEntry- the asset entry
-
removeAssetEntries
public static 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.- Parameters:
pk- the primary key of the asset tagassetEntryPKs- the primary keys of the asset entries
-
removeAssetEntries
Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the asset tagassetEntries- the asset entries
-
setAssetEntries
public static 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.- 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.- Parameters:
pk- the primary key of the asset tagassetEntries- the asset entries to be associated with the asset tag
-
getPersistence
-
setPersistence
-