Class CommerceTermEntryRelUtil
com.liferay.commerce.term.service.persistence.impl.CommerceTermEntryRelPersistenceImpl 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(CommerceTermEntryRel commerceTermEntryRel) Caches the commerce term entry rel in the entity cache if it is enabled.static voidcacheResult(List<CommerceTermEntryRel> commerceTermEntryRels) Caches the commerce term entry rels in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceTermEntryRel commerceTermEntryRel) static intcountAll()Returns the number of commerce term entry rels.static intcountByC_C(long classNameId, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static intcountByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.static intcountByCommerceTermEntryId(long commerceTermEntryId) Returns the number of commerce term entry rels where commerceTermEntryId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTermEntryRelcreate(long commerceTermEntryRelId) Creates a new commerce term entry rel with the primary key.static CommerceTermEntryRelfetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnullif it could not be found.static CommerceTermEntryRelfetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId, boolean useFinderCache) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceTermEntryRelfetchByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRelfetchByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRelfetchByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRelfetchByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRelfetchByPrimaryKey(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or returnsnullif it could not be found.static Map<Serializable, CommerceTermEntryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CommerceTermEntryRel> findAll()Returns all the commerce term entry rels.static List<CommerceTermEntryRel> findAll(int start, int end) Returns a range of all the commerce term entry rels.static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels.static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels.static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId) Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRelfindByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or throws aNoSuchTermEntryRelExceptionif it could not be found.static CommerceTermEntryRelfindByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRelfindByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel[]findByC_C_PrevAndNext(long commerceTermEntryRelId, long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId) Returns all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.static CommerceTermEntryRelfindByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRelfindByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel[]findByCommerceTermEntryId_PrevAndNext(long commerceTermEntryRelId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRelfindByPrimaryKey(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or throws aNoSuchTermEntryRelExceptionif it could not be found.static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) static CommerceTermEntryRelremove(long commerceTermEntryRelId) Removes the commerce term entry rel with the primary key from the database.static voidRemoves all the commerce term entry rels from the database.static voidremoveByC_C(long classNameId, long commerceTermEntryId) Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.static CommerceTermEntryRelremoveByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.static voidremoveByCommerceTermEntryId(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.static voidsetPersistence(CommerceTermEntryRelPersistence persistence) static CommerceTermEntryRelupdate(CommerceTermEntryRel commerceTermEntryRel) static CommerceTermEntryRelupdate(CommerceTermEntryRel commerceTermEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTermEntryRelupdateImpl(CommerceTermEntryRel commerceTermEntryRel)
-
Constructor Details
-
CommerceTermEntryRelUtil
public CommerceTermEntryRelUtil()
-
-
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,CommerceTermEntryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CommerceTermEntryRel update(CommerceTermEntryRel commerceTermEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCommerceTermEntryId
Returns all the commerce term entry rels where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry ID- Returns:
- the matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
commerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
commerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
commerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry 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 commerce term entry rels
-
findByCommerceTermEntryId_First
public static CommerceTermEntryRel findByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce term entry rel
-
fetchByCommerceTermEntryId_First
public static CommerceTermEntryRel fetchByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
findByCommerceTermEntryId_Last
public static CommerceTermEntryRel findByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce term entry rel
-
fetchByCommerceTermEntryId_Last
public static CommerceTermEntryRel fetchByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
findByCommerceTermEntryId_PrevAndNext
public static CommerceTermEntryRel[] findByCommerceTermEntryId_PrevAndNext(long commerceTermEntryRelId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryRelId- the primary key of the current commerce term entry relcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce term entry rel
-
removeByCommerceTermEntryId
public static void removeByCommerceTermEntryId(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.- Parameters:
commerceTermEntryId- the commerce term entry ID
-
countByCommerceTermEntryId
public static int countByCommerceTermEntryId(long commerceTermEntryId) Returns the number of commerce term entry rels where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
findByC_C
Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry ID- Returns:
- the matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDstart- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry 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 commerce term entry rels
-
findByC_C_First
public static CommerceTermEntryRel findByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce term entry rel
-
fetchByC_C_First
public static CommerceTermEntryRel fetchByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
findByC_C_Last
public static CommerceTermEntryRel findByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce term entry rel
-
fetchByC_C_Last
public static CommerceTermEntryRel fetchByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
findByC_C_PrevAndNext
public static CommerceTermEntryRel[] findByC_C_PrevAndNext(long commerceTermEntryRelId, long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
commerceTermEntryRelId- the primary key of the current commerce term entry relclassNameId- the class name IDcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce term entry rel
-
removeByC_C
public static void removeByC_C(long classNameId, long commerceTermEntryId) Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry ID
-
countByC_C
public static int countByC_C(long classNameId, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDcommerceTermEntryId- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
findByC_C_C
public static CommerceTermEntryRel findByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or throws aNoSuchTermEntryRelExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceTermEntryId- the commerce term entry ID- Returns:
- the matching commerce term entry rel
-
fetchByC_C_C
public static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceTermEntryId- the commerce term entry ID- Returns:
- the matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
fetchByC_C_C
public static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId, boolean useFinderCache) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceTermEntryId- the commerce term entry IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce term entry rel, or
nullif a matching commerce term entry rel could not be found
-
removeByC_C_C
public static CommerceTermEntryRel removeByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceTermEntryId- the commerce term entry ID- Returns:
- the commerce term entry rel that was removed
- Throws:
NoSuchTermEntryRelException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceTermEntryId- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
cacheResult
Caches the commerce term entry rel in the entity cache if it is enabled.- Parameters:
commerceTermEntryRel- the commerce term entry rel
-
cacheResult
Caches the commerce term entry rels in the entity cache if it is enabled.- Parameters:
commerceTermEntryRels- the commerce term entry rels
-
create
Creates a new commerce term entry rel with the primary key. Does not add the commerce term entry rel to the database.- Parameters:
commerceTermEntryRelId- the primary key for the new commerce term entry rel- Returns:
- the new commerce term entry rel
-
remove
public static CommerceTermEntryRel remove(long commerceTermEntryRelId) throws NoSuchTermEntryRelException Removes the commerce term entry rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTermEntryRelId- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel that was removed
-
updateImpl
-
findByPrimaryKey
public static CommerceTermEntryRel findByPrimaryKey(long commerceTermEntryRelId) throws NoSuchTermEntryRelException Returns the commerce term entry rel with the primary key or throws aNoSuchTermEntryRelExceptionif it could not be found.- Parameters:
commerceTermEntryRelId- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel
-
fetchByPrimaryKey
Returns the commerce term entry rel with the primary key or returnsnullif it could not be found.- Parameters:
commerceTermEntryRelId- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel, or
nullif a commerce term entry rel with the primary key could not be found
-
findAll
Returns all the commerce term entry rels.- Returns:
- the commerce term entry rels
-
findAll
Returns a range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl.- Parameters:
start- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of commerce term entry rels
-
findAll
public static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl.- Parameters:
start- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce term entry rels
-
findAll
public static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl.- Parameters:
start- the lower bound of the range of commerce term entry relsend- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of commerce term entry rels
-
removeAll
public static void removeAll()Removes all the commerce term entry rels from the database. -
countAll
public static int countAll()Returns the number of commerce term entry rels.- Returns:
- the number of commerce term entry rels
-
getPersistence
-
setPersistence
-