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 void
cacheResult
(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) Caches the asset entry asset category rel in the entity cache if it is enabled.static void
cacheResult
(List<AssetEntryAssetCategoryRel> assetEntryAssetCategoryRels) Caches the asset entry asset category rels in the entity cache if it is enabled.static void
static void
clearCache
(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) static int
countAll()
Returns the number of asset entry asset category rels.static int
countByA_A
(long assetEntryId, long assetCategoryId) Returns the number of asset entry asset category rels where assetEntryId = ? and assetCategoryId = ?.static int
countByAssetCategoryId
(long assetCategoryId) Returns the number of asset entry asset category rels where assetCategoryId = ?.static int
countByAssetEntryId
(long assetEntryId) Returns the number of asset entry asset category rels where assetEntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AssetEntryAssetCategoryRel
create
(long assetEntryAssetCategoryRelId) Creates a new asset entry asset category rel with the primary key.static AssetEntryAssetCategoryRel
fetchByA_A
(long assetEntryId, long assetCategoryId) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnull
if it could not be found.static AssetEntryAssetCategoryRel
fetchByA_A
(long assetEntryId, long assetCategoryId, boolean useFinderCache) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.static AssetEntryAssetCategoryRel
fetchByPrimaryKey
(long assetEntryAssetCategoryRelId) Returns the asset entry asset category rel with the primary key or returnsnull
if 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 AssetEntryAssetCategoryRel
findByA_A
(long assetEntryId, long assetCategoryId) Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or throws aNoSuchEntryAssetCategoryRelException
if 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 AssetEntryAssetCategoryRel
findByAssetCategoryId_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 AssetEntryAssetCategoryRel
findByAssetCategoryId_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 AssetEntryAssetCategoryRel
findByAssetEntryId_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 AssetEntryAssetCategoryRel
findByAssetEntryId_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 AssetEntryAssetCategoryRel
findByPrimaryKey
(long assetEntryAssetCategoryRelId) Returns the asset entry asset category rel with the primary key or throws aNoSuchEntryAssetCategoryRelException
if 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 AssetEntryAssetCategoryRel
remove
(long assetEntryAssetCategoryRelId) Removes the asset entry asset category rel with the primary key from the database.static void
Removes all the asset entry asset category rels from the database.static AssetEntryAssetCategoryRel
removeByA_A
(long assetEntryId, long assetCategoryId) Removes the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? from the database.static void
removeByAssetCategoryId
(long assetCategoryId) Removes all the asset entry asset category rels where assetCategoryId = ? from the database.static void
removeByAssetEntryId
(long assetEntryId) Removes all the asset entry asset category rels where assetEntryId = ? from the database.static void
setPersistence
(AssetEntryAssetCategoryRelPersistence persistence) static AssetEntryAssetCategoryRel
update
(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) static AssetEntryAssetCategoryRel
update
(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetEntryAssetCategoryRel
updateImpl
(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel)
-
Constructor Details
-
AssetEntryAssetCategoryRelUtil
public AssetEntryAssetCategoryRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,AssetEntryAssetCategoryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<AssetEntryAssetCategoryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
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:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static AssetEntryAssetCategoryRel update(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static AssetEntryAssetCategoryRel update(AssetEntryAssetCategoryRel assetEntryAssetCategoryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a matching asset entry asset category rel could not be foundNoSuchEntryAssetCategoryRelException
-
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
null
if 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a matching asset entry asset category rel could not be foundNoSuchEntryAssetCategoryRelException
-
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
null
if 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a asset entry asset category rel with the primary key could not be foundNoSuchEntryAssetCategoryRelException
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a matching asset entry asset category rel could not be foundNoSuchEntryAssetCategoryRelException
-
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
null
if 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a matching asset entry asset category rel could not be foundNoSuchEntryAssetCategoryRelException
-
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
null
if 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a asset entry asset category rel with the primary key could not be foundNoSuchEntryAssetCategoryRelException
-
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 aNoSuchEntryAssetCategoryRelException
if it could not be found.- Parameters:
assetEntryId
- the asset entry IDassetCategoryId
- the asset category ID- Returns:
- the matching asset entry asset category rel
- Throws:
NoSuchEntryAssetCategoryRelException
- if a matching asset entry asset category rel could not be foundNoSuchEntryAssetCategoryRelException
-
fetchByA_A
Returns the asset entry asset category rel where assetEntryId = ? and assetCategoryId = ? or returnsnull
if 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
null
if 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 returnsnull
if 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
null
if 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
- Throws:
NoSuchEntryAssetCategoryRelException
- if a asset entry asset category rel with the primary key could not be foundNoSuchEntryAssetCategoryRelException
-
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 aNoSuchEntryAssetCategoryRelException
if it could not be found.- Parameters:
assetEntryAssetCategoryRelId
- the primary key of the asset entry asset category rel- Returns:
- the asset entry asset category rel
- Throws:
NoSuchEntryAssetCategoryRelException
- if a asset entry asset category rel with the primary key could not be foundNoSuchEntryAssetCategoryRelException
-
fetchByPrimaryKey
Returns the asset entry asset category rel with the primary key or returnsnull
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-