public class CommercePriceListOrderTypeRelUtil
extends java.lang.Object
com.liferay.commerce.price.list.service.persistence.impl.CommercePriceListOrderTypeRelPersistenceImpl
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
CommercePriceListOrderTypeRelPersistence
Constructor and Description |
---|
CommercePriceListOrderTypeRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel)
Caches the commerce price list order type rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePriceListOrderTypeRel> commercePriceListOrderTypeRels)
Caches the commerce price list order type rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel) |
static int |
countAll()
Returns the number of commerce price list order type rels.
|
static int |
countByCommercePriceListId(long commercePriceListId)
Returns the number of commerce price list order type rels where commercePriceListId = ?.
|
static int |
countByCPI_COTI(long commercePriceListId,
long commerceOrderTypeId)
Returns the number of commerce price list order type rels where commercePriceListId = ? and commerceOrderTypeId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce price list order type rels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce price list order type rels where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePriceListOrderTypeRel |
create(long commercePriceListOrderTypeRelId)
Creates a new commerce price list order type rel with the primary key.
|
static CommercePriceListOrderTypeRel |
fetchByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListOrderTypeRel |
fetchByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListOrderTypeRel |
fetchByCPI_COTI(long commercePriceListId,
long commerceOrderTypeId)
Returns the commerce price list order type rel where commercePriceListId = ? and commerceOrderTypeId = ? or returns
null if it could not be found. |
static CommercePriceListOrderTypeRel |
fetchByCPI_COTI(long commercePriceListId,
long commerceOrderTypeId,
boolean useFinderCache)
Returns the commerce price list order type rel where commercePriceListId = ? and commerceOrderTypeId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceListOrderTypeRel |
fetchByPrimaryKey(long commercePriceListOrderTypeRelId)
Returns the commerce price list order type rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePriceListOrderTypeRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommercePriceListOrderTypeRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListOrderTypeRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListOrderTypeRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where uuid = ?.
|
static CommercePriceListOrderTypeRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findAll()
Returns all the commerce price list order type rels.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findAll(int start,
int end)
Returns a range of all the commerce price list order type rels.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce price list order type rels.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list order type rels.
|
static CommercePriceListOrderTypeRel |
findByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListOrderTypeRel |
findByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListOrderTypeRel[] |
findByCommercePriceListId_PrevAndNext(long commercePriceListOrderTypeRelId,
long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the commerce price list order type rels before and after the current commerce price list order type rel in the ordered set where commercePriceListId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByCommercePriceListId(long commercePriceListId)
Returns all the commerce price list order type rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end)
Returns a range of all the commerce price list order type rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce price list order type rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list order type rels where commercePriceListId = ?.
|
static CommercePriceListOrderTypeRel |
findByCPI_COTI(long commercePriceListId,
long commerceOrderTypeId)
Returns the commerce price list order type rel where commercePriceListId = ? and commerceOrderTypeId = ? or throws a
NoSuchPriceListOrderTypeRelException if it could not be found. |
static CommercePriceListOrderTypeRel |
findByPrimaryKey(long commercePriceListOrderTypeRelId)
Returns the commerce price list order type rel with the primary key or throws a
NoSuchPriceListOrderTypeRelException if it could not be found. |
static CommercePriceListOrderTypeRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListOrderTypeRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListOrderTypeRel[] |
findByUuid_C_PrevAndNext(long commercePriceListOrderTypeRelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the commerce price list order type rels before and after the current commerce price list order type rel in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce price list order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce price list order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce price list order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list order type rels where uuid = ? and companyId = ?.
|
static CommercePriceListOrderTypeRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the first commerce price list order type rel in the ordered set where uuid = ?.
|
static CommercePriceListOrderTypeRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the last commerce price list order type rel in the ordered set where uuid = ?.
|
static CommercePriceListOrderTypeRel[] |
findByUuid_PrevAndNext(long commercePriceListOrderTypeRelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns the commerce price list order type rels before and after the current commerce price list order type rel in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce price list order type rels where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce price list order type rels where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce price list order type rels where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list order type rels where uuid = ?.
|
static java.util.List<CommercePriceListOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePriceListOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePriceListOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) |
static CommercePriceListOrderTypeRelPersistence |
getPersistence() |
static CommercePriceListOrderTypeRel |
remove(long commercePriceListOrderTypeRelId)
Removes the commerce price list order type rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce price list order type rels from the database.
|
static void |
removeByCommercePriceListId(long commercePriceListId)
Removes all the commerce price list order type rels where commercePriceListId = ? from the database.
|
static CommercePriceListOrderTypeRel |
removeByCPI_COTI(long commercePriceListId,
long commerceOrderTypeId)
Removes the commerce price list order type rel where commercePriceListId = ? and commerceOrderTypeId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce price list order type rels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce price list order type rels where uuid = ? from the database.
|
static CommercePriceListOrderTypeRel |
update(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel) |
static CommercePriceListOrderTypeRel |
update(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePriceListOrderTypeRel |
updateImpl(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel)
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,CommercePriceListOrderTypeRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePriceListOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePriceListOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePriceListOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePriceListOrderTypeRel update(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePriceListOrderTypeRel update(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePriceListOrderTypeRel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)public static java.util.List<CommercePriceListOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListOrderTypeRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel[] findByUuid_PrevAndNext(long commercePriceListOrderTypeRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
commercePriceListOrderTypeRelId
- the primary key of the current commerce price list order type reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a commerce price list 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<CommercePriceListOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)public static java.util.List<CommercePriceListOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListOrderTypeRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel[] findByUuid_C_PrevAndNext(long commercePriceListOrderTypeRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
commercePriceListOrderTypeRelId
- the primary key of the current commerce price list order type reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a commerce price list 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<CommercePriceListOrderTypeRel> findByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static java.util.List<CommercePriceListOrderTypeRel> findByCommercePriceListId(long commercePriceListId, 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 CommercePriceListOrderTypeRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)public static java.util.List<CommercePriceListOrderTypeRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListOrderTypeRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListOrderTypeRel findByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel findByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel[] findByCommercePriceListId_PrevAndNext(long commercePriceListOrderTypeRelId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> orderByComparator) throws NoSuchPriceListOrderTypeRelException
commercePriceListOrderTypeRelId
- the primary key of the current commerce price list order type relcommercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListOrderTypeRelException
- if a commerce price list order type rel with the primary key could not be foundpublic static void removeByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static int countByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static CommercePriceListOrderTypeRel findByCPI_COTI(long commercePriceListId, long commerceOrderTypeId) throws NoSuchPriceListOrderTypeRelException
NoSuchPriceListOrderTypeRelException
if it could not be found.commercePriceListId
- the commerce price list IDcommerceOrderTypeId
- the commerce order type IDNoSuchPriceListOrderTypeRelException
- if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByCPI_COTI(long commercePriceListId, long commerceOrderTypeId)
null
if it could not be found. Uses the finder cache.commercePriceListId
- the commerce price list IDcommerceOrderTypeId
- the commerce order type IDnull
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel fetchByCPI_COTI(long commercePriceListId, long commerceOrderTypeId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePriceListId
- the commerce price list IDcommerceOrderTypeId
- the commerce order type IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce price list order type rel could not be foundpublic static CommercePriceListOrderTypeRel removeByCPI_COTI(long commercePriceListId, long commerceOrderTypeId) throws NoSuchPriceListOrderTypeRelException
commercePriceListId
- the commerce price list IDcommerceOrderTypeId
- the commerce order type IDNoSuchPriceListOrderTypeRelException
public static int countByCPI_COTI(long commercePriceListId, long commerceOrderTypeId)
commercePriceListId
- the commerce price list IDcommerceOrderTypeId
- the commerce order type IDpublic static void cacheResult(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel)
commercePriceListOrderTypeRel
- the commerce price list order type relpublic static void cacheResult(java.util.List<CommercePriceListOrderTypeRel> commercePriceListOrderTypeRels)
commercePriceListOrderTypeRels
- the commerce price list order type relspublic static CommercePriceListOrderTypeRel create(long commercePriceListOrderTypeRelId)
commercePriceListOrderTypeRelId
- the primary key for the new commerce price list order type relpublic static CommercePriceListOrderTypeRel remove(long commercePriceListOrderTypeRelId) throws NoSuchPriceListOrderTypeRelException
commercePriceListOrderTypeRelId
- the primary key of the commerce price list order type relNoSuchPriceListOrderTypeRelException
- if a commerce price list order type rel with the primary key could not be foundpublic static CommercePriceListOrderTypeRel updateImpl(CommercePriceListOrderTypeRel commercePriceListOrderTypeRel)
public static CommercePriceListOrderTypeRel findByPrimaryKey(long commercePriceListOrderTypeRelId) throws NoSuchPriceListOrderTypeRelException
NoSuchPriceListOrderTypeRelException
if it could not be found.commercePriceListOrderTypeRelId
- the primary key of the commerce price list order type relNoSuchPriceListOrderTypeRelException
- if a commerce price list order type rel with the primary key could not be foundpublic static CommercePriceListOrderTypeRel fetchByPrimaryKey(long commercePriceListOrderTypeRelId)
null
if it could not be found.commercePriceListOrderTypeRelId
- the primary key of the commerce price list order type relnull
if a commerce price list order type rel with the primary key could not be foundpublic static java.util.List<CommercePriceListOrderTypeRel> findAll()
public static java.util.List<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)public static java.util.List<CommercePriceListOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListOrderTypeRel> 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 CommercePriceListOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce price list order type relsend
- the upper bound of the range of commerce price list 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 CommercePriceListOrderTypeRelPersistence getPersistence()