|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetTag>
com.liferay.portlet.asset.service.persistence.impl.AssetTagPersistenceImpl
@ProviderType public class AssetTagPersistenceImpl
The persistence implementation for the asset tag service.
Caching information and settings can be found in portal.properties
AssetTagPersistence,
AssetTagUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 | |
|---|---|
AssetTagPersistenceImpl()
|
|
| 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 |
afterPropertiesSet()
Initializes the asset tag persistence. |
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. |
protected void |
cacheUniqueFindersCache(AssetTag assetTag)
|
void |
clearAssetEntries(long pk)
Clears all associations between the asset tag and its asset entries. |
void |
clearCache()
Clears the cache for all asset tags. |
void |
clearCache(AssetTag assetTag)
Clears the cache for the asset tag. |
void |
clearCache(List<AssetTag> assetTags)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(AssetTag assetTag)
|
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,
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. |
void |
destroy()
|
AssetTag |
fetchByG_N(long groupId,
String name)
Returns the asset tag where groupId = ? and name = ? or returns null if it could not be found. |
AssetTag |
fetchByG_N(long groupId,
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<AssetTag> orderByComparator)
Returns the first asset tag in the ordered set where groupId = ?. |
AssetTag |
fetchByGroupId_Last(long groupId,
OrderByComparator<AssetTag> 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. |
AssetTag |
fetchByPrimaryKey(Serializable primaryKey)
Returns the asset tag with the primary key or returns null if it could not be found. |
Map<Serializable,AssetTag> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
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<AssetTag> 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 = ?. |
List<AssetTag> |
filterFindByGroupId(long groupId)
Returns all the asset tags that the user has permission to view where groupId = ?. |
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 = ?. |
List<AssetTag> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?. |
protected AssetTag |
filterGetByGroupId_PrevAndNext(Session session,
AssetTag assetTag,
long groupId,
OrderByComparator<AssetTag> orderByComparator,
boolean previous)
|
List<AssetTag> |
findAll()
Returns all the asset tags. |
List<AssetTag> |
findAll(int start,
int end)
Returns a range of all the asset tags. |
List<AssetTag> |
findAll(int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags. |
AssetTag |
findByG_N(long groupId,
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<AssetTag> orderByComparator)
Returns the first asset tag in the ordered set where groupId = ?. |
AssetTag |
findByGroupId_Last(long groupId,
OrderByComparator<AssetTag> orderByComparator)
Returns the last asset tag in the ordered set where groupId = ?. |
AssetTag[] |
findByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator<AssetTag> orderByComparator)
Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId)
Returns all the asset tags where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the asset tags where groupId = ?. |
List<AssetTag> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetTag> 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. |
AssetTag |
findByPrimaryKey(Serializable primaryKey)
Returns the asset tag with the primary key or throws a NoSuchModelException if it could not be found. |
List<AssetEntry> |
getAssetEntries(long pk)
Returns all the asset entries associated with the asset tag. |
List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end)
Returns a range of all the asset entries associated with the asset tag. |
List<AssetEntry> |
getAssetEntries(long pk,
int start,
int end,
OrderByComparator<AssetEntry> 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. |
long[] |
getAssetEntryPrimaryKeys(long pk)
Returns the primaryKeys of asset entries associated with the asset tag. |
protected AssetTag |
getByGroupId_PrevAndNext(Session session,
AssetTag assetTag,
long groupId,
OrderByComparator<AssetTag> orderByComparator,
boolean previous)
|
AssetTag |
remove(long tagId)
Removes the asset tag with the primary key from the database. |
AssetTag |
remove(Serializable primaryKey)
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. |
AssetTag |
removeByG_N(long groupId,
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. |
protected AssetTag |
removeImpl(AssetTag assetTag)
Removes the model instance 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. |
protected AssetTag |
toUnwrappedModel(AssetTag assetTag)
|
AssetTag |
updateImpl(AssetTag assetTag)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| 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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_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_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FETCH_BY_G_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_N
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
protected TableMapper<AssetTag,AssetEntry> assetTagToAssetEntryTableMapper
| Constructor Detail |
|---|
public AssetTagPersistenceImpl()
| Method Detail |
|---|
public List<AssetTag> findByGroupId(long groupId)
findByGroupId in interface AssetTagPersistencegroupId - the group ID
public List<AssetTag> findByGroupId(long groupId,
int start,
int end)
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.
findByGroupId in interface AssetTagPersistencegroupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)
public List<AssetTag> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
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.
findByGroupId in interface AssetTagPersistencegroupId - 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)
public AssetTag findByGroupId_First(long groupId,
OrderByComparator<AssetTag> orderByComparator)
throws NoSuchTagException
findByGroupId_First in interface AssetTagPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTagException - if a matching asset tag could not be found
public AssetTag fetchByGroupId_First(long groupId,
OrderByComparator<AssetTag> orderByComparator)
fetchByGroupId_First in interface AssetTagPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset tag could not be found
public AssetTag findByGroupId_Last(long groupId,
OrderByComparator<AssetTag> orderByComparator)
throws NoSuchTagException
findByGroupId_Last in interface AssetTagPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTagException - if a matching asset tag could not be found
public AssetTag fetchByGroupId_Last(long groupId,
OrderByComparator<AssetTag> orderByComparator)
fetchByGroupId_Last in interface AssetTagPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset tag could not be found
public AssetTag[] findByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator<AssetTag> orderByComparator)
throws NoSuchTagException
findByGroupId_PrevAndNext in interface AssetTagPersistencetagId - 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 found
protected AssetTag getByGroupId_PrevAndNext(Session session,
AssetTag assetTag,
long groupId,
OrderByComparator<AssetTag> orderByComparator,
boolean previous)
public List<AssetTag> filterFindByGroupId(long groupId)
filterFindByGroupId in interface AssetTagPersistencegroupId - the group ID
public List<AssetTag> filterFindByGroupId(long groupId,
int start,
int end)
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.
filterFindByGroupId in interface AssetTagPersistencegroupId - the group IDstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)
public List<AssetTag> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
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.
filterFindByGroupId in interface AssetTagPersistencegroupId - 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)
public AssetTag[] filterFindByGroupId_PrevAndNext(long tagId,
long groupId,
OrderByComparator<AssetTag> orderByComparator)
throws NoSuchTagException
filterFindByGroupId_PrevAndNext in interface AssetTagPersistencetagId - 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 found
protected AssetTag filterGetByGroupId_PrevAndNext(Session session,
AssetTag assetTag,
long groupId,
OrderByComparator<AssetTag> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface AssetTagPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface AssetTagPersistencegroupId - the group ID
public int filterCountByGroupId(long groupId)
filterCountByGroupId in interface AssetTagPersistencegroupId - the group ID
public AssetTag findByG_N(long groupId,
String name)
throws NoSuchTagException
NoSuchTagException if it could not be found.
findByG_N in interface AssetTagPersistencegroupId - the group IDname - the name
NoSuchTagException - if a matching asset tag could not be found
public AssetTag fetchByG_N(long groupId,
String name)
null if it could not be found. Uses the finder cache.
fetchByG_N in interface AssetTagPersistencegroupId - the group IDname - the name
null if a matching asset tag could not be found
public AssetTag fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByG_N in interface AssetTagPersistencegroupId - the group IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching asset tag could not be found
public AssetTag removeByG_N(long groupId,
String name)
throws NoSuchTagException
removeByG_N in interface AssetTagPersistencegroupId - the group IDname - the name
NoSuchTagException
public int countByG_N(long groupId,
String name)
countByG_N in interface AssetTagPersistencegroupId - the group IDname - the name
public void cacheResult(AssetTag assetTag)
cacheResult in interface AssetTagPersistenceassetTag - the asset tagpublic void cacheResult(List<AssetTag> assetTags)
cacheResult in interface AssetTagPersistenceassetTags - the asset tagspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetTag>clearCache in class BasePersistenceImpl<AssetTag>public void clearCache(AssetTag assetTag)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetTag>clearCache in class BasePersistenceImpl<AssetTag>assetTag - the instance of this model to clear the cache forpublic void clearCache(List<AssetTag> assetTags)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<AssetTag>clearCache in class BasePersistenceImpl<AssetTag>assetTags - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(AssetTag assetTag)
protected void clearUniqueFindersCache(AssetTag assetTag)
public AssetTag create(long tagId)
create in interface AssetTagPersistencetagId - the primary key for the new asset tag
public AssetTag remove(long tagId)
throws NoSuchTagException
remove in interface AssetTagPersistencetagId - the primary key of the asset tag
NoSuchTagException - if a asset tag with the primary key could not be found
public AssetTag remove(Serializable primaryKey)
throws NoSuchTagException
remove in interface BasePersistence<AssetTag>remove in class BasePersistenceImpl<AssetTag>primaryKey - the primary key of the asset tag
NoSuchTagException - if a asset tag with the primary key could not be foundprotected AssetTag removeImpl(AssetTag assetTag)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<AssetTag>assetTag - the model instance to remove
public AssetTag updateImpl(AssetTag assetTag)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface AssetTagPersistenceupdateImpl in class BasePersistenceImpl<AssetTag>assetTag - the model instance to update
protected AssetTag toUnwrappedModel(AssetTag assetTag)
public AssetTag findByPrimaryKey(Serializable primaryKey)
throws NoSuchTagException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<AssetTag>findByPrimaryKey in class BasePersistenceImpl<AssetTag>primaryKey - the primary key of the asset tag
NoSuchTagException - if a asset tag with the primary key could not be found
public AssetTag findByPrimaryKey(long tagId)
throws NoSuchTagException
NoSuchTagException if it could not be found.
findByPrimaryKey in interface AssetTagPersistencetagId - the primary key of the asset tag
NoSuchTagException - if a asset tag with the primary key could not be foundpublic AssetTag fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<AssetTag>fetchByPrimaryKey in class BasePersistenceImpl<AssetTag>primaryKey - the primary key of the asset tag
null if a asset tag with the primary key could not be foundpublic AssetTag fetchByPrimaryKey(long tagId)
null if it could not be found.
fetchByPrimaryKey in interface AssetTagPersistencetagId - the primary key of the asset tag
null if a asset tag with the primary key could not be foundpublic Map<Serializable,AssetTag> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<AssetTag>fetchByPrimaryKeys in interface AssetTagPersistencefetchByPrimaryKeys in class BasePersistenceImpl<AssetTag>public List<AssetTag> findAll()
findAll in interface AssetTagPersistence
public List<AssetTag> findAll(int start,
int end)
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.
findAll in interface AssetTagPersistencestart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)
public List<AssetTag> findAll(int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
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.
findAll in interface AssetTagPersistencestart - 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)
public void removeAll()
removeAll in interface AssetTagPersistencepublic int countAll()
countAll in interface AssetTagPersistencepublic long[] getAssetEntryPrimaryKeys(long pk)
getAssetEntryPrimaryKeys in interface AssetTagPersistencepk - the primary key of the asset tag
public List<AssetEntry> getAssetEntries(long pk)
getAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tag
public List<AssetEntry> getAssetEntries(long pk,
int start,
int end)
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.
getAssetEntries in interface AssetTagPersistencepk - 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)
public List<AssetEntry> getAssetEntries(long pk,
int start,
int end,
OrderByComparator<AssetEntry> orderByComparator)
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.
getAssetEntries in interface AssetTagPersistencepk - 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)
public int getAssetEntriesSize(long pk)
getAssetEntriesSize in interface AssetTagPersistencepk - the primary key of the asset tag
public boolean containsAssetEntry(long pk,
long assetEntryPK)
true if the asset entry is associated with the asset tag.
containsAssetEntry in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
true if the asset entry is associated with the asset tag; false otherwisepublic boolean containsAssetEntries(long pk)
true if the asset tag has any asset entries associated with it.
containsAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tag to check for associations with asset entries
true if the asset tag has any asset entries associated with it; false otherwise
public void addAssetEntry(long pk,
long assetEntryPK)
addAssetEntry in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
public void addAssetEntry(long pk,
AssetEntry assetEntry)
addAssetEntry in interface AssetTagPersistencepk - the primary key of the asset tagassetEntry - the asset entry
public void addAssetEntries(long pk,
long[] assetEntryPKs)
addAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries
public void addAssetEntries(long pk,
List<AssetEntry> assetEntries)
addAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntries - the asset entriespublic void clearAssetEntries(long pk)
clearAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tag to clear the associated asset entries from
public void removeAssetEntry(long pk,
long assetEntryPK)
removeAssetEntry in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPK - the primary key of the asset entry
public void removeAssetEntry(long pk,
AssetEntry assetEntry)
removeAssetEntry in interface AssetTagPersistencepk - the primary key of the asset tagassetEntry - the asset entry
public void removeAssetEntries(long pk,
long[] assetEntryPKs)
removeAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries
public void removeAssetEntries(long pk,
List<AssetEntry> assetEntries)
removeAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntries - the asset entries
public void setAssetEntries(long pk,
long[] assetEntryPKs)
setAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntryPKs - the primary keys of the asset entries to be associated with the asset tag
public void setAssetEntries(long pk,
List<AssetEntry> assetEntries)
setAssetEntries in interface AssetTagPersistencepk - the primary key of the asset tagassetEntries - the asset entries to be associated with the asset tagpublic void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||