|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetEntry> com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl
public class AssetEntryPersistenceImpl
The persistence implementation for the asset entry service.
Caching information and settings can be found in portal.properties
AssetEntryPersistence
,
AssetEntryUtil
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
|
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 | |
---|---|
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. |
protected void |
cacheUniqueFindersCache(AssetEntry assetEntry)
|
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. |
void |
clearCache(List<AssetEntry> assetEntries)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(AssetEntry assetEntry)
|
boolean |
containsAssetCategories(long pk)
Returns true if the asset entry has any asset categories associated with it. |
boolean |
containsAssetCategory(long pk,
long assetCategoryPK)
Returns true if the asset category is associated with the asset entry. |
boolean |
containsAssetTag(long pk,
long assetTagPK)
Returns true if the asset tag is associated with the asset entry. |
boolean |
containsAssetTags(long pk)
Returns true if the asset entry has any asset tags associated with it. |
int |
countAll()
Returns the number of asset entries. |
int |
countByC_C(long classNameId,
long classPK)
Returns the number of asset entries where classNameId = ? and classPK = ?. |
int |
countByCompanyId(long companyId)
Returns the number of asset entries where companyId = ?. |
int |
countByExpirationDate(Date expirationDate)
Returns the number of asset entries where expirationDate = ?. |
int |
countByG_CU(long groupId,
String classUuid)
Returns the number of asset entries where groupId = ? and classUuid = ?. |
int |
countByLayoutUuid(String layoutUuid)
Returns the number of asset entries where layoutUuid = ?. |
int |
countByPublishDate(Date publishDate)
Returns the number of asset entries where publishDate = ?. |
int |
countByVisible(boolean visible)
Returns the number of asset entries where visible = ?. |
AssetEntry |
create(long entryId)
Creates a new asset entry with the primary key. |
void |
destroy()
|
AssetEntry |
fetchByC_C(long classNameId,
long classPK)
Returns 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)
Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
AssetEntry |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?. |
AssetEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?. |
AssetEntry |
fetchByExpirationDate_First(Date expirationDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?. |
AssetEntry |
fetchByExpirationDate_Last(Date expirationDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?. |
AssetEntry |
fetchByG_CU(long groupId,
String classUuid)
Returns 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)
Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache. |
AssetEntry |
fetchByLayoutUuid_First(String layoutUuid,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?. |
AssetEntry |
fetchByLayoutUuid_Last(String layoutUuid,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?. |
AssetEntry |
fetchByPrimaryKey(long entryId)
Returns the asset entry with the primary key or returns null if it could not be found. |
AssetEntry |
fetchByPrimaryKey(Serializable primaryKey)
Returns the asset entry with the primary key or returns null if it could not be found. |
AssetEntry |
fetchByPublishDate_First(Date publishDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?. |
AssetEntry |
fetchByPublishDate_Last(Date publishDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?. |
AssetEntry |
fetchByVisible_First(boolean visible,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where visible = ?. |
AssetEntry |
fetchByVisible_Last(boolean visible,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where visible = ?. |
List<AssetEntry> |
findAll()
Returns all the asset entries. |
List<AssetEntry> |
findAll(int start,
int end)
Returns a range of all the asset entries. |
List<AssetEntry> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries. |
AssetEntry |
findByC_C(long classNameId,
long classPK)
Returns the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found. |
AssetEntry |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?. |
AssetEntry |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?. |
AssetEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?. |
List<AssetEntry> |
findByCompanyId(long companyId)
Returns all the asset entries where companyId = ?. |
List<AssetEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the asset entries where companyId = ?. |
List<AssetEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries where companyId = ?. |
AssetEntry |
findByExpirationDate_First(Date expirationDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?. |
AssetEntry |
findByExpirationDate_Last(Date expirationDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?. |
AssetEntry[] |
findByExpirationDate_PrevAndNext(long entryId,
Date expirationDate,
OrderByComparator orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?. |
List<AssetEntry> |
findByExpirationDate(Date expirationDate)
Returns all the asset entries where expirationDate = ?. |
List<AssetEntry> |
findByExpirationDate(Date expirationDate,
int start,
int end)
Returns a range of all the asset entries where expirationDate = ?. |
List<AssetEntry> |
findByExpirationDate(Date expirationDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries where expirationDate = ?. |
AssetEntry |
findByG_CU(long groupId,
String classUuid)
Returns the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found. |
AssetEntry |
findByLayoutUuid_First(String layoutUuid,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?. |
AssetEntry |
findByLayoutUuid_Last(String layoutUuid,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?. |
AssetEntry[] |
findByLayoutUuid_PrevAndNext(long entryId,
String layoutUuid,
OrderByComparator orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?. |
List<AssetEntry> |
findByLayoutUuid(String layoutUuid)
Returns all the asset entries where layoutUuid = ?. |
List<AssetEntry> |
findByLayoutUuid(String layoutUuid,
int start,
int end)
Returns a range of all the asset entries where layoutUuid = ?. |
List<AssetEntry> |
findByLayoutUuid(String layoutUuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries where layoutUuid = ?. |
AssetEntry |
findByPrimaryKey(long entryId)
Returns the asset entry with the primary key or throws a NoSuchEntryException if it could not be found. |
AssetEntry |
findByPrimaryKey(Serializable primaryKey)
Returns the asset entry with the primary key or throws a NoSuchModelException if it could not be found. |
AssetEntry |
findByPublishDate_First(Date publishDate,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?. |
AssetEntry |
findByPublishDate_Last(Date publishDate,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?. |
AssetEntry[] |
findByPublishDate_PrevAndNext(long entryId,
Date publishDate,
OrderByComparator orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?. |
List<AssetEntry> |
findByPublishDate(Date publishDate)
Returns all the asset entries where publishDate = ?. |
List<AssetEntry> |
findByPublishDate(Date publishDate,
int start,
int end)
Returns a range of all the asset entries where publishDate = ?. |
List<AssetEntry> |
findByPublishDate(Date publishDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries where publishDate = ?. |
AssetEntry |
findByVisible_First(boolean visible,
OrderByComparator orderByComparator)
Returns the first asset entry in the ordered set where visible = ?. |
AssetEntry |
findByVisible_Last(boolean visible,
OrderByComparator orderByComparator)
Returns the last asset entry in the ordered set where visible = ?. |
AssetEntry[] |
findByVisible_PrevAndNext(long entryId,
boolean visible,
OrderByComparator orderByComparator)
Returns the asset entries before and after the current asset entry in the ordered set where visible = ?. |
List<AssetEntry> |
findByVisible(boolean visible)
Returns all the asset entries where visible = ?. |
List<AssetEntry> |
findByVisible(boolean visible,
int start,
int end)
Returns a range of all the asset entries where visible = ?. |
List<AssetEntry> |
findByVisible(boolean visible,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries where visible = ?. |
List<AssetCategory> |
getAssetCategories(long pk)
Returns all the asset categories associated with the asset entry. |
List<AssetCategory> |
getAssetCategories(long pk,
int start,
int end)
Returns a range of all the asset categories associated with the asset entry. |
List<AssetCategory> |
getAssetCategories(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset categories associated with the asset entry. |
int |
getAssetCategoriesSize(long pk)
Returns the number of asset categories associated with the asset entry. |
List<AssetTag> |
getAssetTags(long pk)
Returns all the asset tags associated with the asset entry. |
List<AssetTag> |
getAssetTags(long pk,
int start,
int end)
Returns a range of all the asset tags associated with the asset entry. |
List<AssetTag> |
getAssetTags(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tags associated with the asset entry. |
int |
getAssetTagsSize(long pk)
Returns the number of asset tags associated with the asset entry. |
protected AssetEntry |
getByCompanyId_PrevAndNext(Session session,
AssetEntry assetEntry,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetEntry |
getByExpirationDate_PrevAndNext(Session session,
AssetEntry assetEntry,
Date expirationDate,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetEntry |
getByLayoutUuid_PrevAndNext(Session session,
AssetEntry assetEntry,
String layoutUuid,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetEntry |
getByPublishDate_PrevAndNext(Session session,
AssetEntry assetEntry,
Date publishDate,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetEntry |
getByVisible_PrevAndNext(Session session,
AssetEntry assetEntry,
boolean visible,
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. |
AssetEntry |
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 |
removeByExpirationDate(Date expirationDate)
Removes all the asset entries where expirationDate = ? from the database. |
AssetEntry |
removeByG_CU(long groupId,
String classUuid)
Removes the asset entry where groupId = ? and classUuid = ? from the database. |
void |
removeByLayoutUuid(String layoutUuid)
Removes all the asset entries where layoutUuid = ? from the database. |
void |
removeByPublishDate(Date publishDate)
Removes all the asset entries where publishDate = ? from the database. |
void |
removeByVisible(boolean visible)
Removes all the asset entries where visible = ? 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, getClassLoader, 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 |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VISIBLE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBLE
public static final FinderPath FINDER_PATH_COUNT_BY_VISIBLE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PUBLISHDATE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PUBLISHDATE
public static final FinderPath FINDER_PATH_COUNT_BY_PUBLISHDATE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EXPIRATIONDATE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EXPIRATIONDATE
public static final FinderPath FINDER_PATH_COUNT_BY_EXPIRATIONDATE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTUUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTUUID
public static final FinderPath FINDER_PATH_COUNT_BY_LAYOUTUUID
public static final FinderPath FINDER_PATH_FETCH_BY_G_CU
public static final FinderPath FINDER_PATH_COUNT_BY_G_CU
public static final FinderPath FINDER_PATH_FETCH_BY_C_C
public static final FinderPath FINDER_PATH_COUNT_BY_C_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_GET_ASSETCATEGORIES
public static final FinderPath FINDER_PATH_GET_ASSETCATEGORIES_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_ASSETCATEGORY
public static final FinderPath FINDER_PATH_GET_ASSETTAGS
public static final FinderPath FINDER_PATH_GET_ASSETTAGS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_ASSETTAG
@BeanReference(type=AssetCategoryPersistence.class) protected AssetCategoryPersistence assetCategoryPersistence
@BeanReference(type=AssetCategoryPropertyPersistence.class) protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
@BeanReference(type=AssetLinkPersistence.class) protected AssetLinkPersistence assetLinkPersistence
@BeanReference(type=AssetTagPersistence.class) protected AssetTagPersistence assetTagPersistence
@BeanReference(type=AssetTagPropertyPersistence.class) protected AssetTagPropertyPersistence assetTagPropertyPersistence
@BeanReference(type=AssetTagStatsPersistence.class) protected AssetTagStatsPersistence assetTagStatsPersistence
@BeanReference(type=AssetVocabularyPersistence.class) protected AssetVocabularyPersistence assetVocabularyPersistence
@BeanReference(type=CompanyPersistence.class) protected CompanyPersistence companyPersistence
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=BlogsEntryPersistence.class) protected BlogsEntryPersistence blogsEntryPersistence
@BeanReference(type=BookmarksEntryPersistence.class) protected BookmarksEntryPersistence bookmarksEntryPersistence
@BeanReference(type=DLFileEntryPersistence.class) protected DLFileEntryPersistence dlFileEntryPersistence
@BeanReference(type=DLFolderPersistence.class) protected DLFolderPersistence dlFolderPersistence
@BeanReference(type=JournalArticlePersistence.class) protected JournalArticlePersistence journalArticlePersistence
@BeanReference(type=JournalArticleResourcePersistence.class) protected JournalArticleResourcePersistence journalArticleResourcePersistence
@BeanReference(type=MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence
@BeanReference(type=SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence
@BeanReference(type=WikiPagePersistence.class) protected WikiPagePersistence wikiPagePersistence
@BeanReference(type=WikiPageResourcePersistence.class) protected WikiPageResourcePersistence wikiPageResourcePersistence
protected AssetEntryPersistenceImpl.ContainsAssetCategory containsAssetCategory
protected AssetEntryPersistenceImpl.AddAssetCategory addAssetCategory
protected AssetEntryPersistenceImpl.ClearAssetCategories clearAssetCategories
protected AssetEntryPersistenceImpl.RemoveAssetCategory removeAssetCategory
protected AssetEntryPersistenceImpl.ContainsAssetTag containsAssetTag
protected AssetEntryPersistenceImpl.AddAssetTag addAssetTag
protected AssetEntryPersistenceImpl.ClearAssetTags clearAssetTags
protected AssetEntryPersistenceImpl.RemoveAssetTag removeAssetTag
Constructor Detail |
---|
public AssetEntryPersistenceImpl()
Method Detail |
---|
public void cacheResult(AssetEntry assetEntry)
cacheResult
in interface AssetEntryPersistence
assetEntry
- the asset entrypublic void cacheResult(List<AssetEntry> assetEntries)
cacheResult
in interface AssetEntryPersistence
assetEntries
- the asset entriespublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetEntry>
clearCache
in class BasePersistenceImpl<AssetEntry>
public void clearCache(AssetEntry assetEntry)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetEntry>
clearCache
in class BasePersistenceImpl<AssetEntry>
assetEntry
- the instance of this model to clear the cache forpublic void clearCache(List<AssetEntry> assetEntries)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<AssetEntry>
clearCache
in class BasePersistenceImpl<AssetEntry>
assetEntries
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(AssetEntry assetEntry)
protected void clearUniqueFindersCache(AssetEntry assetEntry)
public AssetEntry create(long entryId)
create
in interface AssetEntryPersistence
entryId
- the primary key for the new asset entry
public AssetEntry remove(long entryId) throws NoSuchEntryException, SystemException
remove
in interface AssetEntryPersistence
entryId
- the primary key of the asset entry
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetEntry remove(Serializable primaryKey) throws NoSuchEntryException, SystemException
remove
in interface BasePersistence<AssetEntry>
remove
in class BasePersistenceImpl<AssetEntry>
primaryKey
- the primary key of the asset entry
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry removeImpl(AssetEntry assetEntry) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<AssetEntry>
assetEntry
- the model instance to remove
SystemException
- if a system exception occurredpublic AssetEntry updateImpl(AssetEntry assetEntry, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface AssetEntryPersistence
updateImpl
in class BasePersistenceImpl<AssetEntry>
assetEntry
- the model instance to updatemerge
- 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.
SystemException
- if a system exception occurredprotected AssetEntry toUnwrappedModel(AssetEntry assetEntry)
public AssetEntry findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<AssetEntry>
findByPrimaryKey
in class BasePersistenceImpl<AssetEntry>
primaryKey
- the primary key of the asset entry
NoSuchModelException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByPrimaryKey(long entryId) throws NoSuchEntryException, SystemException
NoSuchEntryException
if it could not be found.
findByPrimaryKey
in interface AssetEntryPersistence
entryId
- the primary key of the asset entry
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<AssetEntry>
fetchByPrimaryKey
in class BasePersistenceImpl<AssetEntry>
primaryKey
- the primary key of the asset entry
null
if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByPrimaryKey(long entryId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface AssetEntryPersistence
entryId
- the primary key of the asset entry
null
if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredpublic List<AssetEntry> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface AssetEntryPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<AssetEntry> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
findByCompanyId
in interface AssetEntryPersistence
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByCompanyId
in interface AssetEntryPersistence
companyId
- the company IDstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByCompanyId_First
in interface AssetEntryPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_First
in interface AssetEntryPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByCompanyId_Last
in interface AssetEntryPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_Last
in interface AssetEntryPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByCompanyId_PrevAndNext
in interface AssetEntryPersistence
entryId
- the primary key of the current asset entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry getByCompanyId_PrevAndNext(Session session, AssetEntry assetEntry, long companyId, OrderByComparator orderByComparator, boolean previous)
public List<AssetEntry> findByVisible(boolean visible) throws SystemException
findByVisible
in interface AssetEntryPersistence
visible
- the visible
SystemException
- if a system exception occurredpublic List<AssetEntry> findByVisible(boolean visible, int start, int end) throws SystemException
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.
findByVisible
in interface AssetEntryPersistence
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByVisible
in interface AssetEntryPersistence
visible
- the visiblestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetEntry findByVisible_First(boolean visible, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByVisible_First
in interface AssetEntryPersistence
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByVisible_First(boolean visible, OrderByComparator orderByComparator) throws SystemException
fetchByVisible_First
in interface AssetEntryPersistence
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByVisible_Last(boolean visible, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByVisible_Last
in interface AssetEntryPersistence
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator orderByComparator) throws SystemException
fetchByVisible_Last
in interface AssetEntryPersistence
visible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByVisible_PrevAndNext
in interface AssetEntryPersistence
entryId
- the primary key of the current asset entryvisible
- the visibleorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry getByVisible_PrevAndNext(Session session, AssetEntry assetEntry, boolean visible, OrderByComparator orderByComparator, boolean previous)
public List<AssetEntry> findByPublishDate(Date publishDate) throws SystemException
findByPublishDate
in interface AssetEntryPersistence
publishDate
- the publish date
SystemException
- if a system exception occurredpublic List<AssetEntry> findByPublishDate(Date publishDate, int start, int end) throws SystemException
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.
findByPublishDate
in interface AssetEntryPersistence
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByPublishDate
in interface AssetEntryPersistence
publishDate
- the publish datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByPublishDate_First
in interface AssetEntryPersistence
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator orderByComparator) throws SystemException
fetchByPublishDate_First
in interface AssetEntryPersistence
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByPublishDate_Last
in interface AssetEntryPersistence
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator orderByComparator) throws SystemException
fetchByPublishDate_Last
in interface AssetEntryPersistence
publishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByPublishDate_PrevAndNext
in interface AssetEntryPersistence
entryId
- the primary key of the current asset entrypublishDate
- the publish dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry getByPublishDate_PrevAndNext(Session session, AssetEntry assetEntry, Date publishDate, OrderByComparator orderByComparator, boolean previous)
public List<AssetEntry> findByExpirationDate(Date expirationDate) throws SystemException
findByExpirationDate
in interface AssetEntryPersistence
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end) throws SystemException
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.
findByExpirationDate
in interface AssetEntryPersistence
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByExpirationDate
in interface AssetEntryPersistence
expirationDate
- the expiration datestart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByExpirationDate_First
in interface AssetEntryPersistence
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator) throws SystemException
fetchByExpirationDate_First
in interface AssetEntryPersistence
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByExpirationDate_Last
in interface AssetEntryPersistence
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator) throws SystemException
fetchByExpirationDate_Last
in interface AssetEntryPersistence
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByExpirationDate_PrevAndNext
in interface AssetEntryPersistence
entryId
- the primary key of the current asset entryexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry getByExpirationDate_PrevAndNext(Session session, AssetEntry assetEntry, Date expirationDate, OrderByComparator orderByComparator, boolean previous)
public List<AssetEntry> findByLayoutUuid(String layoutUuid) throws SystemException
findByLayoutUuid
in interface AssetEntryPersistence
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end) throws SystemException
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.
findByLayoutUuid
in interface AssetEntryPersistence
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByLayoutUuid
in interface AssetEntryPersistence
layoutUuid
- the layout uuidstart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByLayoutUuid_First
in interface AssetEntryPersistence
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator orderByComparator) throws SystemException
fetchByLayoutUuid_First
in interface AssetEntryPersistence
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByLayoutUuid_Last
in interface AssetEntryPersistence
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator orderByComparator) throws SystemException
fetchByLayoutUuid_Last
in interface AssetEntryPersistence
layoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator orderByComparator) throws NoSuchEntryException, SystemException
findByLayoutUuid_PrevAndNext
in interface AssetEntryPersistence
entryId
- the primary key of the current asset entrylayoutUuid
- the layout uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetEntry getByLayoutUuid_PrevAndNext(Session session, AssetEntry assetEntry, String layoutUuid, OrderByComparator orderByComparator, boolean previous)
public AssetEntry findByG_CU(long groupId, String classUuid) throws NoSuchEntryException, SystemException
NoSuchEntryException
if it could not be found.
findByG_CU
in interface AssetEntryPersistence
groupId
- the group IDclassUuid
- the class uuid
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByG_CU(long groupId, String classUuid) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_CU
in interface AssetEntryPersistence
groupId
- the group IDclassUuid
- the class uuid
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_CU
in interface AssetEntryPersistence
groupId
- the group IDclassUuid
- the class uuidretrieveFromCache
- whether to use the finder cache
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry findByC_C(long classNameId, long classPK) throws NoSuchEntryException, SystemException
NoSuchEntryException
if it could not be found.
findByC_C
in interface AssetEntryPersistence
classNameId
- the class name IDclassPK
- the class p k
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByC_C(long classNameId, long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_C
in interface AssetEntryPersistence
classNameId
- the class name IDclassPK
- the class p k
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic AssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_C
in interface AssetEntryPersistence
classNameId
- the class name IDclassPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredpublic List<AssetEntry> findAll() throws SystemException
findAll
in interface AssetEntryPersistence
SystemException
- if a system exception occurredpublic List<AssetEntry> findAll(int start, int end) throws SystemException
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.
findAll
in interface AssetEntryPersistence
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetEntry> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface AssetEntryPersistence
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface AssetEntryPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic void removeByVisible(boolean visible) throws SystemException
removeByVisible
in interface AssetEntryPersistence
visible
- the visible
SystemException
- if a system exception occurredpublic void removeByPublishDate(Date publishDate) throws SystemException
removeByPublishDate
in interface AssetEntryPersistence
publishDate
- the publish date
SystemException
- if a system exception occurredpublic void removeByExpirationDate(Date expirationDate) throws SystemException
removeByExpirationDate
in interface AssetEntryPersistence
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic void removeByLayoutUuid(String layoutUuid) throws SystemException
removeByLayoutUuid
in interface AssetEntryPersistence
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic AssetEntry removeByG_CU(long groupId, String classUuid) throws NoSuchEntryException, SystemException
removeByG_CU
in interface AssetEntryPersistence
groupId
- the group IDclassUuid
- the class uuid
SystemException
- if a system exception occurred
NoSuchEntryException
public AssetEntry removeByC_C(long classNameId, long classPK) throws NoSuchEntryException, SystemException
removeByC_C
in interface AssetEntryPersistence
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurred
NoSuchEntryException
public void removeAll() throws SystemException
removeAll
in interface AssetEntryPersistence
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface AssetEntryPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic int countByVisible(boolean visible) throws SystemException
countByVisible
in interface AssetEntryPersistence
visible
- the visible
SystemException
- if a system exception occurredpublic int countByPublishDate(Date publishDate) throws SystemException
countByPublishDate
in interface AssetEntryPersistence
publishDate
- the publish date
SystemException
- if a system exception occurredpublic int countByExpirationDate(Date expirationDate) throws SystemException
countByExpirationDate
in interface AssetEntryPersistence
expirationDate
- the expiration date
SystemException
- if a system exception occurredpublic int countByLayoutUuid(String layoutUuid) throws SystemException
countByLayoutUuid
in interface AssetEntryPersistence
layoutUuid
- the layout uuid
SystemException
- if a system exception occurredpublic int countByG_CU(long groupId, String classUuid) throws SystemException
countByG_CU
in interface AssetEntryPersistence
groupId
- the group IDclassUuid
- the class uuid
SystemException
- if a system exception occurredpublic int countByC_C(long classNameId, long classPK) throws SystemException
countByC_C
in interface AssetEntryPersistence
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface AssetEntryPersistence
SystemException
- if a system exception occurredpublic List<AssetCategory> getAssetCategories(long pk) throws SystemException
getAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic List<AssetCategory> getAssetCategories(long pk, int start, int end) throws SystemException
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.
getAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
getAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic int getAssetCategoriesSize(long pk) throws SystemException
getAssetCategoriesSize
in interface AssetEntryPersistence
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic boolean containsAssetCategory(long pk, long assetCategoryPK) throws SystemException
true
if the asset category is associated with the asset entry.
containsAssetCategory
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
true
if the asset category is associated with the asset entry; false
otherwise
SystemException
- if a system exception occurredpublic boolean containsAssetCategories(long pk) throws SystemException
true
if the asset entry has any asset categories associated with it.
containsAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entry to check for associations with asset categories
true
if the asset entry has any asset categories associated with it; false
otherwise
SystemException
- if a system exception occurredpublic void addAssetCategory(long pk, long assetCategoryPK) throws SystemException
addAssetCategory
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredpublic void addAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
addAssetCategory
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredpublic void addAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
addAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredpublic void addAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
addAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredpublic void clearAssetCategories(long pk) throws SystemException
clearAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entry to clear the associated asset categories from
SystemException
- if a system exception occurredpublic void removeAssetCategory(long pk, long assetCategoryPK) throws SystemException
removeAssetCategory
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredpublic void removeAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
removeAssetCategory
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredpublic void removeAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
removeAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredpublic void removeAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
removeAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredpublic void setAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
setAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredpublic void setAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
setAssetCategories
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetCategories
- the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredpublic List<AssetTag> getAssetTags(long pk) throws SystemException
getAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic List<AssetTag> getAssetTags(long pk, int start, int end) throws SystemException
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.
getAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
getAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entrystart
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic int getAssetTagsSize(long pk) throws SystemException
getAssetTagsSize
in interface AssetEntryPersistence
pk
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic boolean containsAssetTag(long pk, long assetTagPK) throws SystemException
true
if the asset tag is associated with the asset entry.
containsAssetTag
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
true
if the asset tag is associated with the asset entry; false
otherwise
SystemException
- if a system exception occurredpublic boolean containsAssetTags(long pk) throws SystemException
true
if the asset entry has any asset tags associated with it.
containsAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entry to check for associations with asset tags
true
if the asset entry has any asset tags associated with it; false
otherwise
SystemException
- if a system exception occurredpublic void addAssetTag(long pk, long assetTagPK) throws SystemException
addAssetTag
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredpublic void addAssetTag(long pk, AssetTag assetTag) throws SystemException
addAssetTag
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredpublic void addAssetTags(long pk, long[] assetTagPKs) throws SystemException
addAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredpublic void addAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
addAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredpublic void clearAssetTags(long pk) throws SystemException
clearAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entry to clear the associated asset tags from
SystemException
- if a system exception occurredpublic void removeAssetTag(long pk, long assetTagPK) throws SystemException
removeAssetTag
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredpublic void removeAssetTag(long pk, AssetTag assetTag) throws SystemException
removeAssetTag
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredpublic void removeAssetTags(long pk, long[] assetTagPKs) throws SystemException
removeAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredpublic void removeAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
removeAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredpublic void setAssetTags(long pk, long[] assetTagPKs) throws SystemException
setAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags to be associated with the asset entry
SystemException
- if a system exception occurredpublic void setAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
setAssetTags
in interface AssetEntryPersistence
pk
- the primary key of the asset entryassetTags
- the asset tags to be associated with the asset entry
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |