Class AssetEntryAssetCategoryRelUtil
com.liferay.asset.entry.rel.service.persistence.impl.AssetEntryAssetCategoryRelPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) Caches the asset entry asset category rel in the entity cache if it is enabled.static voidcacheResult(List<AssetEntryAssetCategoryRel> assetEntryAssetCategoryRels) Caches the asset entry asset category rels in the entity cache if it is enabled.static voidstatic voidclearCache(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) static intcountAll()Returns the number of asset entry asset category rels.static intcountByA_A(long assetEntryId, long assetCategoryId) Returns the number of asset entry asset category rels where assetEntryId = ? and assetCategoryId = ?.static intcountByAssetCategoryId(long assetCategoryId) Returns the number of asset entry asset category rels where assetCategoryId = ?.static intcountByAssetEntryId(long assetEntryId) Returns the number of asset entry asset category rels where assetEntryId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AssetEntryAssetCategoryRelcreate(long assetEntryAssetCategoryRelId) Creates a new asset entry asset category rel with the primary key.static AssetEntryAssetCategoryRelfetchByA_A(long assetEntryId, long assetCategoryId) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnullif it could not be found.static AssetEntryAssetCategoryRelfetchByA_A(long assetEntryId, long assetCategoryId, boolean useFinderCache) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnullif it could not be found, optionally using the finder cache.static AssetEntryAssetCategoryRelfetchByAssetCategoryId_First(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetCategoryId = ?.static AssetEntryAssetCategoryRelfetchByAssetCategoryId_Last(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetCategoryId = ?.static AssetEntryAssetCategoryRelfetchByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetEntryId = ?.static AssetEntryAssetCategoryRelfetchByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetEntryId = ?.static AssetEntryAssetCategoryRelfetchByPrimaryKey(long assetEntryAssetCategoryRelId) Returns the asset entry asset category rel with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<AssetEntryAssetCategoryRel> findAll()Returns all the asset entry asset category rels.static List<AssetEntryAssetCategoryRel> findAll(int start, int end) Returns a range of all the asset entry asset category rels.static List<AssetEntryAssetCategoryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels.static List<AssetEntryAssetCategoryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels.static AssetEntryAssetCategoryRelfindByA_A(long assetEntryId, long assetCategoryId) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or throws aNoSuchEntryAssetCategoryRelExceptionif it could not be found.static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId) Returns all the asset entry asset category rels where assetCategoryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end) Returns a range of all the asset entry asset category rels where assetCategoryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels where assetCategoryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels where assetCategoryId = ?.static AssetEntryAssetCategoryRelfindByAssetCategoryId_First(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetCategoryId = ?.static AssetEntryAssetCategoryRelfindByAssetCategoryId_Last(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetCategoryId = ?.static AssetEntryAssetCategoryRel[]findByAssetCategoryId_PrevAndNext(long assetEntryAssetCategoryRelId, long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the asset entry asset category rels before and after the current asset entry asset category rel in the ordered set where assetCategoryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId) Returns all the asset entry asset category rels where assetEntryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end) Returns a range of all the asset entry asset category rels where assetEntryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels where assetEntryId = ?.static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels where assetEntryId = ?.static AssetEntryAssetCategoryRelfindByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetEntryId = ?.static AssetEntryAssetCategoryRelfindByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetEntryId = ?.static AssetEntryAssetCategoryRel[]findByAssetEntryId_PrevAndNext(long assetEntryAssetCategoryRelId, long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the asset entry asset category rels before and after the current asset entry asset category rel in the ordered set where assetEntryId = ?.static AssetEntryAssetCategoryRelfindByPrimaryKey(long assetEntryAssetCategoryRelId) Returns the asset entry asset category rel with the primary key or throws aNoSuchEntryAssetCategoryRelExceptionif it could not be found.static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) static AssetEntryAssetCategoryRelremove(long assetEntryAssetCategoryRelId) Removes the asset entry asset category rel with the primary key from the database.static voidRemoves all the asset entry asset category rels from the database.static AssetEntryAssetCategoryRelremoveByA_A(long assetEntryId, long assetCategoryId) Removes the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? from the database.static voidremoveByAssetCategoryId(long assetCategoryId) Removes all the asset entry asset category rels where assetCategoryId = ? from the database.static voidremoveByAssetEntryId(long assetEntryId) Removes all the asset entry asset category rels where assetEntryId = ? from the database.static voidsetPersistence(AssetEntryAssetCategoryRelPersistence persistence) static AssetEntryAssetCategoryRelupdate(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) static AssetEntryAssetCategoryRelupdate(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetEntryAssetCategoryRelupdateImpl(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel)
-
Constructor Details
-
AssetEntryAssetCategoryRelUtil
public AssetEntryAssetCategoryRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,AssetEntryAssetCategoryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) - See Also:
-
update
public static AssetEntryAssetCategoryRel update(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) - See Also:
-
update
public static AssetEntryAssetCategoryRel update(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByAssetEntryId
Returns all the asset entry asset category rels where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry ID- Returns:
- the matching asset entry asset category rels
-
findByAssetEntryId
public static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end) Returns a range of all the asset entry asset category rels where assetEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetEntryId- the asset entry IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)- Returns:
- the range of matching asset entry asset category rels
-
findByAssetEntryId
public static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels where assetEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetEntryId- the asset entry IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching asset entry asset category rels
-
findByAssetEntryId
public static List<AssetEntryAssetCategoryRel> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels where assetEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetEntryId- the asset entry IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching asset entry asset category rels
-
findByAssetEntryId_First
public static AssetEntryAssetCategoryRel findByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the first asset entry asset category rel in the ordered set where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset entry asset category rel
-
fetchByAssetEntryId_First
public static AssetEntryAssetCategoryRel fetchByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
findByAssetEntryId_Last
public static AssetEntryAssetCategoryRel findByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the last asset entry asset category rel in the ordered set where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset entry asset category rel
-
fetchByAssetEntryId_Last
public static AssetEntryAssetCategoryRel fetchByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
findByAssetEntryId_PrevAndNext
public static AssetEntryAssetCategoryRel[] findByAssetEntryId_PrevAndNext(long assetEntryAssetCategoryRelId, long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the asset entry asset category rels before and after the current asset entry asset category rel in the ordered set where assetEntryId = ?.- Parameters:
assetEntryAssetCategoryRelId- the primary key of the current asset entry asset category relassetEntryId- the asset entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset entry asset category rel
-
removeByAssetEntryId
public static void removeByAssetEntryId(long assetEntryId) Removes all the asset entry asset category rels where assetEntryId = ? from the database.- Parameters:
assetEntryId- the asset entry ID
-
countByAssetEntryId
public static int countByAssetEntryId(long assetEntryId) Returns the number of asset entry asset category rels where assetEntryId = ?.- Parameters:
assetEntryId- the asset entry ID- Returns:
- the number of matching asset entry asset category rels
-
findByAssetCategoryId
Returns all the asset entry asset category rels where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category ID- Returns:
- the matching asset entry asset category rels
-
findByAssetCategoryId
public static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end) Returns a range of all the asset entry asset category rels where assetCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetCategoryId- the asset category IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)- Returns:
- the range of matching asset entry asset category rels
-
findByAssetCategoryId
public static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels where assetCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetCategoryId- the asset category IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching asset entry asset category rels
-
findByAssetCategoryId
public static List<AssetEntryAssetCategoryRel> findByAssetCategoryId(long assetCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels where assetCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
assetCategoryId- the asset category IDstart- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching asset entry asset category rels
-
findByAssetCategoryId_First
public static AssetEntryAssetCategoryRel findByAssetCategoryId_First(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the first asset entry asset category rel in the ordered set where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset entry asset category rel
-
fetchByAssetCategoryId_First
public static AssetEntryAssetCategoryRel fetchByAssetCategoryId_First(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the first asset entry asset category rel in the ordered set where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
findByAssetCategoryId_Last
public static AssetEntryAssetCategoryRel findByAssetCategoryId_Last(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the last asset entry asset category rel in the ordered set where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset entry asset category rel
-
fetchByAssetCategoryId_Last
public static AssetEntryAssetCategoryRel fetchByAssetCategoryId_Last(long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns the last asset entry asset category rel in the ordered set where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
findByAssetCategoryId_PrevAndNext
public static AssetEntryAssetCategoryRel[] findByAssetCategoryId_PrevAndNext(long assetEntryAssetCategoryRelId, long assetCategoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) throws NoSuchEntryAssetCategoryRelException Returns the asset entry asset category rels before and after the current asset entry asset category rel in the ordered set where assetCategoryId = ?.- Parameters:
assetEntryAssetCategoryRelId- the primary key of the current asset entry asset category relassetCategoryId- the asset category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next asset entry asset category rel
-
removeByAssetCategoryId
public static void removeByAssetCategoryId(long assetCategoryId) Removes all the asset entry asset category rels where assetCategoryId = ? from the database.- Parameters:
assetCategoryId- the asset category ID
-
countByAssetCategoryId
public static int countByAssetCategoryId(long assetCategoryId) Returns the number of asset entry asset category rels where assetCategoryId = ?.- Parameters:
assetCategoryId- the asset category ID- Returns:
- the number of matching asset entry asset category rels
-
findByA_A
public static AssetEntryAssetCategoryRel findByA_A(long assetEntryId, long assetCategoryId) throws NoSuchEntryAssetCategoryRelException Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or throws aNoSuchEntryAssetCategoryRelExceptionif it could not be found.- Parameters:
assetEntryId- the asset entry IDassetCategoryId- the asset category ID- Returns:
- the matching asset entry asset category rel
-
fetchByA_A
Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
assetEntryId- the asset entry IDassetCategoryId- the asset category ID- Returns:
- the matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
fetchByA_A
public static AssetEntryAssetCategoryRel fetchByA_A(long assetEntryId, long assetCategoryId, boolean useFinderCache) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
assetEntryId- the asset entry IDassetCategoryId- the asset category IDuseFinderCache- whether to use the finder cache- Returns:
- the matching asset entry asset category rel, or
nullif a matching asset entry asset category rel could not be found
-
removeByA_A
public static AssetEntryAssetCategoryRel removeByA_A(long assetEntryId, long assetCategoryId) throws NoSuchEntryAssetCategoryRelException Removes the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? from the database.- Parameters:
assetEntryId- the asset entry IDassetCategoryId- the asset category ID- Returns:
- the asset entry asset category rel that was removed
- Throws:
NoSuchEntryAssetCategoryRelException
-
countByA_A
public static int countByA_A(long assetEntryId, long assetCategoryId) Returns the number of asset entry asset category rels where assetEntryId = ? and assetCategoryId = ?.- Parameters:
assetEntryId- the asset entry IDassetCategoryId- the asset category ID- Returns:
- the number of matching asset entry asset category rels
-
cacheResult
Caches the asset entry asset category rel in the entity cache if it is enabled.- Parameters:
assetEntryAssetCategoryRel- the asset entry asset category rel
-
cacheResult
Caches the asset entry asset category rels in the entity cache if it is enabled.- Parameters:
assetEntryAssetCategoryRels- the asset entry asset category rels
-
create
Creates a new asset entry asset category rel with the primary key. Does not add the asset entry asset category rel to the database.- Parameters:
assetEntryAssetCategoryRelId- the primary key for the new asset entry asset category rel- Returns:
- the new asset entry asset category rel
-
remove
public static AssetEntryAssetCategoryRel remove(long assetEntryAssetCategoryRelId) throws NoSuchEntryAssetCategoryRelException Removes the asset entry asset category rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
assetEntryAssetCategoryRelId- the primary key of the asset entry asset category rel- Returns:
- the asset entry asset category rel that was removed
-
updateImpl
public static AssetEntryAssetCategoryRel updateImpl(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) -
findByPrimaryKey
public static AssetEntryAssetCategoryRel findByPrimaryKey(long assetEntryAssetCategoryRelId) throws NoSuchEntryAssetCategoryRelException Returns the asset entry asset category rel with the primary key or throws aNoSuchEntryAssetCategoryRelExceptionif it could not be found.- Parameters:
assetEntryAssetCategoryRelId- the primary key of the asset entry asset category rel- Returns:
- the asset entry asset category rel
-
fetchByPrimaryKey
Returns the asset entry asset category rel with the primary key or returnsnullif it could not be found.- Parameters:
assetEntryAssetCategoryRelId- the primary key of the asset entry asset category rel- Returns:
- the asset entry asset category rel, or
nullif a asset entry asset category rel with the primary key could not be found
-
findAll
Returns all the asset entry asset category rels.- Returns:
- the asset entry asset category rels
-
findAll
Returns a range of all the asset entry asset category rels.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
start- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)- Returns:
- the range of asset entry asset category rels
-
findAll
public static List<AssetEntryAssetCategoryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator) Returns an ordered range of all the asset entry asset category rels.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
start- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of asset entry asset category rels
-
findAll
public static List<AssetEntryAssetCategoryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetEntryAssetCategoryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the asset entry asset category rels.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromAssetEntryAssetCategoryRelModelImpl.- Parameters:
start- the lower bound of the range of asset entry asset category relsend- the upper bound of the range of asset entry asset category rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of asset entry asset category rels
-
removeAll
public static void removeAll()Removes all the asset entry asset category rels from the database. -
countAll
public static int countAll()Returns the number of asset entry asset category rels.- Returns:
- the number of asset entry asset category rels
-
getPersistence
-
setPersistence
-