public class CommerceDiscountOrderTypeRelUtil
extends java.lang.Object
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
CommerceDiscountOrderTypeRelPersistence
Constructor and Description |
---|
CommerceDiscountOrderTypeRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
Caches the commerce discount order type rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels)
Caches the commerce discount order type rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) |
static int |
countAll()
Returns the number of commerce discount order type rels.
|
static int |
countByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the number of commerce discount order type rels where commerceDiscountId = ? and commerceOrderTypeId = ?.
|
static int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount order type rels where commerceDiscountId = ?.
|
static int |
countByCommerceOrderTypeId(long commerceOrderTypeId)
Returns the number of commerce discount order type rels where commerceOrderTypeId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discount order type rels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discount order type rels where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceDiscountOrderTypeRel |
create(long commerceDiscountOrderTypeRelId)
Creates a new commerce discount order type rel with the primary key.
|
static CommerceDiscountOrderTypeRel |
fetchByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns
null if it could not be found. |
static CommerceDiscountOrderTypeRel |
fetchByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId,
boolean useFinderCache)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceDiscountOrderTypeRel |
fetchByPrimaryKey(long commerceDiscountOrderTypeRelId)
Returns the commerce discount order type rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceDiscountOrderTypeRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceDiscountOrderTypeRel |
fetchByUuid_C_First(java.lang.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 CommerceDiscountOrderTypeRel |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.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 CommerceDiscountOrderTypeRel |
fetchByUuid_Last(java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findAll()
Returns all the commerce discount order type rels.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount order type rels.
|
static java.util.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 java.util.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 CommerceDiscountOrderTypeRel |
findByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or throws a
NoSuchDiscountOrderTypeRelException if it could not be found. |
static CommerceDiscountOrderTypeRel |
findByCommerceDiscountId_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 CommerceDiscountOrderTypeRel |
findByCommerceDiscountId_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 java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount order type rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount order type rels where commerceDiscountId = ?.
|
static java.util.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 java.util.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 CommerceDiscountOrderTypeRel |
findByCommerceOrderTypeId_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 CommerceDiscountOrderTypeRel |
findByCommerceOrderTypeId_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 java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId)
Returns all the commerce discount order type rels where commerceOrderTypeId = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end)
Returns a range of all the commerce discount order type rels where commerceOrderTypeId = ?.
|
static java.util.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 java.util.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 CommerceDiscountOrderTypeRel |
findByPrimaryKey(long commerceDiscountOrderTypeRelId)
Returns the commerce discount order type rel with the primary key or throws a
NoSuchDiscountOrderTypeRelException if it could not be found. |
static CommerceDiscountOrderTypeRel |
findByUuid_C_First(java.lang.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 CommerceDiscountOrderTypeRel |
findByUuid_C_Last(java.lang.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,
java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discount order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce discount order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.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 CommerceDiscountOrderTypeRel |
findByUuid_First(java.lang.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 CommerceDiscountOrderTypeRel |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce discount order type rels where uuid = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discount order type rels where uuid = ?.
|
static java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.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 java.util.List<CommerceDiscountOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceDiscountOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceDiscountOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) |
static CommerceDiscountOrderTypeRelPersistence |
getPersistence() |
static CommerceDiscountOrderTypeRel |
remove(long commerceDiscountOrderTypeRelId)
Removes the commerce discount order type rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce discount order type rels from the database.
|
static CommerceDiscountOrderTypeRel |
removeByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Removes the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? from the database.
|
static void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount order type rels where commerceDiscountId = ? from the database.
|
static void |
removeByCommerceOrderTypeId(long commerceOrderTypeId)
Removes all the commerce discount order type rels where commerceOrderTypeId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discount order type rels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discount order type rels where uuid = ? from the database.
|
static CommerceDiscountOrderTypeRel |
update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) |
static CommerceDiscountOrderTypeRel |
update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscountOrderTypeRel |
updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceDiscountOrderTypeRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceDiscountOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceDiscountOrderTypeRel update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceDiscountOrderTypeRel update(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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)public static java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountOrderTypeRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel[] findByUuid_PrevAndNext(long commerceDiscountOrderTypeRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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)public static java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountOrderTypeRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceDiscountOrderTypeRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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)public static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountOrderTypeRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static void removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static int countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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)public static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type relcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static void removeByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static int countByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static CommerceDiscountOrderTypeRel findByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
NoSuchDiscountOrderTypeRelException
if it could not be found.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDNoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
null
if it could not be found. Uses the finder cache.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDnull
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount order type rel could not be foundpublic static CommerceDiscountOrderTypeRel removeByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDNoSuchDiscountOrderTypeRelException
public static int countByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDpublic static void cacheResult(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
commerceDiscountOrderTypeRel
- the commerce discount order type relpublic static void cacheResult(java.util.List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels)
commerceDiscountOrderTypeRels
- the commerce discount order type relspublic static CommerceDiscountOrderTypeRel create(long commerceDiscountOrderTypeRelId)
commerceDiscountOrderTypeRelId
- the primary key for the new commerce discount order type relpublic static CommerceDiscountOrderTypeRel remove(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relNoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static CommerceDiscountOrderTypeRel updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
public static CommerceDiscountOrderTypeRel findByPrimaryKey(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
NoSuchDiscountOrderTypeRelException
if it could not be found.commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relNoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundpublic static CommerceDiscountOrderTypeRel fetchByPrimaryKey(long commerceDiscountOrderTypeRelId)
null
if it could not be found.commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relnull
if a commerce discount order type rel with the primary key could not be foundpublic static java.util.List<CommerceDiscountOrderTypeRel> findAll()
public static java.util.List<CommerceDiscountOrderTypeRel> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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)public static java.util.List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountOrderTypeRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceDiscountOrderTypeRelPersistence getPersistence()