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