Class CommerceDiscountOrderTypeRelUtil
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountOrderTypeRelPersistenceImpl 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(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) Caches the commerce discount order type rel in the entity cache if it is enabled.static voidcacheResult(List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels) Caches the commerce discount order type rels in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) static intcountAll()Returns the number of commerce discount order type rels.static intcountByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Returns the number of commerce discount order type rels where commerceDiscountId = ? and commerceOrderTypeId = ?.static intcountByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount order type rels where commerceDiscountId = ?.static intcountByCommerceOrderTypeId(long commerceOrderTypeId) Returns the number of commerce discount order type rels where commerceOrderTypeId = ?.static intcountByUuid(String uuid) Returns the number of commerce discount order type rels where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of commerce discount order type rels where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceDiscountOrderTypeRelcreate(long commerceDiscountOrderTypeRelId) Creates a new commerce discount order type rel with the primary key.static CommerceDiscountOrderTypeRelfetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returnsnullif it could not be found.static CommerceDiscountOrderTypeRelfetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId, boolean useFinderCache) Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceDiscountOrderTypeRelfetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.static CommerceDiscountOrderTypeRelfetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.static CommerceDiscountOrderTypeRelfetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRelfetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRelfetchByPrimaryKey(long commerceDiscountOrderTypeRelId) Returns the commerce discount order type rel with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CommerceDiscountOrderTypeRelfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRelfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRelfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ?.static CommerceDiscountOrderTypeRelfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ?.static List<CommerceDiscountOrderTypeRel>findAll()Returns all the commerce discount order type rels.static List<CommerceDiscountOrderTypeRel>findAll(int start, int end) Returns a range of all the commerce discount order type rels.static List<CommerceDiscountOrderTypeRel>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels.static List<CommerceDiscountOrderTypeRel>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels.static CommerceDiscountOrderTypeRelfindByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or throws aNoSuchDiscountOrderTypeRelExceptionif it could not be found.static List<CommerceDiscountOrderTypeRel>findByCommerceDiscountId(long commerceDiscountId) Returns all the commerce discount order type rels where commerceDiscountId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount order type rels where commerceDiscountId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.static CommerceDiscountOrderTypeRelfindByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.static CommerceDiscountOrderTypeRelfindByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.static CommerceDiscountOrderTypeRel[]findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceDiscountId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId) Returns all the commerce discount order type rels where commerceOrderTypeId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end) Returns a range of all the commerce discount order type rels where commerceOrderTypeId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.static List<CommerceDiscountOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRelfindByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRelfindByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRel[]findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceDiscountOrderTypeRelfindByPrimaryKey(long commerceDiscountOrderTypeRelId) Returns the commerce discount order type rel with the primary key or throws aNoSuchDiscountOrderTypeRelExceptionif it could not be found.static List<CommerceDiscountOrderTypeRel>findByUuid(String uuid) Returns all the commerce discount order type rels where uuid = ?.static List<CommerceDiscountOrderTypeRel>findByUuid(String uuid, int start, int end) Returns a range of all the commerce discount order type rels where uuid = ?.static List<CommerceDiscountOrderTypeRel>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where uuid = ?.static List<CommerceDiscountOrderTypeRel>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where uuid = ?.static List<CommerceDiscountOrderTypeRel>findByUuid_C(String uuid, long companyId) Returns all the commerce discount order type rels where uuid = ? and companyId = ?.static List<CommerceDiscountOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce discount order type rels where uuid = ? and companyId = ?.static List<CommerceDiscountOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.static List<CommerceDiscountOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRelfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRelfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRel[]findByUuid_C_PrevAndNext(long commerceDiscountOrderTypeRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceDiscountOrderTypeRelfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ?.static CommerceDiscountOrderTypeRelfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ?.static CommerceDiscountOrderTypeRel[]findByUuid_PrevAndNext(long commerceDiscountOrderTypeRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ?.static List<CommerceDiscountOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceDiscountOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceDiscountOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) static CommerceDiscountOrderTypeRelremove(long commerceDiscountOrderTypeRelId) Removes the commerce discount order type rel with the primary key from the database.static voidRemoves all the commerce discount order type rels from the database.static CommerceDiscountOrderTypeRelremoveByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Removes the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? from the database.static voidremoveByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount order type rels where commerceDiscountId = ? from the database.static voidremoveByCommerceOrderTypeId(long commerceOrderTypeId) Removes all the commerce discount order type rels where commerceOrderTypeId = ? from the database.static voidremoveByUuid(String uuid) Removes all the commerce discount order type rels where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the commerce discount order type rels where uuid = ? and companyId = ? from the database.static voidsetPersistence(CommerceDiscountOrderTypeRelPersistence persistence) static CommerceDiscountOrderTypeRelupdate(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) static CommerceDiscountOrderTypeRelupdate(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountOrderTypeRelupdateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
-
Constructor Details
-
CommerceDiscountOrderTypeRelUtil
public CommerceDiscountOrderTypeRelUtil()
-
-
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,CommerceDiscountOrderTypeRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceDiscountOrderTypeRel update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceDiscountOrderTypeRel update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce discount order type rels where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching commerce discount order type rels
-
findByUuid
Returns a range of all the commerce discount order type rels where uuid = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)- Returns:
- the range of matching commerce discount order type rels
-
findByUuid
public static List<CommerceDiscountOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where uuid = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discount order type rels
-
findByUuid
public static List<CommerceDiscountOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where uuid = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type 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 discount order type rels
-
findByUuid_First
public static CommerceDiscountOrderTypeRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the first commerce discount order type rel in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByUuid_First
public static CommerceDiscountOrderTypeRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByUuid_Last
public static CommerceDiscountOrderTypeRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the last commerce discount order type rel in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByUuid_Last
public static CommerceDiscountOrderTypeRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByUuid_PrevAndNext
public static CommerceDiscountOrderTypeRel[] findByUuid_PrevAndNext(long commerceDiscountOrderTypeRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ?.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the current commerce discount order type reluuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
removeByUuid
Removes all the commerce discount order type rels where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of commerce discount order type rels where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching commerce discount order type rels
-
findByUuid_C
Returns all the commerce discount order type rels where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce discount order type rels
-
findByUuid_C
public static List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce discount order type rels where uuid = ? and companyId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)- Returns:
- the range of matching commerce discount order type rels
-
findByUuid_C
public static List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discount order type rels
-
findByUuid_C
public static List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type 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 discount order type rels
-
findByUuid_C_First
public static CommerceDiscountOrderTypeRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByUuid_C_First
public static CommerceDiscountOrderTypeRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByUuid_C_Last
public static CommerceDiscountOrderTypeRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByUuid_C_Last
public static CommerceDiscountOrderTypeRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByUuid_C_PrevAndNext
public static CommerceDiscountOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceDiscountOrderTypeRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the current commerce discount order type reluuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
removeByUuid_C
Removes all the commerce discount order type rels where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of commerce discount order type rels where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce discount order type rels
-
findByCommerceDiscountId
Returns all the commerce discount order type rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount order type rels
-
findByCommerceDiscountId
public static List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount order type rels where commerceDiscountId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)- Returns:
- the range of matching commerce discount order type rels
-
findByCommerceDiscountId
public static List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discount order type rels
-
findByCommerceDiscountId
public static List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type 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 discount order type rels
-
findByCommerceDiscountId_First
public static CommerceDiscountOrderTypeRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByCommerceDiscountId_First
public static CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByCommerceDiscountId_Last
public static CommerceDiscountOrderTypeRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByCommerceDiscountId_Last
public static CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByCommerceDiscountId_PrevAndNext
public static CommerceDiscountOrderTypeRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the current commerce discount order type relcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
removeByCommerceDiscountId
public static void removeByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount order type rels where commerceDiscountId = ? from the database.- Parameters:
commerceDiscountId- the commerce discount ID
-
countByCommerceDiscountId
public static int countByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount order type rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount order type rels
-
findByCommerceOrderTypeId
public static List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId) Returns all the commerce discount order type rels where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce discount order type rels
-
findByCommerceOrderTypeId
public static List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end) Returns a range of all the commerce discount order type rels where commerceOrderTypeId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)- Returns:
- the range of matching commerce discount order type rels
-
findByCommerceOrderTypeId
public static List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discount order type rels
-
findByCommerceOrderTypeId
public static List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type 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 discount order type rels
-
findByCommerceOrderTypeId_First
public static CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByCommerceOrderTypeId_First
public static CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByCommerceOrderTypeId_Last
public static CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByCommerceOrderTypeId_Last
public static CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
findByCommerceOrderTypeId_PrevAndNext
public static CommerceDiscountOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the current commerce discount order type relcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
removeByCommerceOrderTypeId
public static void removeByCommerceOrderTypeId(long commerceOrderTypeId) Removes all the commerce discount order type rels where commerceOrderTypeId = ? from the database.- Parameters:
commerceOrderTypeId- the commerce order type ID
-
countByCommerceOrderTypeId
public static int countByCommerceOrderTypeId(long commerceOrderTypeId) Returns the number of commerce discount order type rels where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type ID- Returns:
- the number of matching commerce discount order type rels
-
findByCDI_COTI
public static CommerceDiscountOrderTypeRel findByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or throws aNoSuchDiscountOrderTypeRelExceptionif it could not be found.- Parameters:
commerceDiscountId- the commerce discount IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a matching commerce discount order type rel could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByCDI_COTI
public static CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
commerceDiscountId- the commerce discount IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
fetchByCDI_COTI
public static CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId, boolean useFinderCache) Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
commerceDiscountId- the commerce discount IDcommerceOrderTypeId- the commerce order type IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce discount order type rel, or
nullif a matching commerce discount order type rel could not be found
-
removeByCDI_COTI
public static CommerceDiscountOrderTypeRel removeByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException Removes the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? from the database.- Parameters:
commerceDiscountId- the commerce discount IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the commerce discount order type rel that was removed
- Throws:
NoSuchDiscountOrderTypeRelException
-
countByCDI_COTI
public static int countByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) Returns the number of commerce discount order type rels where commerceDiscountId = ? and commerceOrderTypeId = ?.- Parameters:
commerceDiscountId- the commerce discount IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the number of matching commerce discount order type rels
-
cacheResult
Caches the commerce discount order type rel in the entity cache if it is enabled.- Parameters:
commerceDiscountOrderTypeRel- the commerce discount order type rel
-
cacheResult
Caches the commerce discount order type rels in the entity cache if it is enabled.- Parameters:
commerceDiscountOrderTypeRels- the commerce discount order type rels
-
create
Creates a new commerce discount order type rel with the primary key. Does not add the commerce discount order type rel to the database.- Parameters:
commerceDiscountOrderTypeRelId- the primary key for the new commerce discount order type rel- Returns:
- the new commerce discount order type rel
-
remove
public static CommerceDiscountOrderTypeRel remove(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException Removes the commerce discount order type rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the commerce discount order type rel- Returns:
- the commerce discount order type rel that was removed
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
updateImpl
public static CommerceDiscountOrderTypeRel updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) -
findByPrimaryKey
public static CommerceDiscountOrderTypeRel findByPrimaryKey(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException Returns the commerce discount order type rel with the primary key or throws aNoSuchDiscountOrderTypeRelExceptionif it could not be found.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the commerce discount order type rel- Returns:
- the commerce discount order type rel
- Throws:
NoSuchDiscountOrderTypeRelException- if a commerce discount order type rel with the primary key could not be foundNoSuchDiscountOrderTypeRelException
-
fetchByPrimaryKey
Returns the commerce discount order type rel with the primary key or returnsnullif it could not be found.- Parameters:
commerceDiscountOrderTypeRelId- the primary key of the commerce discount order type rel- Returns:
- the commerce discount order type rel, or
nullif a commerce discount order type rel with the primary key could not be found
-
findAll
Returns all the commerce discount order type rels.- Returns:
- the commerce discount order type rels
-
findAll
Returns a range of all the commerce discount order type 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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)- Returns:
- the range of commerce discount order type rels
-
findAll
public static List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce discount order type 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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce discount order type rels
-
findAll
public static List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount order type 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 fromCommerceDiscountOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce discount order type relsend- the upper bound of the range of commerce discount order type 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 discount order type rels
-
removeAll
public static void removeAll()Removes all the commerce discount order type rels from the database. -
countAll
public static int countAll()Returns the number of commerce discount order type rels.- Returns:
- the number of commerce discount order type rels
-
getPersistence
-
setPersistence
-