@ProviderType public interface AssetTagPersistence extends BasePersistence<AssetTag>
Caching information and settings can be found in portal.properties
AssetTagPersistenceImpl,
AssetTagUtil| Modifier and Type | Method and Description |
|---|---|
void |
addAssetEntries(long pk,
java.util.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(java.util.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)
Returns
true if the asset tag has any asset entries associated with it. |
boolean |
containsAssetEntry(long pk,
long assetEntryPK)
Returns
true if the asset entry is associated with the asset tag. |
int |
countAll()
Returns the number of asset tags.
|
int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of asset tags where groupId = ? and name = ?.
|
int |
countByGroupId(long groupId)
Returns the number of asset tags where groupId = ?.
|
AssetTag |
create(long tagId)
Creates a new asset tag with the primary key.
|
AssetTag |
fetchByG_N(long groupId,
java.lang.String name)
Returns the asset tag where groupId = ? and name = ? or returns
null if it could not be found. |
AssetTag |
fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
Returns the asset tag where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
AssetTag |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first asset tag in the ordered set where groupId = ?.
|
AssetTag |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last asset tag in the ordered set where groupId = ?.
|
AssetTag |
fetchByPrimaryKey(long tagId)
Returns the asset tag with the primary key or returns
null if it could not be found. |
int |
filterCountByGroupId(long groupId)
Returns the number of asset tags that the user has permission to view where groupId = ?.
|
AssetTag[] |
filterFindByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator orderByComparator)
Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = ?.
|
java.util.List<AssetTag> |
filterFindByGroupId(long groupId)
Returns all the asset tags that the user has permission to view where groupId = ?.
|
java.util.List<AssetTag> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the asset tags that the user has permission to view where groupId = ?.
|
java.util.List<AssetTag> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?.
|
java.util.List<AssetTag> |
findAll()
Returns all the asset tags.
|
java.util.List<AssetTag> |
findAll(int start,
int end)
Returns a range of all the asset tags.
|
java.util.List<AssetTag> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tags.
|
AssetTag |
findByG_N(long groupId,
java.lang.String name)
Returns the asset tag where groupId = ? and name = ? or throws a
NoSuchTagException if it could not be found. |
AssetTag |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first asset tag in the ordered set where groupId = ?.
|
AssetTag |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last asset tag in the ordered set where groupId = ?.
|
AssetTag[] |
findByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator orderByComparator)
Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?.
|
java.util.List<AssetTag> |
findByGroupId(long groupId)
Returns all the asset tags where groupId = ?.
|
java.util.List<AssetTag> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the asset tags where groupId = ?.
|
java.util.List<AssetTag> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tags where groupId = ?.
|
AssetTag |
findByPrimaryKey(long tagId)
Returns the asset tag with the primary key or throws a
NoSuchTagException if it could not be found. |
java.util.List<AssetEntry> |
getAssetEntries(long pk)
Returns all the asset entries associated with the asset tag.
|
java.util.List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end)
Returns a range of all the asset entries associated with the asset tag.
|
java.util.List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset entries associated with the asset tag.
|
int |
getAssetEntriesSize(long pk)
Returns the number of asset entries associated with the asset tag.
|
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,
java.util.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.
|
AssetTag |
removeByG_N(long groupId,
java.lang.String name)
Removes the asset tag where groupId = ? and name = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the asset tags where groupId = ? from the database.
|
void |
setAssetEntries(long pk,
java.util.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) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updatejava.util.List<AssetTag> findByGroupId(long groupId) throws SystemException
groupId - the group IDSystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)SystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredAssetTag findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchTagException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTagException - if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchTagException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTagException - if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchTagException
tagId - the primary key of the current asset taggroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTagException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<AssetTag> filterFindByGroupId(long groupId) throws SystemException
groupId - the group IDSystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)SystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredAssetTag[] filterFindByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchTagException
tagId - the primary key of the current asset taggroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTagException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredvoid removeByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredint countByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredint filterCountByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredAssetTag findByG_N(long groupId, java.lang.String name) throws SystemException, NoSuchTagException
NoSuchTagException if it could not be found.groupId - the group IDname - the nameNoSuchTagException - if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag fetchByG_N(long groupId, java.lang.String name) throws SystemException
null if it could not be found. Uses the finder cache.groupId - the group IDname - the namenull if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.groupId - the group IDname - the nameretrieveFromCache - whether to use the finder cachenull if a matching asset tag could not be foundSystemException - if a system exception occurredAssetTag removeByG_N(long groupId, java.lang.String name) throws SystemException, NoSuchTagException
groupId - the group IDname - the nameSystemException - if a system exception occurredNoSuchTagExceptionint countByG_N(long groupId,
java.lang.String name)
throws SystemException
groupId - the group IDname - the nameSystemException - if a system exception occurredvoid cacheResult(AssetTag assetTag)
assetTag - the asset tagvoid cacheResult(java.util.List<AssetTag> assetTags)
assetTags - the asset tagsAssetTag create(long tagId)
tagId - the primary key for the new asset tagAssetTag remove(long tagId) throws SystemException, NoSuchTagException
tagId - the primary key of the asset tagNoSuchTagException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredAssetTag updateImpl(AssetTag assetTag) throws SystemException
SystemExceptionAssetTag findByPrimaryKey(long tagId) throws SystemException, NoSuchTagException
NoSuchTagException if it could not be found.tagId - the primary key of the asset tagNoSuchTagException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredAssetTag fetchByPrimaryKey(long tagId) throws SystemException
null if it could not be found.tagId - the primary key of the asset tagnull if a asset tag with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<AssetTag> findAll() throws SystemException
SystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)SystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredvoid removeAll()
throws SystemException
SystemException - if a system exception occurredint countAll()
throws SystemException
SystemException - if a system exception occurredjava.util.List<AssetEntry> getAssetEntries(long pk) throws SystemException
pk - the primary key of the asset tagSystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk - the primary key of the asset tagstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)SystemException - if a system exception occurredjava.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk - the primary key of the asset tagstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredint getAssetEntriesSize(long pk)
throws SystemException
pk - the primary key of the asset tagSystemException - if a system exception occurredboolean containsAssetEntry(long pk,
long assetEntryPK)
throws SystemException
true if the asset entry is associated with the asset tag.pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entrytrue if the asset entry is associated with the asset tag; false otherwiseSystemException - if a system exception occurredboolean containsAssetEntries(long pk)
throws SystemException
true if the asset tag has any asset entries associated with it.pk - the primary key of the asset tag to check for associations with asset entriestrue if the asset tag has any asset entries associated with it; false otherwiseSystemException - if a system exception occurredvoid addAssetEntry(long pk,
long assetEntryPK)
throws SystemException
pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entrySystemException - if a system exception occurredvoid addAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
pk - the primary key of the asset tagassetEntry - the asset entrySystemException - if a system exception occurredvoid addAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entriesSystemException - if a system exception occurredvoid addAssetEntries(long pk,
java.util.List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tagassetEntries - the asset entriesSystemException - if a system exception occurredvoid clearAssetEntries(long pk)
throws SystemException
pk - the primary key of the asset tag to clear the associated asset entries fromSystemException - if a system exception occurredvoid removeAssetEntry(long pk,
long assetEntryPK)
throws SystemException
pk - the primary key of the asset tagassetEntryPK - the primary key of the asset entrySystemException - if a system exception occurredvoid removeAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
pk - the primary key of the asset tagassetEntry - the asset entrySystemException - if a system exception occurredvoid removeAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entriesSystemException - if a system exception occurredvoid removeAssetEntries(long pk,
java.util.List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tagassetEntries - the asset entriesSystemException - if a system exception occurredvoid setAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
pk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries to be associated with the asset tagSystemException - if a system exception occurredvoid setAssetEntries(long pk,
java.util.List<AssetEntry> assetEntries)
throws SystemException
pk - the primary key of the asset tagassetEntries - the asset entries to be associated with the asset tagSystemException - if a system exception occurred