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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
      extended by com.liferay.portlet.asset.service.persistence.AssetTagPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>, com.liferay.portlet.asset.service.persistence.AssetTagPersistence

public class AssetTagPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
implements com.liferay.portlet.asset.service.persistence.AssetTagPersistence

The persistence implementation for the asset tag service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
AssetTagPersistence, AssetTagUtil
Generated:

Nested Class Summary
protected  class AssetTagPersistenceImpl.AddAssetEntry
           
protected  class AssetTagPersistenceImpl.ClearAssetEntries
           
protected  class AssetTagPersistenceImpl.ContainsAssetEntry
           
protected  class AssetTagPersistenceImpl.RemoveAssetEntry
           
 
Field Summary
protected  AssetTagPersistenceImpl.AddAssetEntry addAssetEntry
           
protected  com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence assetCategoryPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetLinkPersistence assetLinkPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetTagPersistence assetTagPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence assetTagPropertyPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence assetTagStatsPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence assetVocabularyPersistence
           
protected  AssetTagPersistenceImpl.ClearAssetEntries clearAssetEntries
           
protected  AssetTagPersistenceImpl.ContainsAssetEntry containsAssetEntry
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_ASSETENTRY
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ASSETENTRIES
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
protected  AssetTagPersistenceImpl.RemoveAssetEntry removeAssetEntry
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
AssetTagPersistenceImpl()
           
 
Method Summary
 void addAssetEntries(long pk, java.util.List<com.liferay.portlet.asset.model.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, com.liferay.portlet.asset.model.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 afterPropertiesSet()
          Initializes the asset tag persistence.
 void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag)
          Caches the asset tag in the entity cache if it is enabled.
 void cacheResult(java.util.List<com.liferay.portlet.asset.model.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.
 void clearCache()
          Clears the cache for all asset tags.
 void clearCache(com.liferay.portlet.asset.model.AssetTag assetTag)
          Clears the cache for the asset tag.
 void clearCache(java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
           
protected  void clearUniqueFindersCache(com.liferay.portlet.asset.model.AssetTag assetTag)
           
 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, java.lang.String name)
          Returns the number of asset tags where groupId = ? and name = ?.
 int countByGroupId(long groupId)
          Returns the number of asset tags where groupId = ?.
 com.liferay.portlet.asset.model.AssetTag create(long tagId)
          Creates a new asset tag with the primary key.
 void destroy()
           
 com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId, java.lang.String name)
          Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found.
 com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId, java.lang.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.
 com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or returns null if it could not be found.
 com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(java.io.Serializable primaryKey)
          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 = ?.
 com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext(long tagId, long groupId, com.liferay.portal.kernel.util.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 = ?.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(long groupId)
          Returns all the asset tags that the user has permission to view where groupId = ?.
 java.util.List<com.liferay.portlet.asset.model.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 = ?.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?.
protected  com.liferay.portlet.asset.model.AssetTag filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.asset.model.AssetTag assetTag, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
          Returns all the asset tags.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(int start, int end)
          Returns a range of all the asset tags.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags.
 com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId, java.lang.String name)
          Returns the asset tag where groupId = ? and name = ? or throws a NoSuchTagException if it could not be found.
 com.liferay.portlet.asset.model.AssetTag findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first asset tag in the ordered set where groupId = ?.
 com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last asset tag in the ordered set where groupId = ?.
 com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId)
          Returns all the asset tags where groupId = ?.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset tags where groupId = ?.
 java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tags where groupId = ?.
 com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
          Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
 com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the asset tag with the primary key or throws a NoSuchModelException if it could not be found.
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk)
          Returns all the asset entries associated with the asset tag.
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk, int start, int end)
          Returns a range of all the asset entries associated with the asset tag.
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk, int start, int end, com.liferay.portal.kernel.util.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.
protected  com.liferay.portlet.asset.model.AssetTag getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.asset.model.AssetTag assetTag, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.asset.model.AssetTag remove(long tagId)
          Removes the asset tag with the primary key from the database.
 com.liferay.portlet.asset.model.AssetTag remove(java.io.Serializable primaryKey)
          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, java.util.List<com.liferay.portlet.asset.model.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, com.liferay.portlet.asset.model.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.
 void removeByG_N(long groupId, java.lang.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.
protected  com.liferay.portlet.asset.model.AssetTag removeImpl(com.liferay.portlet.asset.model.AssetTag assetTag)
           
 void setAssetEntries(long pk, java.util.List<com.liferay.portlet.asset.model.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.
protected  com.liferay.portlet.asset.model.AssetTag toUnwrappedModel(com.liferay.portlet.asset.model.AssetTag assetTag)
           
 com.liferay.portlet.asset.model.AssetTag updateImpl(com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FETCH_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_N

FINDER_PATH_COUNT_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_ASSETENTRIES

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ASSETENTRIES

FINDER_PATH_GET_ASSETENTRIES_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE

FINDER_PATH_CONTAINS_ASSETENTRY

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_ASSETENTRY

assetCategoryPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence assetCategoryPersistence

assetCategoryPropertyPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetEntryPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetEntryPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence

assetLinkPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetLinkPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetLinkPersistence assetLinkPersistence

assetTagPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetTagPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetTagPersistence assetTagPersistence

assetTagPropertyPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence assetTagPropertyPersistence

assetTagStatsPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence assetTagStatsPersistence

assetVocabularyPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence assetVocabularyPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

containsAssetEntry

protected AssetTagPersistenceImpl.ContainsAssetEntry containsAssetEntry

addAssetEntry

protected AssetTagPersistenceImpl.AddAssetEntry addAssetEntry

clearAssetEntries

protected AssetTagPersistenceImpl.ClearAssetEntries clearAssetEntries

removeAssetEntry

protected AssetTagPersistenceImpl.RemoveAssetEntry removeAssetEntry
Constructor Detail

AssetTagPersistenceImpl

public AssetTagPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag)
Caches the asset tag in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
assetTag - the asset tag

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
Caches the asset tags in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
assetTags - the asset tags

clearCache

public void clearCache()
Clears the cache for all asset tags.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>

clearCache

public void clearCache(com.liferay.portlet.asset.model.AssetTag assetTag)
Clears the cache for the asset tag.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.asset.model.AssetTag assetTag)

create

public com.liferay.portlet.asset.model.AssetTag create(long tagId)
Creates a new asset tag with the primary key. Does not add the asset tag to the database.

Specified by:
create in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
tagId - the primary key for the new asset tag
Returns:
the new asset tag

remove

public com.liferay.portlet.asset.model.AssetTag remove(long tagId)
                                                throws com.liferay.portlet.asset.NoSuchTagException,
                                                       com.liferay.portal.kernel.exception.SystemException
Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
tagId - the primary key of the asset tag
Returns:
the asset tag that was removed
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.asset.model.AssetTag remove(java.io.Serializable primaryKey)
                                                throws com.liferay.portlet.asset.NoSuchTagException,
                                                       com.liferay.portal.kernel.exception.SystemException
Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
Parameters:
primaryKey - the primary key of the asset tag
Returns:
the asset tag that was removed
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.asset.model.AssetTag removeImpl(com.liferay.portlet.asset.model.AssetTag assetTag)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.asset.model.AssetTag updateImpl(com.liferay.portlet.asset.model.AssetTag assetTag,
                                                           boolean merge)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.asset.model.AssetTag toUnwrappedModel(com.liferay.portlet.asset.model.AssetTag assetTag)

findByPrimaryKey

public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(java.io.Serializable primaryKey)
                                                          throws com.liferay.portal.NoSuchModelException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the asset tag with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
Parameters:
primaryKey - the primary key of the asset tag
Returns:
the asset tag
Throws:
com.liferay.portal.NoSuchModelException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
                                                          throws com.liferay.portlet.asset.NoSuchTagException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
tagId - the primary key of the asset tag
Returns:
the asset tag
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the asset tag with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetTag>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetTag>
Parameters:
primaryKey - 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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(long tagId)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the asset tag with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId)
                                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the asset tags where groupId = ?.

Specified by:
findByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
Returns:
the matching asset tags
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId,
                                                                              int start,
                                                                              int end)
                                                                       throws com.liferay.portal.kernel.exception.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.

Specified by:
findByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(long groupId,
                                                                              int start,
                                                                              int end,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                       throws com.liferay.portal.kernel.exception.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.

Specified by:
findByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_First

public com.liferay.portlet.asset.model.AssetTag findByGroupId_First(long groupId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                             throws com.liferay.portlet.asset.NoSuchTagException,
                                                                    com.liferay.portal.kernel.exception.SystemException
Returns 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.

Specified by:
findByGroupId_First in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a matching asset tag could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_Last

public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(long groupId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                            throws com.liferay.portlet.asset.NoSuchTagException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Returns 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.

Specified by:
findByGroupId_Last in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a matching asset tag could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(long tagId,
                                                                            long groupId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                     throws com.liferay.portlet.asset.NoSuchTagException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns 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.

Specified by:
findByGroupId_PrevAndNext in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portlet.asset.NoSuchTagException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected com.liferay.portlet.asset.model.AssetTag getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                            com.liferay.portlet.asset.model.AssetTag assetTag,
                                                                            long groupId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                            boolean previous)

filterFindByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(long groupId)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns all the asset tags that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
Returns:
the matching asset tags that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(long groupId,
                                                                                    int start,
                                                                                    int end)
                                                                             throws com.liferay.portal.kernel.exception.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.

Specified by:
filterFindByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByGroupId

public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(long groupId,
                                                                                    int start,
                                                                                    int end,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                             throws com.liferay.portal.kernel.exception.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.

Specified by:
filterFindByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

public com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext(long tagId,
                                                                                  long groupId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.asset.NoSuchTagException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
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 = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portlet.asset.NoSuchTagException - if a asset tag with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByGroupId_PrevAndNext

protected com.liferay.portlet.asset.model.AssetTag filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                  com.liferay.portlet.asset.model.AssetTag assetTag,
                                                                                  long groupId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                  boolean previous)

findByG_N

public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
                                                          java.lang.String name)
                                                   throws com.liferay.portlet.asset.NoSuchTagException,
                                                          com.liferay.portal.kernel.exception.SystemException
Returns the asset tag where groupId = ? and name = ? or throws a NoSuchTagException if it could not be found.

Specified by:
findByG_N in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the matching asset tag
Throws:
com.liferay.portlet.asset.NoSuchTagException - if a matching asset tag could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_N

public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
                                                           java.lang.String name)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_N in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_N

public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
                                                           java.lang.String name,
                                                           boolean retrieveFromCache)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_N in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns all the asset tags.

Specified by:
findAll in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Returns:
the asset tags
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(int start,
                                                                        int end)
                                                                 throws com.liferay.portal.kernel.exception.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.

Specified by:
findAll in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(int start,
                                                                        int end,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portal.kernel.exception.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.

Specified by:
findAll in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByGroupId

public void removeByGroupId(long groupId)
                     throws com.liferay.portal.kernel.exception.SystemException
Removes all the asset tags where groupId = ? from the database.

Specified by:
removeByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_N

public void removeByG_N(long groupId,
                        java.lang.String name)
                 throws com.liferay.portlet.asset.NoSuchTagException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the asset tag where groupId = ? and name = ? from the database.

Specified by:
removeByG_N in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.asset.NoSuchTagException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the asset tags from the database.

Specified by:
removeAll in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of asset tags where groupId = ?.

Specified by:
countByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching asset tags
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws com.liferay.portal.kernel.exception.SystemException
Returns the number of asset tags that the user has permission to view where groupId = ?.

Specified by:
filterCountByGroupId in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching asset tags that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_N

public int countByG_N(long groupId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of asset tags where groupId = ? and name = ?.

Specified by:
countByG_N in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching asset tags
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of asset tags.

Specified by:
countAll in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Returns:
the number of asset tags
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getAssetEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the asset entries associated with the asset tag.

Specified by:
getAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
Returns:
the asset entries associated with the asset tag
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getAssetEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.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.

Specified by:
getAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getAssetEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(long pk,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portal.kernel.exception.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.

Specified by:
getAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getAssetEntriesSize

public int getAssetEntriesSize(long pk)
                        throws com.liferay.portal.kernel.exception.SystemException
Returns the number of asset entries associated with the asset tag.

Specified by:
getAssetEntriesSize in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
Returns:
the number of asset entries associated with the asset tag
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsAssetEntry

public boolean containsAssetEntry(long pk,
                                  long assetEntryPK)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns true if the asset entry is associated with the asset tag.

Specified by:
containsAssetEntry in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsAssetEntries

public boolean containsAssetEntries(long pk)
                             throws com.liferay.portal.kernel.exception.SystemException
Returns true if the asset tag has any asset entries associated with it.

Specified by:
containsAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addAssetEntry

public void addAssetEntry(long pk,
                          long assetEntryPK)
                   throws com.liferay.portal.kernel.exception.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.

Specified by:
addAssetEntry in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntryPK - the primary key of the asset entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addAssetEntry

public void addAssetEntry(long pk,
                          com.liferay.portlet.asset.model.AssetEntry assetEntry)
                   throws com.liferay.portal.kernel.exception.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.

Specified by:
addAssetEntry in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntry - the asset entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addAssetEntries

public void addAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws com.liferay.portal.kernel.exception.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.

Specified by:
addAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntryPKs - the primary keys of the asset entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addAssetEntries

public void addAssetEntries(long pk,
                            java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
                     throws com.liferay.portal.kernel.exception.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.

Specified by:
addAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntries - the asset entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearAssetEntries

public void clearAssetEntries(long pk)
                       throws com.liferay.portal.kernel.exception.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.

Specified by:
clearAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag to clear the associated asset entries from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAssetEntry

public void removeAssetEntry(long pk,
                             long assetEntryPK)
                      throws com.liferay.portal.kernel.exception.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.

Specified by:
removeAssetEntry in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntryPK - the primary key of the asset entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAssetEntry

public void removeAssetEntry(long pk,
                             com.liferay.portlet.asset.model.AssetEntry assetEntry)
                      throws com.liferay.portal.kernel.exception.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.

Specified by:
removeAssetEntry in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntry - the asset entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAssetEntries

public void removeAssetEntries(long pk,
                               long[] assetEntryPKs)
                        throws com.liferay.portal.kernel.exception.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.

Specified by:
removeAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntryPKs - the primary keys of the asset entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAssetEntries

public void removeAssetEntries(long pk,
                               java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
                        throws com.liferay.portal.kernel.exception.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.

Specified by:
removeAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntries - the asset entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setAssetEntries

public void setAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws com.liferay.portal.kernel.exception.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.

Specified by:
setAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setAssetEntries

public void setAssetEntries(long pk,
                            java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
                     throws com.liferay.portal.kernel.exception.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.

Specified by:
setAssetEntries in interface com.liferay.portlet.asset.service.persistence.AssetTagPersistence
Parameters:
pk - the primary key of the asset tag
assetEntries - the asset entries to be associated with the asset tag
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset tag persistence.


destroy

public void destroy()