Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetEntry>
      extended by com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetEntry>, AssetEntryPersistence

public class AssetEntryPersistenceImpl
extends BasePersistenceImpl<AssetEntry>
implements AssetEntryPersistence

The persistence implementation for the asset entry service.

Never modify or reference this class directly. Always use AssetEntryUtil to access the asset entry persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
AssetEntryPersistence, AssetEntryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Nested Class Summary
protected  class AssetEntryPersistenceImpl.AddAssetCategory
           
protected  class AssetEntryPersistenceImpl.AddAssetTag
           
protected  class AssetEntryPersistenceImpl.ClearAssetCategories
           
protected  class AssetEntryPersistenceImpl.ClearAssetTags
           
protected  class AssetEntryPersistenceImpl.ContainsAssetCategory
           
protected  class AssetEntryPersistenceImpl.ContainsAssetTag
           
protected  class AssetEntryPersistenceImpl.RemoveAssetCategory
           
protected  class AssetEntryPersistenceImpl.RemoveAssetTag
           
 
Field Summary
protected  AssetEntryPersistenceImpl.AddAssetCategory addAssetCategory
           
protected  AssetEntryPersistenceImpl.AddAssetTag addAssetTag
           
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetLinkPersistence assetLinkPersistence
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetTagPropertyPersistence assetTagPropertyPersistence
           
protected  AssetTagStatsPersistence assetTagStatsPersistence
           
protected  AssetVocabularyPersistence assetVocabularyPersistence
           
protected  BlogsEntryPersistence blogsEntryPersistence
           
protected  BookmarksEntryPersistence bookmarksEntryPersistence
           
protected  AssetEntryPersistenceImpl.ClearAssetCategories clearAssetCategories
           
protected  AssetEntryPersistenceImpl.ClearAssetTags clearAssetTags
           
protected  CompanyPersistence companyPersistence
           
protected  AssetEntryPersistenceImpl.ContainsAssetCategory containsAssetCategory
           
protected  AssetEntryPersistenceImpl.ContainsAssetTag containsAssetTag
           
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_ASSETCATEGORY
           
static FinderPath FINDER_PATH_CONTAINS_ASSETTAG
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_CU
           
static FinderPath FINDER_PATH_FETCH_BY_C_C
           
static FinderPath FINDER_PATH_FETCH_BY_G_CU
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_GET_ASSETCATEGORIES
           
static FinderPath FINDER_PATH_GET_ASSETCATEGORIES_SIZE
           
static FinderPath FINDER_PATH_GET_ASSETTAGS
           
static FinderPath FINDER_PATH_GET_ASSETTAGS_SIZE
           
protected  GroupPersistence groupPersistence
           
protected  JournalArticlePersistence journalArticlePersistence
           
protected  JournalArticleResourcePersistence journalArticleResourcePersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  AssetEntryPersistenceImpl.RemoveAssetCategory removeAssetCategory
           
protected  AssetEntryPersistenceImpl.RemoveAssetTag removeAssetTag
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialEquityLogPersistence socialEquityLogPersistence
           
protected  UserPersistence userPersistence
           
protected  WikiPagePersistence wikiPagePersistence
           
protected  WikiPageResourcePersistence wikiPageResourcePersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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
AssetEntryPersistenceImpl()
           
 
Method Summary
 void addAssetCategories(long pk, List<AssetCategory> assetCategories)
          Adds an association between the asset entry and the asset categories.
 void addAssetCategories(long pk, long[] assetCategoryPKs)
          Adds an association between the asset entry and the asset categories.
 void addAssetCategory(long pk, AssetCategory assetCategory)
          Adds an association between the asset entry and the asset category.
 void addAssetCategory(long pk, long assetCategoryPK)
          Adds an association between the asset entry and the asset category.
 void addAssetTag(long pk, AssetTag assetTag)
          Adds an association between the asset entry and the asset tag.
 void addAssetTag(long pk, long assetTagPK)
          Adds an association between the asset entry and the asset tag.
 void addAssetTags(long pk, List<AssetTag> assetTags)
          Adds an association between the asset entry and the asset tags.
 void addAssetTags(long pk, long[] assetTagPKs)
          Adds an association between the asset entry and the asset tags.
 void afterPropertiesSet()
          Initializes the asset entry persistence.
 void cacheResult(AssetEntry assetEntry)
          Caches the asset entry in the entity cache if it is enabled.
 void cacheResult(List<AssetEntry> assetEntries)
          Caches the asset entries in the entity cache if it is enabled.
 void clearAssetCategories(long pk)
          Clears all associations between the asset entry and its asset categories.
 void clearAssetTags(long pk)
          Clears all associations between the asset entry and its asset tags.
 void clearCache()
          Clears the cache for all asset entries.
 void clearCache(AssetEntry assetEntry)
          Clears the cache for the asset entry.
 boolean containsAssetCategories(long pk)
          Determines whether the asset entry has any asset categories associated with it.
 boolean containsAssetCategory(long pk, long assetCategoryPK)
          Determines whether the asset category is associated with the asset entry.
 boolean containsAssetTag(long pk, long assetTagPK)
          Determines whether the asset tag is associated with the asset entry.
 boolean containsAssetTags(long pk)
          Determines whether the asset entry has any asset tags associated with it.
 int countAll()
          Counts all the asset entries.
 int countByC_C(long classNameId, long classPK)
          Counts all the asset entries where classNameId = ? and classPK = ?.
 int countByCompanyId(long companyId)
          Counts all the asset entries where companyId = ?.
 int countByG_CU(long groupId, String classUuid)
          Counts all the asset entries where groupId = ? and classUuid = ?.
 AssetEntry create(long entryId)
          Creates a new asset entry with the primary key.
 AssetEntry fetchByC_C(long classNameId, long classPK)
          Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found.
 AssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
          Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
 AssetEntry fetchByG_CU(long groupId, String classUuid)
          Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found.
 AssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache)
          Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.
 AssetEntry fetchByPrimaryKey(long entryId)
          Finds the asset entry with the primary key or returns null if it could not be found.
 AssetEntry fetchByPrimaryKey(Serializable primaryKey)
          Finds the asset entry with the primary key or returns null if it could not be found.
 List<AssetEntry> findAll()
          Finds all the asset entries.
 List<AssetEntry> findAll(int start, int end)
          Finds a range of all the asset entries.
 List<AssetEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset entries.
 AssetEntry findByC_C(long classNameId, long classPK)
          Finds the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first asset entry in the ordered set where companyId = ?.
 AssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last asset entry in the ordered set where companyId = ?.
 AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator)
          Finds the asset entries before and after the current asset entry in the ordered set where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId)
          Finds all the asset entries where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the asset entries where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset entries where companyId = ?.
 AssetEntry findByG_CU(long groupId, String classUuid)
          Finds the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByPrimaryKey(long entryId)
          Finds the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByPrimaryKey(Serializable primaryKey)
          Finds the asset entry with the primary key or throws a NoSuchModelException if it could not be found.
 List<AssetCategory> getAssetCategories(long pk)
          Gets all the asset categories associated with the asset entry.
 List<AssetCategory> getAssetCategories(long pk, int start, int end)
          Gets a range of all the asset categories associated with the asset entry.
 List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset categories associated with the asset entry.
 int getAssetCategoriesSize(long pk)
          Gets the number of asset categories associated with the asset entry.
 List<AssetTag> getAssetTags(long pk)
          Gets all the asset tags associated with the asset entry.
 List<AssetTag> getAssetTags(long pk, int start, int end)
          Gets a range of all the asset tags associated with the asset entry.
 List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset tags associated with the asset entry.
 int getAssetTagsSize(long pk)
          Gets the number of asset tags associated with the asset entry.
protected  AssetEntry getByCompanyId_PrevAndNext(Session session, AssetEntry assetEntry, long companyId, OrderByComparator orderByComparator, boolean previous)
           
 AssetEntry remove(long entryId)
          Removes the asset entry with the primary key from the database.
 AssetEntry remove(Serializable primaryKey)
          Removes the asset entry with the primary key from the database.
 void removeAll()
          Removes all the asset entries from the database.
 void removeAssetCategories(long pk, List<AssetCategory> assetCategories)
          Removes the association between the asset entry and the asset categories.
 void removeAssetCategories(long pk, long[] assetCategoryPKs)
          Removes the association between the asset entry and the asset categories.
 void removeAssetCategory(long pk, AssetCategory assetCategory)
          Removes the association between the asset entry and the asset category.
 void removeAssetCategory(long pk, long assetCategoryPK)
          Removes the association between the asset entry and the asset category.
 void removeAssetTag(long pk, AssetTag assetTag)
          Removes the association between the asset entry and the asset tag.
 void removeAssetTag(long pk, long assetTagPK)
          Removes the association between the asset entry and the asset tag.
 void removeAssetTags(long pk, List<AssetTag> assetTags)
          Removes the association between the asset entry and the asset tags.
 void removeAssetTags(long pk, long[] assetTagPKs)
          Removes the association between the asset entry and the asset tags.
 void removeByC_C(long classNameId, long classPK)
          Removes the asset entry where classNameId = ? and classPK = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the asset entries where companyId = ? from the database.
 void removeByG_CU(long groupId, String classUuid)
          Removes the asset entry where groupId = ? and classUuid = ? from the database.
protected  AssetEntry removeImpl(AssetEntry assetEntry)
          Removes the model instance from the database.
 void setAssetCategories(long pk, List<AssetCategory> assetCategories)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
 void setAssetCategories(long pk, long[] assetCategoryPKs)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
 void setAssetTags(long pk, List<AssetTag> assetTags)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
 void setAssetTags(long pk, long[] assetTagPKs)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
protected  AssetEntry toUnwrappedModel(AssetEntry assetEntry)
           
 AssetEntry updateImpl(AssetEntry assetEntry, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, 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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_G_CU

public static final FinderPath FINDER_PATH_FETCH_BY_G_CU

FINDER_PATH_COUNT_BY_G_CU

public static final FinderPath FINDER_PATH_COUNT_BY_G_CU

FINDER_PATH_FETCH_BY_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_ASSETCATEGORIES

public static final FinderPath FINDER_PATH_GET_ASSETCATEGORIES

FINDER_PATH_GET_ASSETCATEGORIES_SIZE

public static final FinderPath FINDER_PATH_GET_ASSETCATEGORIES_SIZE

FINDER_PATH_CONTAINS_ASSETCATEGORY

public static final FinderPath FINDER_PATH_CONTAINS_ASSETCATEGORY

FINDER_PATH_GET_ASSETTAGS

public static final FinderPath FINDER_PATH_GET_ASSETTAGS

FINDER_PATH_GET_ASSETTAGS_SIZE

public static final FinderPath FINDER_PATH_GET_ASSETTAGS_SIZE

FINDER_PATH_CONTAINS_ASSETTAG

public static final FinderPath FINDER_PATH_CONTAINS_ASSETTAG

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetCategoryPropertyPersistence

@BeanReference(type=AssetCategoryPropertyPersistence.class)
protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetLinkPersistence

@BeanReference(type=AssetLinkPersistence.class)
protected AssetLinkPersistence assetLinkPersistence

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagPropertyPersistence

@BeanReference(type=AssetTagPropertyPersistence.class)
protected AssetTagPropertyPersistence assetTagPropertyPersistence

assetTagStatsPersistence

@BeanReference(type=AssetTagStatsPersistence.class)
protected AssetTagStatsPersistence assetTagStatsPersistence

assetVocabularyPersistence

@BeanReference(type=AssetVocabularyPersistence.class)
protected AssetVocabularyPersistence assetVocabularyPersistence

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

blogsEntryPersistence

@BeanReference(type=BlogsEntryPersistence.class)
protected BlogsEntryPersistence blogsEntryPersistence

bookmarksEntryPersistence

@BeanReference(type=BookmarksEntryPersistence.class)
protected BookmarksEntryPersistence bookmarksEntryPersistence

dlFileEntryPersistence

@BeanReference(type=DLFileEntryPersistence.class)
protected DLFileEntryPersistence dlFileEntryPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

journalArticlePersistence

@BeanReference(type=JournalArticlePersistence.class)
protected JournalArticlePersistence journalArticlePersistence

journalArticleResourcePersistence

@BeanReference(type=JournalArticleResourcePersistence.class)
protected JournalArticleResourcePersistence journalArticleResourcePersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

socialEquityLogPersistence

@BeanReference(type=SocialEquityLogPersistence.class)
protected SocialEquityLogPersistence socialEquityLogPersistence

wikiPagePersistence

@BeanReference(type=WikiPagePersistence.class)
protected WikiPagePersistence wikiPagePersistence

wikiPageResourcePersistence

@BeanReference(type=WikiPageResourcePersistence.class)
protected WikiPageResourcePersistence wikiPageResourcePersistence

containsAssetCategory

protected AssetEntryPersistenceImpl.ContainsAssetCategory containsAssetCategory

addAssetCategory

protected AssetEntryPersistenceImpl.AddAssetCategory addAssetCategory

clearAssetCategories

protected AssetEntryPersistenceImpl.ClearAssetCategories clearAssetCategories

removeAssetCategory

protected AssetEntryPersistenceImpl.RemoveAssetCategory removeAssetCategory

containsAssetTag

protected AssetEntryPersistenceImpl.ContainsAssetTag containsAssetTag

addAssetTag

protected AssetEntryPersistenceImpl.AddAssetTag addAssetTag

clearAssetTags

protected AssetEntryPersistenceImpl.ClearAssetTags clearAssetTags

removeAssetTag

protected AssetEntryPersistenceImpl.RemoveAssetTag removeAssetTag
Constructor Detail

AssetEntryPersistenceImpl

public AssetEntryPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(AssetEntry assetEntry)
Caches the asset entry in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetEntryPersistence
Parameters:
assetEntry - the asset entry to cache

cacheResult

public void cacheResult(List<AssetEntry> assetEntries)
Caches the asset entries in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetEntryPersistence
Parameters:
assetEntries - the asset entries to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetEntry>
Overrides:
clearCache in class BasePersistenceImpl<AssetEntry>

clearCache

public void clearCache(AssetEntry assetEntry)
Clears the cache for the asset entry.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetEntry>
Overrides:
clearCache in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the instance of this model to clear the cache for

create

public AssetEntry create(long entryId)
Creates a new asset entry with the primary key. Does not add the asset entry to the database.

Specified by:
create in interface AssetEntryPersistence
Parameters:
entryId - the primary key for the new asset entry
Returns:
the new asset entry

remove

public AssetEntry remove(Serializable primaryKey)
                  throws NoSuchModelException,
                         SystemException
Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetEntry>
Overrides:
remove in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry to remove
Returns:
the asset entry that was removed
Throws:
NoSuchModelException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

remove

public AssetEntry remove(long entryId)
                  throws NoSuchEntryException,
                         SystemException
Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry to remove
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected AssetEntry removeImpl(AssetEntry assetEntry)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public AssetEntry updateImpl(AssetEntry assetEntry,
                             boolean merge)
                      throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetEntryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected AssetEntry toUnwrappedModel(AssetEntry assetEntry)

findByPrimaryKey

public AssetEntry findByPrimaryKey(Serializable primaryKey)
                            throws NoSuchModelException,
                                   SystemException
Finds the asset entry with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetEntry>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry to find
Returns:
the asset entry
Throws:
NoSuchModelException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public AssetEntry findByPrimaryKey(long entryId)
                            throws NoSuchEntryException,
                                   SystemException
Finds the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry to find
Returns:
the asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public AssetEntry fetchByPrimaryKey(Serializable primaryKey)
                             throws SystemException
Finds the asset entry with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetEntry>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry to find
Returns:
the asset entry, or null if a asset entry with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public AssetEntry fetchByPrimaryKey(long entryId)
                             throws SystemException
Finds the asset entry with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry to find
Returns:
the asset entry, or null if a asset entry with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId)
                                 throws SystemException
Finds all the asset entries where companyId = ?.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching asset entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId,
                                        int start,
                                        int end)
                                 throws SystemException
Finds a range of all the asset entries where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of matching asset entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the asset entries where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset entries
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public AssetEntry findByCompanyId_First(long companyId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEntryException,
                                        SystemException
Finds the first asset entry in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_First in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public AssetEntry findByCompanyId_Last(long companyId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchEntryException,
                                       SystemException
Finds the last asset entry in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_Last in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public AssetEntry[] findByCompanyId_PrevAndNext(long entryId,
                                                long companyId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchEntryException,
                                                SystemException
Finds the asset entries before and after the current asset entry in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected AssetEntry getByCompanyId_PrevAndNext(Session session,
                                                AssetEntry assetEntry,
                                                long companyId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByG_CU

public AssetEntry findByG_CU(long groupId,
                             String classUuid)
                      throws NoSuchEntryException,
                             SystemException
Finds the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.

Specified by:
findByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group id to search with
classUuid - the class uuid to search with
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

fetchByG_CU

public AssetEntry fetchByG_CU(long groupId,
                              String classUuid)
                       throws SystemException
Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group id to search with
classUuid - the class uuid to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_CU

public AssetEntry fetchByG_CU(long groupId,
                              String classUuid,
                              boolean retrieveFromCache)
                       throws SystemException
Finds the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group id to search with
classUuid - the class uuid to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C

public AssetEntry findByC_C(long classNameId,
                            long classPK)
                     throws NoSuchEntryException,
                            SystemException
Finds the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.

Specified by:
findByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found
SystemException - if a system exception occurred

fetchByC_C

public AssetEntry fetchByC_C(long classNameId,
                             long classPK)
                      throws SystemException
Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C

public AssetEntry fetchByC_C(long classNameId,
                             long classPK,
                             boolean retrieveFromCache)
                      throws SystemException
Finds the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching asset entry, or null if a matching asset entry could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetEntry> findAll()
                         throws SystemException
Finds all the asset entries.

Specified by:
findAll in interface AssetEntryPersistence
Returns:
the asset entries
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetEntry> findAll(int start,
                                int end)
                         throws SystemException
Finds a range of all the asset entries.

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 AssetEntryPersistence
Parameters:
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset entries
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetEntry> findAll(int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Finds an ordered range of all the asset entries.

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 AssetEntryPersistence
Parameters:
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset entries
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the asset entries where companyId = ? from the database.

Specified by:
removeByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByG_CU

public void removeByG_CU(long groupId,
                         String classUuid)
                  throws NoSuchEntryException,
                         SystemException
Removes the asset entry where groupId = ? and classUuid = ? from the database.

Specified by:
removeByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group id to search with
classUuid - the class uuid to search with
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
                 throws NoSuchEntryException,
                        SystemException
Removes the asset entry where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

removeAll

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

Specified by:
removeAll in interface AssetEntryPersistence
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Counts all the asset entries where companyId = ?.

Specified by:
countByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company id to search with
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

countByG_CU

public int countByG_CU(long groupId,
                       String classUuid)
                throws SystemException
Counts all the asset entries where groupId = ? and classUuid = ?.

Specified by:
countByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group id to search with
classUuid - the class uuid to search with
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
               throws SystemException
Counts all the asset entries where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching asset entries
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface AssetEntryPersistence
Returns:
the number of asset entries
Throws:
SystemException - if a system exception occurred

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk)
                                       throws SystemException
Gets all the asset categories associated with the asset entry.

Specified by:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset categories for
Returns:
the asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk,
                                              int start,
                                              int end)
                                       throws SystemException
Gets a range of all the asset categories associated with the asset entry.

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:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset categories for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Gets an ordered range of all the asset categories associated with the asset entry.

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:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset categories for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetCategoriesSize

public int getAssetCategoriesSize(long pk)
                           throws SystemException
Gets the number of asset categories associated with the asset entry.

Specified by:
getAssetCategoriesSize in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the number of associated asset categories for
Returns:
the number of asset categories associated with the asset entry
Throws:
SystemException - if a system exception occurred

containsAssetCategory

public boolean containsAssetCategory(long pk,
                                     long assetCategoryPK)
                              throws SystemException
Determines whether the asset category is associated with the asset entry.

Specified by:
containsAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category
Returns:
whether the asset category is associated with the asset entry
Throws:
SystemException - if a system exception occurred

containsAssetCategories

public boolean containsAssetCategories(long pk)
                                throws SystemException
Determines whether the asset entry has any asset categories associated with it.

Specified by:
containsAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to check for associations with asset categories
Returns:
whether the asset entry has any asset categories associated with it
Throws:
SystemException - if a system exception occurred

addAssetCategory

public void addAssetCategory(long pk,
                             long assetCategoryPK)
                      throws SystemException
Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category
Throws:
SystemException - if a system exception occurred

addAssetCategory

public void addAssetCategory(long pk,
                             AssetCategory assetCategory)
                      throws SystemException
Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategory - the asset category
Throws:
SystemException - if a system exception occurred

addAssetCategories

public void addAssetCategories(long pk,
                               long[] assetCategoryPKs)
                        throws SystemException
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories
Throws:
SystemException - if a system exception occurred

addAssetCategories

public void addAssetCategories(long pk,
                               List<AssetCategory> assetCategories)
                        throws SystemException
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategories - the asset categories
Throws:
SystemException - if a system exception occurred

clearAssetCategories

public void clearAssetCategories(long pk)
                          throws SystemException
Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to clear the associated asset categories from
Throws:
SystemException - if a system exception occurred

removeAssetCategory

public void removeAssetCategory(long pk,
                                long assetCategoryPK)
                         throws SystemException
Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category
Throws:
SystemException - if a system exception occurred

removeAssetCategory

public void removeAssetCategory(long pk,
                                AssetCategory assetCategory)
                         throws SystemException
Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategory - the asset category
Throws:
SystemException - if a system exception occurred

removeAssetCategories

public void removeAssetCategories(long pk,
                                  long[] assetCategoryPKs)
                           throws SystemException
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories
Throws:
SystemException - if a system exception occurred

removeAssetCategories

public void removeAssetCategories(long pk,
                                  List<AssetCategory> assetCategories)
                           throws SystemException
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategories - the asset categories
Throws:
SystemException - if a system exception occurred

setAssetCategories

public void setAssetCategories(long pk,
                               long[] assetCategoryPKs)
                        throws SystemException
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to set the associations for
assetCategoryPKs - the primary keys of the asset categories to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

setAssetCategories

public void setAssetCategories(long pk,
                               List<AssetCategory> assetCategories)
                        throws SystemException
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to set the associations for
assetCategories - the asset categories to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTags

public List<AssetTag> getAssetTags(long pk)
                            throws SystemException
Gets all the asset tags associated with the asset entry.

Specified by:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset tags for
Returns:
the asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTags

public List<AssetTag> getAssetTags(long pk,
                                   int start,
                                   int end)
                            throws SystemException
Gets a range of all the asset tags associated with the asset entry.

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:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset tags for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
Returns:
the range of asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTags

public List<AssetTag> getAssetTags(long pk,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Gets an ordered range of all the asset tags associated with the asset entry.

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:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the associated asset tags for
start - the lower bound of the range of asset entries to return
end - the upper bound of the range of asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

getAssetTagsSize

public int getAssetTagsSize(long pk)
                     throws SystemException
Gets the number of asset tags associated with the asset entry.

Specified by:
getAssetTagsSize in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to get the number of associated asset tags for
Returns:
the number of asset tags associated with the asset entry
Throws:
SystemException - if a system exception occurred

containsAssetTag

public boolean containsAssetTag(long pk,
                                long assetTagPK)
                         throws SystemException
Determines whether the asset tag is associated with the asset entry.

Specified by:
containsAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag
Returns:
whether the asset tag is associated with the asset entry
Throws:
SystemException - if a system exception occurred

containsAssetTags

public boolean containsAssetTags(long pk)
                          throws SystemException
Determines whether the asset entry has any asset tags associated with it.

Specified by:
containsAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to check for associations with asset tags
Returns:
whether the asset entry has any asset tags associated with it
Throws:
SystemException - if a system exception occurred

addAssetTag

public void addAssetTag(long pk,
                        long assetTagPK)
                 throws SystemException
Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag
Throws:
SystemException - if a system exception occurred

addAssetTag

public void addAssetTag(long pk,
                        AssetTag assetTag)
                 throws SystemException
Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTag - the asset tag
Throws:
SystemException - if a system exception occurred

addAssetTags

public void addAssetTags(long pk,
                         long[] assetTagPKs)
                  throws SystemException
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags
Throws:
SystemException - if a system exception occurred

addAssetTags

public void addAssetTags(long pk,
                         List<AssetTag> assetTags)
                  throws SystemException
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTags - the asset tags
Throws:
SystemException - if a system exception occurred

clearAssetTags

public void clearAssetTags(long pk)
                    throws SystemException
Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to clear the associated asset tags from
Throws:
SystemException - if a system exception occurred

removeAssetTag

public void removeAssetTag(long pk,
                           long assetTagPK)
                    throws SystemException
Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag
Throws:
SystemException - if a system exception occurred

removeAssetTag

public void removeAssetTag(long pk,
                           AssetTag assetTag)
                    throws SystemException
Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTag - the asset tag
Throws:
SystemException - if a system exception occurred

removeAssetTags

public void removeAssetTags(long pk,
                            long[] assetTagPKs)
                     throws SystemException
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags
Throws:
SystemException - if a system exception occurred

removeAssetTags

public void removeAssetTags(long pk,
                            List<AssetTag> assetTags)
                     throws SystemException
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTags - the asset tags
Throws:
SystemException - if a system exception occurred

setAssetTags

public void setAssetTags(long pk,
                         long[] assetTagPKs)
                  throws SystemException
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to set the associations for
assetTagPKs - the primary keys of the asset tags to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

setAssetTags

public void setAssetTags(long pk,
                         List<AssetTag> assetTags)
                  throws SystemException
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to set the associations for
assetTags - the asset tags to be associated with the asset entry
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset entry persistence.


Liferay 6.0.5