|
Liferay 6.0.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssetTagPersistence
The persistence interface for the asset tag service.
Never modify or reference this interface directly. Always use AssetTagUtil to access the asset tag persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
AssetTagPersistenceImpl,
AssetTagUtil| Method Summary | |
|---|---|
void |
addAssetEntries(long pk,
List<AssetEntry> assetEntries)
Adds an association between the asset tag and the asset entries. |
void |
addAssetEntries(long pk,
long[] assetEntryPKs)
Adds an association between the asset tag and the asset entries. |
void |
addAssetEntry(long pk,
AssetEntry assetEntry)
Adds an association between the asset tag and the asset entry. |
void |
addAssetEntry(long pk,
long assetEntryPK)
Adds an association between the asset tag and the asset entry. |
void |
cacheResult(AssetTag assetTag)
Caches the asset tag in the entity cache if it is enabled. |
void |
cacheResult(List<AssetTag> assetTags)
Caches the asset tags in the entity cache if it is enabled. |
void |
clearAssetEntries(long pk)
Clears all associations between the asset tag and its asset entries. |
boolean |
containsAssetEntries(long pk)
Determines whether the asset tag has any asset entries associated with it. |
boolean |
containsAssetEntry(long pk,
long assetEntryPK)
Determines whether the asset entry is associated with the asset tag. |
int |
countAll()
Counts all the asset tags. |
int |
countByGroupId(long groupId)
Counts all the asset tags where groupId = ?. |
AssetTag |
create(long tagId)
Creates a new asset tag with the primary key. |
AssetTag |
fetchByPrimaryKey(long tagId)
Finds the asset tag with the primary key or returns null if it could not be found. |
int |
filterCountByGroupId(long groupId)
Filters by the user's permissions and counts all the asset tags where groupId = ?. |
List<AssetTag> |
filterFindByGroupId(long groupId)
Filters by the user's permissions and finds all the asset tags where groupId = ?. |
List<AssetTag> |
filterFindByGroupId(long groupId,
int start,
int end)
Filters by the user's permissions and finds a range of all the asset tags where groupId = ?. |
List<AssetTag> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the asset tags where groupId = ?. |
List<AssetTag> |
findAll()
Finds all the asset tags. |
List<AssetTag> |
findAll(int start,
int end)
Finds a range of all the asset tags. |
List<AssetTag> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset tags. |
AssetTag |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first asset tag in the ordered set where groupId = ?. |
AssetTag |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last asset tag in the ordered set where groupId = ?. |
AssetTag[] |
findByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator orderByComparator)
Finds the asset tags before and after the current asset tag in the ordered set where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId)
Finds all the asset tags where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the asset tags where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset tags where groupId = ?. |
AssetTag |
findByPrimaryKey(long tagId)
Finds the asset tag with the primary key or throws a NoSuchTagException if it could not be found. |
List<AssetEntry> |
getAssetEntries(long pk)
Gets all the asset entries associated with the asset tag. |
List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end)
Gets a range of all the asset entries associated with the asset tag. |
List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the asset entries associated with the asset tag. |
int |
getAssetEntriesSize(long pk)
Gets the number of asset entries associated with the asset tag. |
AssetTag |
remove(long tagId)
Removes the asset tag with the primary key from the database. |
void |
removeAll()
Removes all the asset tags from the database. |
void |
removeAssetEntries(long pk,
List<AssetEntry> assetEntries)
Removes the association between the asset tag and the asset entries. |
void |
removeAssetEntries(long pk,
long[] assetEntryPKs)
Removes the association between the asset tag and the asset entries. |
void |
removeAssetEntry(long pk,
AssetEntry assetEntry)
Removes the association between the asset tag and the asset entry. |
void |
removeAssetEntry(long pk,
long assetEntryPK)
Removes the association between the asset tag and the asset entry. |
void |
removeByGroupId(long groupId)
Removes all the asset tags where groupId = ? from the database. |
void |
setAssetEntries(long pk,
List<AssetEntry> assetEntries)
Sets the asset entries associated with the asset tag, removing and adding associations as necessary. |
void |
setAssetEntries(long pk,
long[] assetEntryPKs)
Sets the asset entries associated with the asset tag, removing and adding associations as necessary. |
AssetTag |
updateImpl(AssetTag assetTag,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(AssetTag assetTag)
assetTag - the asset tag to cachevoid cacheResult(List<AssetTag> assetTags)
assetTags - the asset tags to cacheAssetTag create(long tagId)
tagId - the primary key for the new asset tag
AssetTag remove(long tagId)
throws SystemException,
NoSuchTagException
tagId - the primary key of the asset tag to remove
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred
AssetTag updateImpl(AssetTag assetTag,
boolean merge)
throws SystemException
SystemException
AssetTag findByPrimaryKey(long tagId)
throws SystemException,
NoSuchTagException
NoSuchTagException if it could not be found.
tagId - the primary key of the asset tag to find
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred
AssetTag fetchByPrimaryKey(long tagId)
throws SystemException
null if it could not be found.
tagId - the primary key of the asset tag to find
null if a asset tag with the primary key could not be found
SystemException - if a system exception occurred
List<AssetTag> findByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
List<AssetTag> findByGroupId(long groupId,
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.
groupId - the group id to search withstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)
SystemException - if a system exception occurred
List<AssetTag> findByGroupId(long groupId,
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.
groupId - the group id to search withstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
AssetTag findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchTagException
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.
groupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchTagException - if a matching asset tag could not be found
SystemException - if a system exception occurred
AssetTag findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchTagException
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.
groupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchTagException - if a matching asset tag could not be found
SystemException - if a system exception occurred
AssetTag[] findByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchTagException
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.
tagId - the primary key of the current asset taggroupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchTagException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred
List<AssetTag> filterFindByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
List<AssetTag> filterFindByGroupId(long groupId,
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.
groupId - the group id to search withstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)
SystemException - if a system exception occurred
List<AssetTag> filterFindByGroupId(long groupId,
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.
groupId - the group id to search withstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
List<AssetTag> findAll()
throws SystemException
SystemException - if a system exception occurred
List<AssetTag> 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 tags to returnend - the upper bound of the range of asset tags to return (not inclusive)
SystemException - if a system exception occurred
List<AssetTag> 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 tags to returnend - the upper bound of the range of asset tags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
int filterCountByGroupId(long groupId)
throws SystemException
groupId - the group id to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
List<AssetEntry> getAssetEntries(long pk)
throws SystemException
pk - the primary key of the asset tag to get the associated asset entries for
SystemException - if a system exception occurred
List<AssetEntry> getAssetEntries(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 tag to get the associated asset entries forstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)
SystemException - if a system exception occurred
List<AssetEntry> getAssetEntries(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 tag to get the associated asset entries forstart - the lower bound of the range of asset tags to returnend - the upper bound of the range of asset tags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
int getAssetEntriesSize(long pk)
throws SystemException
pk - the primary key of the asset tag to get the number of associated asset entries for
SystemException - if a system exception occurred
boolean containsAssetEntry(long pk,
long assetEntryPK)
throws SystemException
pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
boolean containsAssetEntries(long pk)
throws SystemException
pk - the primary key of the asset tag to check for associations with asset entries
SystemException - if a system exception occurred
void addAssetEntry(long pk,
long assetEntryPK)
throws SystemException
pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
void addAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
pk - the primary key of the asset tagassetEntry - the asset entry
SystemException - if a system exception occurred
void addAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries
SystemException - if a system exception occurred
void addAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tagassetEntries - the asset entries
SystemException - if a system exception occurred
void clearAssetEntries(long pk)
throws SystemException
pk - the primary key of the asset tag to clear the associated asset entries from
SystemException - if a system exception occurred
void removeAssetEntry(long pk,
long assetEntryPK)
throws SystemException
pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
void removeAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
pk - the primary key of the asset tagassetEntry - the asset entry
SystemException - if a system exception occurred
void removeAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries
SystemException - if a system exception occurred
void removeAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tagassetEntries - the asset entries
SystemException - if a system exception occurred
void setAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tag to set the associations forassetEntryPKs - the primary keys of the asset entries to be associated with the asset tag
SystemException - if a system exception occurred
void setAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tag to set the associations forassetEntries - the asset entries to be associated with the asset tag
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 | |||||||||