Liferay 6.0.5

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

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

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.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this 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 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)
          Determines whether the asset tag has any asset entries associated with it.
static boolean containsAssetEntry(long pk, long assetEntryPK)
          Determines whether the asset entry is associated with the asset tag.
static int countAll()
          Counts all the asset tags.
static int countByGroupId(long groupId)
          Counts all the asset tags where groupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetTag create(long tagId)
          Creates a new asset tag with the primary key.
static AssetTag fetchByPrimaryKey(long tagId)
          Finds the asset tag with the primary key or returns null if it could not be found.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the asset tags where groupId = ?.
static List<AssetTag> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the asset tags where groupId = ?.
static List<AssetTag> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the asset tags where groupId = ?.
static List<AssetTag> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the asset tags where groupId = ?.
static List<AssetTag> findAll()
          Finds all the asset tags.
static List<AssetTag> findAll(int start, int end)
          Finds a range of all the asset tags.
static List<AssetTag> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tags.
static AssetTag findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first asset tag in the ordered set where groupId = ?.
static AssetTag findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last asset tag in the ordered set where groupId = ?.
static AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator orderByComparator)
          Finds the asset tags before and after the current asset tag in the ordered set where groupId = ?.
static List<AssetTag> findByGroupId(long groupId)
          Finds all the asset tags where groupId = ?.
static List<AssetTag> findByGroupId(long groupId, int start, int end)
          Finds a range of all the asset tags where groupId = ?.
static List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tags where groupId = ?.
static AssetTag findByPrimaryKey(long tagId)
          Finds the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
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 orderByComparator)
           
static List<AssetEntry> getAssetEntries(long pk)
          Gets all the asset entries associated with the asset tag.
static List<AssetEntry> getAssetEntries(long pk, int start, int end)
          Gets a range of all the asset entries associated with the asset tag.
static List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset entries associated with the asset tag.
static int getAssetEntriesSize(long pk)
          Gets the number of asset entries associated with the asset tag.
static AssetTagPersistence getPersistence()
           
static AssetTag remove(AssetTag assetTag)
           
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 removeByGroupId(long groupId)
          Removes all the asset tags where groupId = ? 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.
 void setPersistence(AssetTagPersistence persistence)
           
static AssetTag update(AssetTag assetTag, boolean merge)
           
static AssetTag update(AssetTag assetTag, boolean merge, ServiceContext serviceContext)
           
static AssetTag updateImpl(AssetTag assetTag, boolean merge)
           
 
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 long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

public static AssetTag remove(AssetTag assetTag)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static AssetTag update(AssetTag assetTag,
                              boolean merge)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

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

cacheResult

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

Parameters:
assetTag - the asset tag to cache

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 to cache

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 SystemException,
                              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 to remove
Returns:
the asset tag that was removed
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static AssetTag updateImpl(AssetTag assetTag,
                                  boolean merge)
                           throws SystemException
Throws:
SystemException

findByPrimaryKey

public static AssetTag findByPrimaryKey(long tagId)
                                 throws SystemException,
                                        NoSuchTagException
Finds 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 to find
Returns:
the asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static AssetTag fetchByPrimaryKey(long tagId)
                                  throws SystemException
Finds 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 to find
Returns:
the asset tag, or null if a asset tag with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group id to search with
Returns:
the matching asset tags
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<AssetTag> findByGroupId(long groupId,
                                           int start,
                                           int end)
                                    throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
Returns:
the range of matching asset tags
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<AssetTag> findByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset tags
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static AssetTag findByGroupId_First(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchTagException
Finds the first asset tag in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static AssetTag findByGroupId_Last(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchTagException
Finds the last asset tag in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset tag
Throws:
NoSuchTagException - if a matching asset tag could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static AssetTag[] findByGroupId_PrevAndNext(long tagId,
                                                   long groupId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchTagException
Finds the asset tags before and after the current asset tag in the ordered set 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.

Parameters:
tagId - the primary key of the current asset tag
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset tag
Throws:
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId)
                                          throws SystemException
Filters by the user's permissions and finds all the asset tags where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching asset tags that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
Returns:
the range of matching asset tags that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<AssetTag> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset tags that the user has permission to view
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetTag> findAll()
                              throws SystemException
Finds all the asset tags.

Returns:
the asset tags
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetTag> findAll(int start,
                                     int end)
                              throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
Returns:
the range of asset tags
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetTag> findAll(int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset tags
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the asset tags where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the asset tags from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the asset tags where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching asset tags
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the asset tags where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching asset tags that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the asset tags.

Returns:
the number of asset tags
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk)
                                        throws SystemException
Gets all the asset entries associated with the asset tag.

Parameters:
pk - the primary key of the asset tag to get the associated asset entries for
Returns:
the asset entries associated with the asset tag
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk,
                                               int start,
                                               int end)
                                        throws SystemException
Gets 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.

Parameters:
pk - the primary key of the asset tag to get the associated asset entries for
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
Returns:
the range of asset entries associated with the asset tag
Throws:
SystemException - if a system exception occurred

getAssetEntries

public static List<AssetEntry> getAssetEntries(long pk,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Gets 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.

Parameters:
pk - the primary key of the asset tag to get the associated asset entries for
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset entries associated with the asset tag
Throws:
SystemException - if a system exception occurred

getAssetEntriesSize

public static int getAssetEntriesSize(long pk)
                               throws SystemException
Gets the number of asset entries associated with the asset tag.

Parameters:
pk - the primary key of the asset tag to get the number of associated asset entries for
Returns:
the number of asset entries associated with the asset tag
Throws:
SystemException - if a system exception occurred

containsAssetEntry

public static boolean containsAssetEntry(long pk,
                                         long assetEntryPK)
                                  throws SystemException
Determines whether 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:
whether the asset entry is associated with the asset tag
Throws:
SystemException - if a system exception occurred

containsAssetEntries

public static boolean containsAssetEntries(long pk)
                                    throws SystemException
Determines whether 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:
whether the asset tag has any asset entries associated with it
Throws:
SystemException - if a system exception occurred

addAssetEntry

public static void addAssetEntry(long pk,
                                 long assetEntryPK)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetEntry

public static void addAssetEntry(long pk,
                                 AssetEntry assetEntry)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetEntries

public static void addAssetEntries(long pk,
                                   long[] assetEntryPKs)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetEntries

public static void addAssetEntries(long pk,
                                   List<AssetEntry> assetEntries)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearAssetEntries

public static void clearAssetEntries(long pk)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAssetEntry

public static void removeAssetEntry(long pk,
                                    long assetEntryPK)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAssetEntry

public static void removeAssetEntry(long pk,
                                    AssetEntry assetEntry)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAssetEntries

public static void removeAssetEntries(long pk,
                                      long[] assetEntryPKs)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAssetEntries

public static void removeAssetEntries(long pk,
                                      List<AssetEntry> assetEntries)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

setAssetEntries

public static void setAssetEntries(long pk,
                                   long[] assetEntryPKs)
                            throws SystemException
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 to set the associations for
assetEntryPKs - the primary keys of the asset entries to be associated with the asset tag
Throws:
SystemException - if a system exception occurred

setAssetEntries

public static void setAssetEntries(long pk,
                                   List<AssetEntry> assetEntries)
                            throws SystemException
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 to set the associations for
assetEntries - the asset entries to be associated with the asset tag
Throws:
SystemException - if a system exception occurred

getPersistence

public static AssetTagPersistence getPersistence()

setPersistence

public void setPersistence(AssetTagPersistence persistence)

Liferay 6.0.5