Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.persistence
Class AssetTagUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.persistence.AssetTagUtil

@ProviderType
public class AssetTagUtil
extends Object

The persistence utility for the asset tag service. This utility wraps 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

See Also:
AssetTagPersistence, AssetTagPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetTagUtil()
           
 
Method Summary
static void addAssetEntries(long pk, List<AssetEntry> assetEntries)
          Adds an association between the asset tag and the asset entries.
static void addAssetEntries(long pk, long[] assetEntryPKs)
          Adds an association between the asset tag and the asset entries.
static void addAssetEntry(long pk, AssetEntry assetEntry)
          Adds an association between the asset tag and the asset entry.
static void addAssetEntry(long pk, long assetEntryPK)
          Adds an association between the asset tag and the asset entry.
static void cacheResult(AssetTag assetTag)
          Caches the asset tag in the entity cache if it is enabled.
static void cacheResult(List<AssetTag> assetTags)
          Caches the asset tags in the entity cache if it is enabled.
static void clearAssetEntries(long pk)
          Clears all associations between the asset tag and its asset entries.
static void clearCache()
           
static void clearCache(AssetTag assetTag)
           
static boolean containsAssetEntries(long pk)
          Returns true if the asset tag has any asset entries associated with it.
static boolean containsAssetEntry(long pk, long assetEntryPK)
          Returns true if the asset entry is associated with the asset tag.
static int countAll()
          Returns the number of asset tags.
static int countByG_LikeN(long[] groupIds, String name)
          Returns the number of asset tags where groupId = any ? and name LIKE ?.
static int countByG_LikeN(long groupId, String name)
          Returns the number of asset tags where groupId = ? and name LIKE ?.
static int countByG_N(long groupId, String name)
          Returns the number of asset tags where groupId = ? and name = ?.
static int countByGroupId(long groupId)
          Returns the number of asset tags where groupId = ?.
static int countByGroupId(long[] groupIds)
          Returns the number of asset tags where groupId = any ?.
static int countByUuid_C(String uuid, long companyId)
          Returns the number of asset tags where uuid = ? and companyId = ?.
static int countByUUID_G(String uuid, long groupId)
          Returns the number of asset tags where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Returns the number of asset tags where uuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetTag create(long tagId)
          Creates a new asset tag with the primary key.
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 ?.
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 ?.
static AssetTag fetchByG_N(long groupId, String name)
          Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found.
static AssetTag fetchByG_N(long groupId, String name, boolean retrieveFromCache)
          Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static AssetTag fetchByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ?.
static AssetTag fetchByGroupId_Last(long groupId, OrderByComparator<AssetTag> orderByComparator)
          Returns the last asset tag in the ordered set where groupId = ?.
static AssetTag fetchByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or returns null if it could not be found.
static Map<Serializable,AssetTag> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
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 = ?.
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 = ?.
static AssetTag fetchByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where uuid = ?.
static AssetTag fetchByUUID_G(String uuid, long groupId)
          Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found.
static AssetTag fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static AssetTag fetchByUuid_Last(String uuid, OrderByComparator<AssetTag> orderByComparator)
          Returns the last asset tag in the ordered set where uuid = ?.
static int filterCountByG_LikeN(long[] groupIds, String name)
          Returns the number of asset tags that the user has permission to view where groupId = any ? and name LIKE ?.
static int filterCountByG_LikeN(long groupId, String name)
          Returns the number of asset tags that the user has permission to view where groupId = ? and name LIKE ?.
static int filterCountByGroupId(long groupId)
          Returns the number of asset tags that the user has permission to view where groupId = ?.
static int filterCountByGroupId(long[] groupIds)
          Returns the number of asset tags that the user has permission to view where groupId = any ?.
static AssetTag[] filterFindByG_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 of asset tags that the user has permission to view where groupId = ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long[] groupIds, String name)
          Returns all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long[] groupIds, String name, int start, int end)
          Returns a range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long groupId, String name)
          Returns all the asset tags that the user has permission to view where groupId = ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long groupId, String name, int start, int end)
          Returns a range of all the asset tags that the user has permission to view where groupId = ? and name LIKE ?.
static List<AssetTag> filterFindByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ? and name LIKE ?.
static AssetTag[] filterFindByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator<AssetTag> orderByComparator)
          Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = ?.
static List<AssetTag> filterFindByGroupId(long groupId)
          Returns all the asset tags that the user has permission to view where groupId = ?.
static List<AssetTag> filterFindByGroupId(long[] groupIds)
          Returns all the asset tags that the user has permission to view where groupId = any ?.
static List<AssetTag> filterFindByGroupId(long[] groupIds, int start, int end)
          Returns a range of all the asset tags that the user has permission to view where groupId = any ?.
static List<AssetTag> filterFindByGroupId(long[] groupIds, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ?.
static List<AssetTag> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the asset tags that the user has permission to view where groupId = ?.
static List<AssetTag> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?.
static List<AssetTag> findAll()
          Returns all the asset tags.
static List<AssetTag> findAll(int start, int end)
          Returns a range of all the asset tags.
static List<AssetTag> findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags.
static List<AssetTag> findAll(int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags.
static AssetTag findByG_LikeN_First(long groupId, String name, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.
static AssetTag findByG_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 ?.
static List<AssetTag> findByG_LikeN(long[] groupIds, String name)
          Returns all the asset tags where groupId = any ? and name LIKE ?.
static List<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 ?.
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 ?.
static List<AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.
static List<AssetTag> findByG_LikeN(long groupId, String name)
          Returns all the asset tags where groupId = ? and name LIKE ?.
static List<AssetTag> findByG_LikeN(long groupId, String name, int start, int end)
          Returns a range of all the asset tags where groupId = ? and name LIKE ?.
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 ?.
static List<AssetTag> findByG_LikeN(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.
static AssetTag findByG_N(long groupId, String name)
          Returns the asset tag where groupId = ? and name = ? or throws a NoSuchTagException if it could not be found.
static AssetTag findByGroupId_First(long groupId, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ?.
static AssetTag findByGroupId_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 = ?.
static List<AssetTag> findByGroupId(long groupId)
          Returns all the asset tags where groupId = ?.
static List<AssetTag> findByGroupId(long[] groupIds)
          Returns all the asset tags where groupId = any ?.
static List<AssetTag> findByGroupId(long[] groupIds, int start, int end)
          Returns a range of all the asset tags where groupId = any ?.
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 ?.
static List<AssetTag> findByGroupId(long[] groupIds, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.
static List<AssetTag> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset tags where groupId = ?.
static List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags where groupId = ?.
static List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where groupId = ?.
static AssetTag findByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
static AssetTag findByUuid_C_First(String uuid, long companyId, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.
static AssetTag findByUuid_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 List<AssetTag> findByUuid_C(String uuid, long companyId)
          Returns all the asset tags where uuid = ? and companyId = ?.
static List<AssetTag> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the asset tags where uuid = ? and companyId = ?.
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 = ?.
static List<AssetTag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.
static AssetTag findByUuid_First(String uuid, OrderByComparator<AssetTag> orderByComparator)
          Returns the first asset tag in the ordered set where uuid = ?.
static AssetTag findByUUID_G(String uuid, long groupId)
          Returns the asset tag where uuid = ? and groupId = ? or throws a NoSuchTagException if it could not be found.
static AssetTag findByUuid_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 = ?.
static List<AssetTag> findByUuid(String uuid)
          Returns all the asset tags where uuid = ?.
static List<AssetTag> findByUuid(String uuid, int start, int end)
          Returns a range of all the asset tags where uuid = ?.
static List<AssetTag> findByUuid(String uuid, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags where uuid = ?.
static List<AssetTag> findByUuid(String uuid, int start, int end, OrderByComparator<AssetTag> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset tags where uuid = ?.
static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetTag> 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 int getAssetEntriesSize(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 Set<String> getBadColumnNames()
           
static AssetTagPersistence getPersistence()
           
static AssetTag remove(long tagId)
          Removes the asset tag with the primary key from the database.
static void removeAll()
          Removes all the asset tags from the database.
static void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
          Removes the association between the asset tag and the asset entries.
static void removeAssetEntries(long pk, long[] assetEntryPKs)
          Removes the association between the asset tag and the asset entries.
static void removeAssetEntry(long pk, AssetEntry assetEntry)
          Removes the association between the asset tag and the asset entry.
static void removeAssetEntry(long pk, long assetEntryPK)
          Removes the association between the asset tag and the asset entry.
static void removeByG_LikeN(long groupId, String name)
          Removes all the asset tags where groupId = ? and name LIKE ? from the database.
static AssetTag removeByG_N(long groupId, String name)
          Removes the asset tag where groupId = ? and name = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the asset tags where groupId = ? from the database.
static void removeByUuid_C(String uuid, long companyId)
          Removes all the asset tags where uuid = ? and companyId = ? from the database.
static AssetTag removeByUUID_G(String uuid, long groupId)
          Removes the asset tag where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the asset tags where uuid = ? from the database.
static void setAssetEntries(long pk, List<AssetEntry> assetEntries)
          Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
static void setAssetEntries(long pk, long[] assetEntryPKs)
          Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
static AssetTag update(AssetTag assetTag)
           
static AssetTag update(AssetTag assetTag, ServiceContext serviceContext)
           
static AssetTag updateImpl(AssetTag assetTag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagUtil

public AssetTagUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(AssetTag assetTag)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<AssetTag> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static AssetTag update(AssetTag assetTag)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static AssetTag update(AssetTag assetTag,
                              ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<AssetTag> findByUuid(String uuid)
Returns all the asset tags where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching asset tags

findByUuid

public static List<AssetTag> findByUuid(String uuid,
                                        int start,
                                        int end)
Returns a range of all the asset tags where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags

findByUuid

public static List<AssetTag> findByUuid(String uuid,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetTag> orderByComparator,
                                        boolean retrieveFromCache)
Returns an ordered range of all the asset tags where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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 uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag, or null if 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 uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

fetchByUuid_Last

public static AssetTag fetchByUuid_Last(String uuid,
                                        OrderByComparator<AssetTag> orderByComparator)
Returns the last asset tag in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag, or null if 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 tag
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

removeByUuid

public static void removeByUuid(String uuid)
Removes all the asset tags where uuid = ? from the database.

Parameters:
uuid - the uuid

countByUuid

public static int countByUuid(String uuid)
Returns the number of asset tags where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching asset tags

findByUUID_G

public static AssetTag findByUUID_G(String uuid,
                                    long groupId)
                             throws NoSuchTagException
Returns the asset tag where uuid = ? and groupId = ? or throws a NoSuchTagException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

fetchByUUID_G

public static AssetTag fetchByUUID_G(String uuid,
                                     long groupId)
Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching asset tag, or null if a matching asset tag could not be found

fetchByUUID_G

public static AssetTag fetchByUUID_G(String uuid,
                                     long groupId,
                                     boolean retrieveFromCache)
Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset tag, or null if a matching asset tag could not be found

removeByUUID_G

public static AssetTag removeByUUID_G(String uuid,
                                      long groupId)
                               throws NoSuchTagException
Removes the asset tag where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the asset tag that was removed
Throws:
NoSuchTagException

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
Returns the number of asset tags where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching asset tags

findByUuid_C

public static List<AssetTag> findByUuid_C(String uuid,
                                          long companyId)
Returns all the asset tags where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching asset tags

findByUuid_C

public static List<AssetTag> findByUuid_C(String uuid,
                                          long companyId,
                                          int start,
                                          int end)
Returns a range of all the asset tags where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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 retrieveFromCache)
Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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 uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag, or null if 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 uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag, or null if 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 tag
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

removeByUuid_C

public static void removeByUuid_C(String uuid,
                                  long companyId)
Removes all the asset tags where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public static int countByUuid_C(String uuid,
                                long companyId)
Returns the number of asset tags where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching asset tags

findByGroupId

public static List<AssetTag> findByGroupId(long groupId)
Returns all the asset tags where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching asset tags

findByGroupId

public static List<AssetTag> findByGroupId(long groupId,
                                           int start,
                                           int end)
Returns a range of all the asset tags where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags

findByGroupId

public static List<AssetTag> findByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetTag> orderByComparator,
                                           boolean retrieveFromCache)
Returns an ordered range of all the asset tags where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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 ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag, or null if 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 ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag, or null if 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 tag
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId)
Returns all the asset tags that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching asset tags that the user has permission to view

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end)
Returns a range of all the asset tags that the user has permission to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the range of matching asset tags that the user has permission to view

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags that the user has permission to view

filterFindByGroupId_PrevAndNext

public static AssetTag[] filterFindByGroupId_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 of asset tags that the user has permission to view where groupId = ?.

Parameters:
tagId - the primary key of the current asset tag
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long[] groupIds)
Returns all the asset tags that the user has permission to view where groupId = any ?.

Parameters:
groupIds - the group IDs
Returns:
the matching asset tags that the user has permission to view

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long[] groupIds,
                                                 int start,
                                                 int end)
Returns a range of all the asset tags that the user has permission to view where groupId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the range of matching asset tags that the user has permission to view

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long[] groupIds,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags that the user has permission to view

findByGroupId

public static List<AssetTag> findByGroupId(long[] groupIds)
Returns all the asset tags where groupId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
Returns:
the matching asset tags

findByGroupId

public static List<AssetTag> findByGroupId(long[] groupIds,
                                           int start,
                                           int end)
Returns a range of all the asset tags where groupId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags

findByGroupId

public static List<AssetTag> findByGroupId(long[] groupIds,
                                           int start,
                                           int end,
                                           OrderByComparator<AssetTag> orderByComparator,
                                           boolean retrieveFromCache)
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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
Returns the number of asset tags that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching asset tags that the user has permission to view

filterCountByGroupId

public static int filterCountByGroupId(long[] groupIds)
Returns the number of asset tags that the user has permission to view where groupId = any ?.

Parameters:
groupIds - the group IDs
Returns:
the number of matching asset tags that the user has permission to view

findByG_N

public static AssetTag findByG_N(long groupId,
                                 String name)
                          throws NoSuchTagException
Returns the asset tag where groupId = ? and name = ? or throws a NoSuchTagException if it could not be found.

Parameters:
groupId - the group ID
name - the name
Returns:
the matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

fetchByG_N

public static AssetTag fetchByG_N(long groupId,
                                  String name)
Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
name - the name
Returns:
the matching asset tag, or null if a matching asset tag could not be found

fetchByG_N

public static AssetTag fetchByG_N(long groupId,
                                  String name,
                                  boolean retrieveFromCache)
Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
name - the name
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset tag, or null if a matching asset tag could not be found

removeByG_N

public static AssetTag removeByG_N(long groupId,
                                   String name)
                            throws NoSuchTagException
Removes the asset tag where groupId = ? and name = ? from the database.

Parameters:
groupId - the group ID
name - the name
Returns:
the asset tag that was removed
Throws:
NoSuchTagException

countByG_N

public static int countByG_N(long groupId,
                             String name)
Returns the number of asset tags where groupId = ? and name = ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching asset tags

findByG_LikeN

public static List<AssetTag> findByG_LikeN(long groupId,
                                           String name)
Returns all the asset tags where groupId = ? and name LIKE ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the matching asset tags

findByG_LikeN

public static List<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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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 retrieveFromCache)
Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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 ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag, or null if 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 ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found

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 ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag, or null if 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 tag
groupId - the group ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long groupId,
                                                 String name)
Returns all the asset tags that the user has permission to view where groupId = ? and name LIKE ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the matching asset tags that the user has permission to view

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long groupId,
                                                 String name,
                                                 int start,
                                                 int end)
Returns a range of all the asset tags that the user has permission to view where groupId = ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the range of matching asset tags that the user has permission to view

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long groupId,
                                                 String name,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags that the user has permission to view

filterFindByG_LikeN_PrevAndNext

public static AssetTag[] filterFindByG_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 of asset tags that the user has permission to view where groupId = ? and name LIKE ?.

Parameters:
tagId - the primary key of the current asset tag
groupId - the group ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long[] groupIds,
                                                 String name)
Returns all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.

Parameters:
groupIds - the group IDs
name - the name
Returns:
the matching asset tags that the user has permission to view

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long[] groupIds,
                                                 String name,
                                                 int start,
                                                 int end)
Returns a range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the range of matching asset tags that the user has permission to view

filterFindByG_LikeN

public static List<AssetTag> filterFindByG_LikeN(long[] groupIds,
                                                 String name,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags that the user has permission to view where groupId = any ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tags that the user has permission to view

findByG_LikeN

public static List<AssetTag> findByG_LikeN(long[] groupIds,
                                           String name)
Returns all the asset tags where groupId = any ? and name LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
name - the name
Returns:
the matching asset tags

findByG_LikeN

public static List<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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
name - the name
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupIds - the group IDs
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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 retrieveFromCache)
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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
name - the name
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset tags

removeByG_LikeN

public static void removeByG_LikeN(long groupId,
                                   String name)
Removes all the asset tags where groupId = ? and name LIKE ? from the database.

Parameters:
groupId - the group ID
name - the name

countByG_LikeN

public static int countByG_LikeN(long groupId,
                                 String name)
Returns the number of asset tags where groupId = ? and name LIKE ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching asset tags

countByG_LikeN

public static int countByG_LikeN(long[] groupIds,
                                 String name)
Returns the number of asset tags where groupId = any ? and name LIKE ?.

Parameters:
groupIds - the group IDs
name - the name
Returns:
the number of matching asset tags

filterCountByG_LikeN

public static int filterCountByG_LikeN(long groupId,
                                       String name)
Returns the number of asset tags that the user has permission to view where groupId = ? and name LIKE ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching asset tags that the user has permission to view

filterCountByG_LikeN

public static int filterCountByG_LikeN(long[] groupIds,
                                       String name)
Returns the number of asset tags that the user has permission to view where groupId = any ? and name LIKE ?.

Parameters:
groupIds - the group IDs
name - the name
Returns:
the number of matching asset tags that the user has permission to view

cacheResult

public static void cacheResult(AssetTag assetTag)
Caches the asset tag in the entity cache if it is enabled.

Parameters:
assetTag - the asset tag

cacheResult

public static void cacheResult(List<AssetTag> assetTags)
Caches the asset tags in the entity cache if it is enabled.

Parameters:
assetTags - the asset tags

create

public static AssetTag create(long tagId)
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

public static AssetTag remove(long tagId)
                       throws NoSuchTagException
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 found

updateImpl

public static AssetTag updateImpl(AssetTag assetTag)

findByPrimaryKey

public static AssetTag findByPrimaryKey(long tagId)
                                 throws NoSuchTagException
Returns the asset tag with the primary key or throws a NoSuchTagException if 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 found

fetchByPrimaryKey

public static AssetTag fetchByPrimaryKey(long tagId)
Returns the asset tag with the primary key or returns null if it could not be found.

Parameters:
tagId - the primary key of the asset tag
Returns:
the asset tag, or null if a asset tag with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,AssetTag> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<AssetTag> findAll()
Returns all the asset tags.

Returns:
the asset tags

findAll

public static List<AssetTag> findAll(int start,
                                     int end)
Returns a range of all the asset tags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset tags

findAll

public static List<AssetTag> findAll(int start,
                                     int end,
                                     OrderByComparator<AssetTag> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the asset tags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from 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

public static List<AssetEntry> getAssetEntries(long pk)
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

public static List<AssetEntry> getAssetEntries(long pk,
                                               int start,
                                               int end)
Returns a range of all the asset entries associated with the asset tag.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the asset tag
start - the lower bound of the range of asset tags
end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the asset tag
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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)
Returns true if the asset entry is associated with the asset tag.

Parameters:
pk - the primary key of the asset tag
assetEntryPK - the primary key of the asset entry
Returns:
true if the asset entry is associated with the asset tag; false otherwise

containsAssetEntries

public static boolean containsAssetEntries(long pk)
Returns true if 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:
true if the asset tag has any asset entries associated with it; false otherwise

addAssetEntry

public static void 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 tag
assetEntryPK - the primary key of the asset entry

addAssetEntry

public static void addAssetEntry(long pk,
                                 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.

Parameters:
pk - the primary key of the asset tag
assetEntry - the asset entry

addAssetEntries

public static void 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 tag
assetEntryPKs - the primary keys of the asset entries

addAssetEntries

public static void addAssetEntries(long pk,
                                   List<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.

Parameters:
pk - the primary key of the asset tag
assetEntries - the asset entries

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 tag
assetEntryPK - the primary key of the asset entry

removeAssetEntry

public static void removeAssetEntry(long pk,
                                    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.

Parameters:
pk - the primary key of the asset tag
assetEntry - 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 tag
assetEntryPKs - the primary keys of the asset entries

removeAssetEntries

public static void removeAssetEntries(long pk,
                                      List<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.

Parameters:
pk - the primary key of the asset tag
assetEntries - 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 tag
assetEntryPKs - the primary keys of the asset entries to be associated with the asset tag

setAssetEntries

public static void setAssetEntries(long pk,
                                   List<AssetEntry> assetEntries)
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 tag
assetEntries - the asset entries to be associated with the asset tag

getBadColumnNames

public static Set<String> getBadColumnNames()

getPersistence

public static AssetTagPersistence getPersistence()

Liferay 7.0-ce-b4