|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetEntryPersistence
The persistence interface for the asset entry service.
Never modify or reference this interface directly. Always use AssetEntryUtil
to access the asset entry persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
AssetEntryPersistenceImpl
,
AssetEntryUtil
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 |
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. |
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. |
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. |
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. |
AssetEntry |
remove(long entryId)
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. |
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. |
AssetEntry |
updateImpl(AssetEntry assetEntry,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(AssetEntry assetEntry)
assetEntry
- the asset entry to cachevoid cacheResult(List<AssetEntry> assetEntries)
assetEntries
- the asset entries to cacheAssetEntry create(long entryId)
entryId
- the primary key for the new asset entry
AssetEntry remove(long entryId) throws SystemException, NoSuchEntryException
entryId
- the primary key of the asset entry to remove
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredAssetEntry updateImpl(AssetEntry assetEntry, boolean merge) throws SystemException
SystemException
AssetEntry findByPrimaryKey(long entryId) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
entryId
- the primary key of the asset entry to find
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredAssetEntry fetchByPrimaryKey(long entryId) throws SystemException
null
if it could not be found.
entryId
- the primary key of the asset entry to find
null
if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredList<AssetEntry> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredList<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.
companyId
- the company id to search withstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)
SystemException
- if a system exception occurredList<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.
companyId
- the company id to search withstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredAssetEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
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.
entryId
- the primary key of the current asset entrycompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchEntryException
- if a asset entry with the primary key could not be found
SystemException
- if a system exception occurredAssetEntry findByG_CU(long groupId, String classUuid) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
groupId
- the group id to search withclassUuid
- the class uuid to search with
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry fetchByG_CU(long groupId, String classUuid) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group id to search withclassUuid
- the class uuid to search with
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group id to search withclassUuid
- the class uuid to search with
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry findByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
classNameId
- the class name id to search withclassPK
- the class p k to search with
NoSuchEntryException
- if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry fetchByC_C(long classNameId, long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
classNameId
- the class name id to search withclassPK
- the class p k to search with
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredAssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
classNameId
- the class name id to search withclassPK
- the class p k to search with
null
if a matching asset entry could not be found
SystemException
- if a system exception occurredList<AssetEntry> findAll() throws SystemException
SystemException
- if a system exception occurredList<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.
start
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)
SystemException
- if a system exception occurredList<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.
start
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredvoid removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredvoid removeByG_CU(long groupId, String classUuid) throws SystemException, NoSuchEntryException
groupId
- the group id to search withclassUuid
- the class uuid to search with
SystemException
- if a system exception occurred
NoSuchEntryException
void removeByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurred
NoSuchEntryException
void removeAll() throws SystemException
SystemException
- if a system exception occurredint countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredint countByG_CU(long groupId, String classUuid) throws SystemException
groupId
- the group id to search withclassUuid
- the class uuid to search with
SystemException
- if a system exception occurredint countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurredList<AssetCategory> getAssetCategories(long pk) throws SystemException
pk
- the primary key of the asset entry to get the associated asset categories for
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the asset entry to get the associated asset categories forstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the asset entry to get the associated asset categories forstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredint getAssetCategoriesSize(long pk) throws SystemException
pk
- the primary key of the asset entry to get the number of associated asset categories for
SystemException
- if a system exception occurredboolean containsAssetCategory(long pk, long assetCategoryPK) throws SystemException
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredboolean containsAssetCategories(long pk) throws SystemException
pk
- the primary key of the asset entry to check for associations with asset categories
SystemException
- if a system exception occurredvoid addAssetCategory(long pk, long assetCategoryPK) throws SystemException
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredvoid addAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredvoid addAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredvoid addAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredvoid clearAssetCategories(long pk) throws SystemException
pk
- the primary key of the asset entry to clear the associated asset categories from
SystemException
- if a system exception occurredvoid removeAssetCategory(long pk, long assetCategoryPK) throws SystemException
pk
- the primary key of the asset entryassetCategoryPK
- the primary key of the asset category
SystemException
- if a system exception occurredvoid removeAssetCategory(long pk, AssetCategory assetCategory) throws SystemException
pk
- the primary key of the asset entryassetCategory
- the asset category
SystemException
- if a system exception occurredvoid removeAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entryassetCategoryPKs
- the primary keys of the asset categories
SystemException
- if a system exception occurredvoid removeAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entryassetCategories
- the asset categories
SystemException
- if a system exception occurredvoid setAssetCategories(long pk, long[] assetCategoryPKs) throws SystemException
pk
- the primary key of the asset entry to set the associations forassetCategoryPKs
- the primary keys of the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredvoid setAssetCategories(long pk, List<AssetCategory> assetCategories) throws SystemException
pk
- the primary key of the asset entry to set the associations forassetCategories
- the asset categories to be associated with the asset entry
SystemException
- if a system exception occurredList<AssetTag> getAssetTags(long pk) throws SystemException
pk
- the primary key of the asset entry to get the associated asset tags for
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the asset entry to get the associated asset tags forstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the asset entry to get the associated asset tags forstart
- the lower bound of the range of asset entries to returnend
- the upper bound of the range of asset entries to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredint getAssetTagsSize(long pk) throws SystemException
pk
- the primary key of the asset entry to get the number of associated asset tags for
SystemException
- if a system exception occurredboolean containsAssetTag(long pk, long assetTagPK) throws SystemException
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredboolean containsAssetTags(long pk) throws SystemException
pk
- the primary key of the asset entry to check for associations with asset tags
SystemException
- if a system exception occurredvoid addAssetTag(long pk, long assetTagPK) throws SystemException
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredvoid addAssetTag(long pk, AssetTag assetTag) throws SystemException
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredvoid addAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredvoid addAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredvoid clearAssetTags(long pk) throws SystemException
pk
- the primary key of the asset entry to clear the associated asset tags from
SystemException
- if a system exception occurredvoid removeAssetTag(long pk, long assetTagPK) throws SystemException
pk
- the primary key of the asset entryassetTagPK
- the primary key of the asset tag
SystemException
- if a system exception occurredvoid removeAssetTag(long pk, AssetTag assetTag) throws SystemException
pk
- the primary key of the asset entryassetTag
- the asset tag
SystemException
- if a system exception occurredvoid removeAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entryassetTagPKs
- the primary keys of the asset tags
SystemException
- if a system exception occurredvoid removeAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entryassetTags
- the asset tags
SystemException
- if a system exception occurredvoid setAssetTags(long pk, long[] assetTagPKs) throws SystemException
pk
- the primary key of the asset entry to set the associations forassetTagPKs
- the primary keys of the asset tags to be associated with the asset entry
SystemException
- if a system exception occurredvoid setAssetTags(long pk, List<AssetTag> assetTags) throws SystemException
pk
- the primary key of the asset entry to set the associations forassetTags
- the asset tags to be associated with the asset entry
SystemException
- if a system exception occurred
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |