Liferay 6.1.2-ce-ga3

com.liferay.portlet.asset.service.persistence
Interface AssetTagPersistence

All Superinterfaces:
BasePersistence<AssetTag>
All Known Implementing Classes:
AssetTagPersistenceImpl

public interface AssetTagPersistence
extends BasePersistence<AssetTag>

The persistence interface for the asset tag service.

Caching information and settings can be found in portal.properties

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

Method Summary
 void addAssetEntries(long pk, List<AssetEntry> assetEntries)
          Adds an association between the asset tag and the asset entries.
 void addAssetEntries(long pk, long[] assetEntryPKs)
          Adds an association between the asset tag and the asset entries.
 void addAssetEntry(long pk, AssetEntry assetEntry)
          Adds an association between the asset tag and the asset entry.
 void addAssetEntry(long pk, long assetEntryPK)
          Adds an association between the asset tag and the asset entry.
 void cacheResult(AssetTag assetTag)
          Caches the asset tag in the entity cache if it is enabled.
 void cacheResult(List<AssetTag> assetTags)
          Caches the asset tags in the entity cache if it is enabled.
 void clearAssetEntries(long pk)
          Clears all associations between the asset tag and its asset entries.
 boolean containsAssetEntries(long pk)
          Returns true if the asset tag has any asset entries associated with it.
 boolean containsAssetEntry(long pk, long assetEntryPK)
          Returns true if the asset entry is associated with the asset tag.
 int countAll()
          Returns the number of asset tags.
 int countByG_N(long groupId, String name)
          Returns the number of asset tags where groupId = ? and name = ?.
 int countByGroupId(long groupId)
          Returns the number of asset tags where groupId = ?.
 AssetTag create(long tagId)
          Creates a new asset tag with the primary key.
 AssetTag fetchByG_N(long groupId, String name)
          Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found.
 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.
 AssetTag fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ?.
 AssetTag fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last asset tag in the ordered set where groupId = ?.
 AssetTag fetchByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or returns null if it could not be found.
 int filterCountByGroupId(long groupId)
          Returns the number of asset tags that the user has permission to view where groupId = ?.
 AssetTag[] filterFindByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator 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 = ?.
 List<AssetTag> filterFindByGroupId(long groupId)
          Returns all the asset tags that the user has permission to view where groupId = ?.
 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 = ?.
 List<AssetTag> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?.
 List<AssetTag> findAll()
          Returns all the asset tags.
 List<AssetTag> findAll(int start, int end)
          Returns a range of all the asset tags.
 List<AssetTag> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags.
 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.
 AssetTag findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ?.
 AssetTag findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last asset tag in the ordered set where groupId = ?.
 AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator orderByComparator)
          Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?.
 List<AssetTag> findByGroupId(long groupId)
          Returns all the asset tags where groupId = ?.
 List<AssetTag> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset tags where groupId = ?.
 List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags where groupId = ?.
 AssetTag findByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
 List<AssetEntry> getAssetEntries(long pk)
          Returns all the asset entries associated with the asset tag.
 List<AssetEntry> getAssetEntries(long pk, int start, int end)
          Returns a range of all the asset entries associated with the asset tag.
 List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset entries associated with the asset tag.
 int getAssetEntriesSize(long pk)
          Returns the number of asset entries associated with the asset tag.
 AssetTag remove(long tagId)
          Removes the asset tag with the primary key from the database.
 void removeAll()
          Removes all the asset tags from the database.
 void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
          Removes the association between the asset tag and the asset entries.
 void removeAssetEntries(long pk, long[] assetEntryPKs)
          Removes the association between the asset tag and the asset entries.
 void removeAssetEntry(long pk, AssetEntry assetEntry)
          Removes the association between the asset tag and the asset entry.
 void removeAssetEntry(long pk, long assetEntryPK)
          Removes the association between the asset tag and the asset entry.
 AssetTag removeByG_N(long groupId, String name)
          Removes the asset tag where groupId = ? and name = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the asset tags where groupId = ? from the database.
 void setAssetEntries(long pk, List<AssetEntry> assetEntries)
          Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
 void setAssetEntries(long pk, long[] assetEntryPKs)
          Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
 AssetTag updateImpl(AssetTag assetTag, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
assetTag - the asset tag

cacheResult

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

Parameters:
assetTags - the asset tags

create

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

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

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

findByPrimaryKey

AssetTag findByPrimaryKey(long tagId)
                          throws SystemException,
                                 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
SystemException - if a system exception occurred

fetchByPrimaryKey

AssetTag fetchByPrimaryKey(long tagId)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group ID
Returns:
the matching asset tags
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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
Throws:
SystemException - if a system exception occurred

findByGroupId_First

AssetTag findByGroupId_First(long groupId,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByGroupId_First

AssetTag fetchByGroupId_First(long groupId,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

AssetTag findByGroupId_Last(long groupId,
                            OrderByComparator orderByComparator)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByGroupId_Last

AssetTag fetchByGroupId_Last(long groupId,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

AssetTag[] findByGroupId_PrevAndNext(long tagId,
                                     long groupId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            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
SystemException - if a system exception occurred

filterFindByGroupId

List<AssetTag> filterFindByGroupId(long groupId)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

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

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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

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

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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

AssetTag[] filterFindByGroupId_PrevAndNext(long tagId,
                                           long groupId,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  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
SystemException - if a system exception occurred

findByG_N

AssetTag findByG_N(long groupId,
                   String name)
                   throws SystemException,
                          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
SystemException - if a system exception occurred

fetchByG_N

AssetTag fetchByG_N(long groupId,
                    String name)
                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByG_N

AssetTag fetchByG_N(long groupId,
                    String name,
                    boolean retrieveFromCache)
                    throws SystemException
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 use the finder cache
Returns:
the matching asset tag, or null if a matching asset tag could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<AssetTag> findAll()
                       throws SystemException
Returns all the asset tags.

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

findAll

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

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
Throws:
SystemException - if a system exception occurred

findAll

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

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
Throws:
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByG_N

AssetTag removeByG_N(long groupId,
                     String name)
                     throws SystemException,
                            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:
SystemException - if a system exception occurred
NoSuchTagException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of asset tags where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching asset tags
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

int filterCountByGroupId(long groupId)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_N

int countByG_N(long groupId,
               String name)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of asset tags.

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

getAssetEntries

List<AssetEntry> getAssetEntries(long pk)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAssetEntries

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

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
Throws:
SystemException - if a system exception occurred

getAssetEntries

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

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
Throws:
SystemException - if a system exception occurred

getAssetEntriesSize

int getAssetEntriesSize(long pk)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetEntry

boolean containsAssetEntry(long pk,
                           long assetEntryPK)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsAssetEntries

boolean containsAssetEntries(long pk)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addAssetEntry

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

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

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

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

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

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

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

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

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

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
assetEntryPKs - the primary keys of the asset entries to be associated with the asset tag
Throws:
SystemException - if a system exception occurred

setAssetEntries

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
assetEntries - the asset entries to be associated with the asset tag
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3