public class CommerceDiscountAccountRelUtil
extends java.lang.Object
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountAccountRelPersistenceImpl
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
CommerceDiscountAccountRelPersistence
Constructor and Description |
---|
CommerceDiscountAccountRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceDiscountAccountRel commerceDiscountAccountRel)
Caches the commerce discount account rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceDiscountAccountRel> commerceDiscountAccountRels)
Caches the commerce discount account rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceDiscountAccountRel commerceDiscountAccountRel) |
static int |
countAll()
Returns the number of commerce discount account rels.
|
static int |
countByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the number of commerce discount account rels where commerceAccountId = ? and commerceDiscountId = ?.
|
static int |
countByCommerceAccountId(long commerceAccountId)
Returns the number of commerce discount account rels where commerceAccountId = ?.
|
static int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount account rels where commerceDiscountId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discount account rels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discount account rels where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceDiscountAccountRel |
create(long commerceDiscountAccountRelId)
Creates a new commerce discount account rel with the primary key.
|
static CommerceDiscountAccountRel |
fetchByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns
null if it could not be found. |
static CommerceDiscountAccountRel |
fetchByCAI_CDI(long commerceAccountId,
long commerceDiscountId,
boolean useFinderCache)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceDiscountAccountRel |
fetchByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.
|
static CommerceDiscountAccountRel |
fetchByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.
|
static CommerceDiscountAccountRel |
fetchByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountAccountRel |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountAccountRel |
fetchByPrimaryKey(long commerceDiscountAccountRelId)
Returns the commerce discount account rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceDiscountAccountRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceDiscountAccountRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceDiscountAccountRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceDiscountAccountRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ?.
|
static CommerceDiscountAccountRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findAll()
Returns all the commerce discount account rels.
|
static java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount account rels.
|
static java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels.
|
static java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels.
|
static CommerceDiscountAccountRel |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or throws a
NoSuchDiscountAccountRelException if it could not be found. |
static CommerceDiscountAccountRel |
findByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.
|
static CommerceDiscountAccountRel |
findByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.
|
static CommerceDiscountAccountRel[] |
findByCommerceAccountId_PrevAndNext(long commerceDiscountAccountRelId,
long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceAccountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId)
Returns all the commerce discount account rels where commerceAccountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end)
Returns a range of all the commerce discount account rels where commerceAccountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.
|
static CommerceDiscountAccountRel |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountAccountRel |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountAccountRel[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountAccountRelId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount account rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount account rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where commerceDiscountId = ?.
|
static CommerceDiscountAccountRel |
findByPrimaryKey(long commerceDiscountAccountRelId)
Returns the commerce discount account rel with the primary key or throws a
NoSuchDiscountAccountRelException if it could not be found. |
static CommerceDiscountAccountRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceDiscountAccountRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceDiscountAccountRel[] |
findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discount account rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
static CommerceDiscountAccountRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ?.
|
static CommerceDiscountAccountRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ?.
|
static CommerceDiscountAccountRel[] |
findByUuid_PrevAndNext(long commerceDiscountAccountRelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce discount account rels where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discount account rels where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where uuid = ?.
|
static java.util.List<CommerceDiscountAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceDiscountAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceDiscountAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) |
static CommerceDiscountAccountRelPersistence |
getPersistence() |
static CommerceDiscountAccountRel |
remove(long commerceDiscountAccountRelId)
Removes the commerce discount account rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce discount account rels from the database.
|
static CommerceDiscountAccountRel |
removeByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Removes the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? from the database.
|
static void |
removeByCommerceAccountId(long commerceAccountId)
Removes all the commerce discount account rels where commerceAccountId = ? from the database.
|
static void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount account rels where commerceDiscountId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discount account rels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discount account rels where uuid = ? from the database.
|
static CommerceDiscountAccountRel |
update(CommerceDiscountAccountRel commerceDiscountAccountRel) |
static CommerceDiscountAccountRel |
update(CommerceDiscountAccountRel commerceDiscountAccountRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscountAccountRel |
updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceDiscountAccountRel commerceDiscountAccountRel)
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,CommerceDiscountAccountRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceDiscountAccountRel update(CommerceDiscountAccountRel commerceDiscountAccountRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceDiscountAccountRel update(CommerceDiscountAccountRel commerceDiscountAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)public static java.util.List<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountAccountRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel[] findByUuid_PrevAndNext(long commerceDiscountAccountRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount 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<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)public static java.util.List<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountAccountRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel[] findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount 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<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static java.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)public static java.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountAccountRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel[] findByCommerceAccountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundpublic static void removeByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static int countByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static java.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static java.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)public static java.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountAccountRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account 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 CommerceDiscountAccountRel findByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
NoSuchDiscountAccountRelException
if it could not be found.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDNoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId)
null
if it could not be found. Uses the finder cache.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDnull
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount account rel could not be foundpublic static CommerceDiscountAccountRel removeByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDNoSuchDiscountAccountRelException
public static int countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDpublic static void cacheResult(CommerceDiscountAccountRel commerceDiscountAccountRel)
commerceDiscountAccountRel
- the commerce discount account relpublic static void cacheResult(java.util.List<CommerceDiscountAccountRel> commerceDiscountAccountRels)
commerceDiscountAccountRels
- the commerce discount account relspublic static CommerceDiscountAccountRel create(long commerceDiscountAccountRelId)
commerceDiscountAccountRelId
- the primary key for the new commerce discount account relpublic static CommerceDiscountAccountRel remove(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the commerce discount account relNoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundpublic static CommerceDiscountAccountRel updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel)
public static CommerceDiscountAccountRel findByPrimaryKey(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException
NoSuchDiscountAccountRelException
if it could not be found.commerceDiscountAccountRelId
- the primary key of the commerce discount account relNoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundpublic static CommerceDiscountAccountRel fetchByPrimaryKey(long commerceDiscountAccountRelId)
null
if it could not be found.commerceDiscountAccountRelId
- the primary key of the commerce discount account relnull
if a commerce discount account rel with the primary key could not be foundpublic static java.util.List<CommerceDiscountAccountRel> findAll()
public static java.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)public static java.util.List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount 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 CommerceDiscountAccountRelPersistence getPersistence()