Class CommerceOrderTypeRelUtil
com.liferay.commerce.service.persistence.impl.CommerceOrderTypeRelPersistenceImpl 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(CommerceOrderTypeRel commerceOrderTypeRel) Caches the commerce order type rel in the entity cache if it is enabled.static voidcacheResult(List<CommerceOrderTypeRel> commerceOrderTypeRels) Caches the commerce order type rels in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceOrderTypeRel commerceOrderTypeRel) static intcountAll()Returns the number of commerce order type rels.static intcountByC_C(long classNameId, long commerceOrderTypeId) Returns the number of commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.static intcountByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Returns the number of commerce order type rels where classNameId = ? and classPK = ? and commerceOrderTypeId = ?.static intcountByCommerceOrderTypeId(long commerceOrderTypeId) Returns the number of commerce order type rels where commerceOrderTypeId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of commerce order type rels where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of commerce order type rels where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of commerce order type rels where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceOrderTypeRelcreate(long commerceOrderTypeRelId) Creates a new commerce order type rel with the primary key.static CommerceOrderTypeRelfetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returnsnullif it could not be found.static CommerceOrderTypeRelfetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId, boolean useFinderCache) Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceOrderTypeRelfetchByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.static CommerceOrderTypeRelfetchByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.static CommerceOrderTypeRelfetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceOrderTypeRelfetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceOrderTypeRelfetchByERC_C(String externalReferenceCode, long companyId) Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CommerceOrderTypeRelfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceOrderTypeRelfetchByPrimaryKey(long commerceOrderTypeRelId) Returns the commerce order type rel with the primary key or returnsnullif it could not be found.static Map<Serializable,CommerceOrderTypeRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CommerceOrderTypeRelfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceOrderTypeRelfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceOrderTypeRelfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where uuid = ?.static CommerceOrderTypeRelfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where uuid = ?.static List<CommerceOrderTypeRel>findAll()Returns all the commerce order type rels.static List<CommerceOrderTypeRel>findAll(int start, int end) Returns a range of all the commerce order type rels.static List<CommerceOrderTypeRel>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels.static List<CommerceOrderTypeRel>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels.static List<CommerceOrderTypeRel>findByC_C(long classNameId, long commerceOrderTypeId) Returns all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByC_C(long classNameId, long commerceOrderTypeId, int start, int end) Returns a range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.static CommerceOrderTypeRelfindByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or throws aNoSuchOrderTypeRelExceptionif it could not be found.static CommerceOrderTypeRelfindByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.static CommerceOrderTypeRelfindByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.static CommerceOrderTypeRel[]findByC_C_PrevAndNext(long commerceOrderTypeRelId, long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId) Returns all the commerce order type rels where commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end) Returns a range of all the commerce order type rels where commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.static List<CommerceOrderTypeRel>findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.static CommerceOrderTypeRelfindByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceOrderTypeRelfindByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceOrderTypeRel[]findByCommerceOrderTypeId_PrevAndNext(long commerceOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where commerceOrderTypeId = ?.static CommerceOrderTypeRelfindByERC_C(String externalReferenceCode, long companyId) Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderTypeRelExceptionif it could not be found.static CommerceOrderTypeRelfindByPrimaryKey(long commerceOrderTypeRelId) Returns the commerce order type rel with the primary key or throws aNoSuchOrderTypeRelExceptionif it could not be found.static List<CommerceOrderTypeRel>findByUuid(String uuid) Returns all the commerce order type rels where uuid = ?.static List<CommerceOrderTypeRel>findByUuid(String uuid, int start, int end) Returns a range of all the commerce order type rels where uuid = ?.static List<CommerceOrderTypeRel>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels where uuid = ?.static List<CommerceOrderTypeRel>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels where uuid = ?.static List<CommerceOrderTypeRel>findByUuid_C(String uuid, long companyId) Returns all the commerce order type rels where uuid = ? and companyId = ?.static List<CommerceOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce order type rels where uuid = ? and companyId = ?.static List<CommerceOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels where uuid = ? and companyId = ?.static List<CommerceOrderTypeRel>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels where uuid = ? and companyId = ?.static CommerceOrderTypeRelfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceOrderTypeRelfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceOrderTypeRel[]findByUuid_C_PrevAndNext(long commerceOrderTypeRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where uuid = ? and companyId = ?.static CommerceOrderTypeRelfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where uuid = ?.static CommerceOrderTypeRelfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where uuid = ?.static CommerceOrderTypeRel[]findByUuid_PrevAndNext(long commerceOrderTypeRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where uuid = ?.static List<CommerceOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceOrderTypeRel>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) static CommerceOrderTypeRelremove(long commerceOrderTypeRelId) Removes the commerce order type rel with the primary key from the database.static voidRemoves all the commerce order type rels from the database.static voidremoveByC_C(long classNameId, long commerceOrderTypeId) Removes all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ? from the database.static CommerceOrderTypeRelremoveByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Removes the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? from the database.static voidremoveByCommerceOrderTypeId(long commerceOrderTypeId) Removes all the commerce order type rels where commerceOrderTypeId = ? from the database.static CommerceOrderTypeRelremoveByERC_C(String externalReferenceCode, long companyId) Removes the commerce order type rel where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the commerce order type rels where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the commerce order type rels where uuid = ? and companyId = ? from the database.static voidsetPersistence(CommerceOrderTypeRelPersistence persistence) static CommerceOrderTypeRelupdate(CommerceOrderTypeRel commerceOrderTypeRel) static CommerceOrderTypeRelupdate(CommerceOrderTypeRel commerceOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceOrderTypeRelupdateImpl(CommerceOrderTypeRel commerceOrderTypeRel)
-
Constructor Details
-
CommerceOrderTypeRelUtil
public CommerceOrderTypeRelUtil()
-
-
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,CommerceOrderTypeRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceOrderTypeRel update(CommerceOrderTypeRel commerceOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce order type rels where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching commerce order type rels
-
findByUuid
Returns a range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)- Returns:
- the range of matching commerce order type rels
-
findByUuid
public static List<CommerceOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order type rels
-
findByUuid
public static List<CommerceOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce 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 order type rels
-
findByUuid_First
public static CommerceOrderTypeRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the first commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByUuid_First
public static CommerceOrderTypeRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByUuid_Last
public static CommerceOrderTypeRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the last commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByUuid_Last
public static CommerceOrderTypeRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByUuid_PrevAndNext
public static CommerceOrderTypeRel[] findByUuid_PrevAndNext(long commerceOrderTypeRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where uuid = ?.- Parameters:
commerceOrderTypeRelId- the primary key of the current commerce order type reluuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
removeByUuid
Removes all the commerce order type rels where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of commerce order type rels where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching commerce order type rels
-
findByUuid_C
Returns all the commerce order type rels where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce order type rels
-
findByUuid_C
public static List<CommerceOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)- Returns:
- the range of matching commerce order type rels
-
findByUuid_C
public static List<CommerceOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order type rels
-
findByUuid_C
public static List<CommerceOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce 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 order type rels
-
findByUuid_C_First
public static CommerceOrderTypeRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the first commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByUuid_C_First
public static CommerceOrderTypeRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByUuid_C_Last
public static CommerceOrderTypeRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the last commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByUuid_C_Last
public static CommerceOrderTypeRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByUuid_C_PrevAndNext
public static CommerceOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceOrderTypeRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceOrderTypeRelId- the primary key of the current commerce order type reluuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
removeByUuid_C
Removes all the commerce order type rels where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of commerce order type rels where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce order type rels
-
findByCommerceOrderTypeId
Returns all the commerce order type rels where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce order type rels
-
findByCommerceOrderTypeId
public static List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end) Returns a range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)- Returns:
- the range of matching commerce order type rels
-
findByCommerceOrderTypeId
public static List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order type rels
-
findByCommerceOrderTypeId
public static List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
commerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce 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 order type rels
-
findByCommerceOrderTypeId_First
public static CommerceOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the first commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByCommerceOrderTypeId_First
public static CommerceOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByCommerceOrderTypeId_Last
public static CommerceOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the last commerce 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 order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByCommerceOrderTypeId_Last
public static CommerceOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce 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 order type rel, or
nullif a matching commerce order type rel could not be found
-
findByCommerceOrderTypeId_PrevAndNext
public static CommerceOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeRelId- the primary key of the current commerce order type relcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
removeByCommerceOrderTypeId
public static void removeByCommerceOrderTypeId(long commerceOrderTypeId) Removes all the commerce 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 order type rels where commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeId- the commerce order type ID- Returns:
- the number of matching commerce order type rels
-
findByC_C
Returns all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce order type rels
-
findByC_C
public static List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end) Returns a range of all the commerce order type rels where classNameId = ? and 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)- Returns:
- the range of matching commerce order type rels
-
findByC_C
public static List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce order type rels where classNameId = ? and 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order type rels
-
findByC_C
public static List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order type rels where classNameId = ? and 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDstart- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce 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 order type rels
-
findByC_C_First
public static CommerceOrderTypeRel findByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByC_C_First
public static CommerceOrderTypeRel fetchByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
findByC_C_Last
public static CommerceOrderTypeRel findByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByC_C_Last
public static CommerceOrderTypeRel fetchByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
findByC_C_PrevAndNext
public static CommerceOrderTypeRel[] findByC_C_PrevAndNext(long commerceOrderTypeRelId, long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
commerceOrderTypeRelId- the primary key of the current commerce order type relclassNameId- the class name IDcommerceOrderTypeId- the commerce order type IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
removeByC_C
public static void removeByC_C(long classNameId, long commerceOrderTypeId) Removes all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ? from the database.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type ID
-
countByC_C
public static int countByC_C(long classNameId, long commerceOrderTypeId) Returns the number of commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDcommerceOrderTypeId- the commerce order type ID- Returns:
- the number of matching commerce order type rels
-
findByC_C_C
public static CommerceOrderTypeRel findByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or throws aNoSuchOrderTypeRelExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByC_C_C
public static CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceOrderTypeId- the commerce order type ID- Returns:
- the matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
fetchByC_C_C
public static CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId, boolean useFinderCache) Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceOrderTypeId- the commerce order type IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
removeByC_C_C
public static CommerceOrderTypeRel removeByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException Removes the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceOrderTypeId- the commerce order type ID- Returns:
- the commerce order type rel that was removed
- Throws:
NoSuchOrderTypeRelException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) Returns the number of commerce order type rels where classNameId = ? and classPK = ? and commerceOrderTypeId = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkcommerceOrderTypeId- the commerce order type ID- Returns:
- the number of matching commerce order type rels
-
findByERC_C
public static CommerceOrderTypeRel findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderTypeRelException Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderTypeRelExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a matching commerce order type rel could not be foundNoSuchOrderTypeRelException
-
fetchByERC_C
Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
fetchByERC_C
public static CommerceOrderTypeRel fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce order type rel, or
nullif a matching commerce order type rel could not be found
-
removeByERC_C
public static CommerceOrderTypeRel removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderTypeRelException Removes the commerce order type rel where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the commerce order type rel that was removed
- Throws:
NoSuchOrderTypeRelException
-
countByERC_C
Returns the number of commerce order type rels where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching commerce order type rels
-
cacheResult
Caches the commerce order type rel in the entity cache if it is enabled.- Parameters:
commerceOrderTypeRel- the commerce order type rel
-
cacheResult
Caches the commerce order type rels in the entity cache if it is enabled.- Parameters:
commerceOrderTypeRels- the commerce order type rels
-
create
Creates a new commerce order type rel with the primary key. Does not add the commerce order type rel to the database.- Parameters:
commerceOrderTypeRelId- the primary key for the new commerce order type rel- Returns:
- the new commerce order type rel
-
remove
public static CommerceOrderTypeRel remove(long commerceOrderTypeRelId) throws NoSuchOrderTypeRelException Removes the commerce order type rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderTypeRelId- the primary key of the commerce order type rel- Returns:
- the commerce order type rel that was removed
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderTypeRel findByPrimaryKey(long commerceOrderTypeRelId) throws NoSuchOrderTypeRelException Returns the commerce order type rel with the primary key or throws aNoSuchOrderTypeRelExceptionif it could not be found.- Parameters:
commerceOrderTypeRelId- the primary key of the commerce order type rel- Returns:
- the commerce order type rel
- Throws:
NoSuchOrderTypeRelException- if a commerce order type rel with the primary key could not be foundNoSuchOrderTypeRelException
-
fetchByPrimaryKey
Returns the commerce order type rel with the primary key or returnsnullif it could not be found.- Parameters:
commerceOrderTypeRelId- the primary key of the commerce order type rel- Returns:
- the commerce order type rel, or
nullif a commerce order type rel with the primary key could not be found
-
findAll
Returns all the commerce order type rels.- Returns:
- the commerce order type rels
-
findAll
Returns a range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)- Returns:
- the range of commerce order type rels
-
findAll
public static List<CommerceOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce order type rels
-
findAll
public static List<CommerceOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce 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 fromCommerceOrderTypeRelModelImpl.- Parameters:
start- the lower bound of the range of commerce order type relsend- the upper bound of the range of commerce 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 order type rels
-
removeAll
public static void removeAll()Removes all the commerce order type rels from the database. -
countAll
public static int countAll()Returns the number of commerce order type rels.- Returns:
- the number of commerce order type rels
-
getPersistence
-
setPersistence
-