Class CommerceDiscountAccountRelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceDiscountAccountRel commerceDiscountAccountRel) Caches the commerce discount account rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceDiscountAccountRel> commerceDiscountAccountRels) Caches the commerce discount account rels in the entity cache if it is enabled.static void
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
(String uuid) Returns the number of commerce discount account rels where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce discount account rels where uuid = ? and companyId = ?.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 returnsnull
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 returnsnull
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 returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceDiscountAccountRel
fetchByUuid_C_First
(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
(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
(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
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) Returns the last commerce discount account rel in the ordered set where uuid = ?.static List<CommerceDiscountAccountRel>
findAll()
Returns all the commerce discount account rels.static List<CommerceDiscountAccountRel>
findAll
(int start, int end) Returns a range of all the commerce discount account rels.static 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 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 aNoSuchDiscountAccountRelException
if it could not be found.static List<CommerceDiscountAccountRel>
findByCommerceAccountId
(long commerceAccountId) Returns all the commerce discount account rels where commerceAccountId = ?.static List<CommerceDiscountAccountRel>
findByCommerceAccountId
(long commerceAccountId, int start, int end) Returns a range of all the commerce discount account rels where commerceAccountId = ?.static 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 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
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 List<CommerceDiscountAccountRel>
findByCommerceDiscountId
(long commerceDiscountId) Returns all the commerce discount account rels where commerceDiscountId = ?.static List<CommerceDiscountAccountRel>
findByCommerceDiscountId
(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount account rels where commerceDiscountId = ?.static 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 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
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 CommerceDiscountAccountRel
findByPrimaryKey
(long commerceDiscountAccountRelId) Returns the commerce discount account rel with the primary key or throws aNoSuchDiscountAccountRelException
if it could not be found.static List<CommerceDiscountAccountRel>
findByUuid
(String uuid) Returns all the commerce discount account rels where uuid = ?.static List<CommerceDiscountAccountRel>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce discount account rels where uuid = ?.static List<CommerceDiscountAccountRel>
findByUuid
(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 List<CommerceDiscountAccountRel>
findByUuid
(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 List<CommerceDiscountAccountRel>
findByUuid_C
(String uuid, long companyId) Returns all the commerce discount account rels where uuid = ? and companyId = ?.static List<CommerceDiscountAccountRel>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce discount account rels where uuid = ? and companyId = ?.static List<CommerceDiscountAccountRel>
findByUuid_C
(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 List<CommerceDiscountAccountRel>
findByUuid_C
(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_C_First
(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
(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, 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 CommerceDiscountAccountRel
findByUuid_First
(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
(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, 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 List<CommerceDiscountAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceDiscountAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceDiscountAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) static CommerceDiscountAccountRel
remove
(long commerceDiscountAccountRelId) Removes the commerce discount account rel with the primary key from the database.static void
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
(String uuid) Removes all the commerce discount account rels where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce discount account rels where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceDiscountAccountRelPersistence persistence) static CommerceDiscountAccountRel
update
(CommerceDiscountAccountRel commerceDiscountAccountRel) static CommerceDiscountAccountRel
update
(CommerceDiscountAccountRel commerceDiscountAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountAccountRel
updateImpl
(CommerceDiscountAccountRel commerceDiscountAccountRel)
-
Constructor Details
-
CommerceDiscountAccountRelUtil
public CommerceDiscountAccountRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceDiscountAccountRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceDiscountAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceDiscountAccountRel update(CommerceDiscountAccountRel commerceDiscountAccountRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceDiscountAccountRel update(CommerceDiscountAccountRel commerceDiscountAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce discount account rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce discount account rels
-
findByUuid
Returns a range of all the commerce discount account rels where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce discount account rels
-
findByUuid
public static List<CommerceDiscountAccountRel> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce discount account rels
-
findByUuid
public static List<CommerceDiscountAccountRel> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount account rels
-
findByUuid_First
public static CommerceDiscountAccountRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the first commerce discount account rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByUuid_First
public static CommerceDiscountAccountRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) Returns the first commerce discount account rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByUuid_Last
public static CommerceDiscountAccountRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the last commerce discount account rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByUuid_Last
public static CommerceDiscountAccountRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) Returns the last commerce discount account rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByUuid_PrevAndNext
public static CommerceDiscountAccountRel[] findByUuid_PrevAndNext(long commerceDiscountAccountRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ?.- Parameters:
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
removeByUuid
Removes all the commerce discount account rels where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce discount account rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce discount account rels
-
findByUuid_C
Returns all the commerce discount account rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce discount account rels
-
findByUuid_C
public static List<CommerceDiscountAccountRel> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce discount account rels where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce discount account rels
-
findByUuid_C
public static List<CommerceDiscountAccountRel> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce discount account rels
-
findByUuid_C
public static List<CommerceDiscountAccountRel> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount account rels
-
findByUuid_C_First
public static CommerceDiscountAccountRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the first commerce discount account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByUuid_C_First
public static CommerceDiscountAccountRel fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByUuid_C_Last
public static CommerceDiscountAccountRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the last commerce discount account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByUuid_C_Last
public static CommerceDiscountAccountRel fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByUuid_C_PrevAndNext
public static CommerceDiscountAccountRel[] findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
removeByUuid_C
Removes all the commerce discount account rels where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce discount account rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce discount account rels
-
findByCommerceAccountId
Returns all the commerce discount account rels where commerceAccountId = ?.- Parameters:
commerceAccountId
- the commerce account ID- Returns:
- the matching commerce discount account rels
-
findByCommerceAccountId
public static List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end) Returns a range of all the commerce discount account rels where commerceAccountId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce discount account rels
-
findByCommerceAccountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce discount account rels
-
findByCommerceAccountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount account rels
-
findByCommerceAccountId_First
public static CommerceDiscountAccountRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.- Parameters:
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByCommerceAccountId_First
public 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 = ?.- Parameters:
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByCommerceAccountId_Last
public static CommerceDiscountAccountRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.- Parameters:
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByCommerceAccountId_Last
public 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 = ?.- Parameters:
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByCommerceAccountId_PrevAndNext
public static CommerceDiscountAccountRel[] findByCommerceAccountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceAccountId = ?.- Parameters:
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
removeByCommerceAccountId
public static void removeByCommerceAccountId(long commerceAccountId) Removes all the commerce discount account rels where commerceAccountId = ? from the database.- Parameters:
commerceAccountId
- the commerce account ID
-
countByCommerceAccountId
public static int countByCommerceAccountId(long commerceAccountId) Returns the number of commerce discount account rels where commerceAccountId = ?.- Parameters:
commerceAccountId
- the commerce account ID- Returns:
- the number of matching commerce discount account rels
-
findByCommerceDiscountId
Returns all the commerce discount account rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount ID- Returns:
- the matching commerce discount account rels
-
findByCommerceDiscountId
public static List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount account rels where commerceDiscountId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce discount account rels
-
findByCommerceDiscountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce discount account rels
-
findByCommerceDiscountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount account rels
-
findByCommerceDiscountId_First
public static CommerceDiscountAccountRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the first commerce discount account rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByCommerceDiscountId_First
public 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 = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByCommerceDiscountId_Last
public static CommerceDiscountAccountRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the last commerce discount account rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByCommerceDiscountId_Last
public 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 = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
findByCommerceDiscountId_PrevAndNext
public static CommerceDiscountAccountRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
removeByCommerceDiscountId
public static void removeByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount account rels where commerceDiscountId = ? from the database.- Parameters:
commerceDiscountId
- the commerce discount ID
-
countByCommerceDiscountId
public static int countByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount account rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount ID- Returns:
- the number of matching commerce discount account rels
-
findByCAI_CDI
public static CommerceDiscountAccountRel findByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or throws aNoSuchDiscountAccountRelException
if it could not be found.- Parameters:
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount ID- Returns:
- the matching commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundNoSuchDiscountAccountRelException
-
fetchByCAI_CDI
public static CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount ID- Returns:
- the matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
fetchByCAI_CDI
public static CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId, boolean useFinderCache) Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce discount account rel, or
null
if a matching commerce discount account rel could not be found
-
removeByCAI_CDI
public static CommerceDiscountAccountRel removeByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException Removes the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? from the database.- Parameters:
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount ID- Returns:
- the commerce discount account rel that was removed
- Throws:
NoSuchDiscountAccountRelException
-
countByCAI_CDI
public static int countByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns the number of commerce discount account rels where commerceAccountId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount ID- Returns:
- the number of matching commerce discount account rels
-
cacheResult
Caches the commerce discount account rel in the entity cache if it is enabled.- Parameters:
commerceDiscountAccountRel
- the commerce discount account rel
-
cacheResult
Caches the commerce discount account rels in the entity cache if it is enabled.- Parameters:
commerceDiscountAccountRels
- the commerce discount account rels
-
create
Creates a new commerce discount account rel with the primary key. Does not add the commerce discount account rel to the database.- Parameters:
commerceDiscountAccountRelId
- the primary key for the new commerce discount account rel- Returns:
- the new commerce discount account rel
-
remove
public static CommerceDiscountAccountRel remove(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException Removes the commerce discount account rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountAccountRelId
- the primary key of the commerce discount account rel- Returns:
- the commerce discount account rel that was removed
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
updateImpl
public static CommerceDiscountAccountRel updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel) -
findByPrimaryKey
public static CommerceDiscountAccountRel findByPrimaryKey(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException Returns the commerce discount account rel with the primary key or throws aNoSuchDiscountAccountRelException
if it could not be found.- Parameters:
commerceDiscountAccountRelId
- the primary key of the commerce discount account rel- Returns:
- the commerce discount account rel
- Throws:
NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundNoSuchDiscountAccountRelException
-
fetchByPrimaryKey
Returns the commerce discount account rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceDiscountAccountRelId
- the primary key of the commerce discount account rel- Returns:
- the commerce discount account rel, or
null
if a commerce discount account rel with the primary key could not be found
-
findAll
Returns all the commerce discount account rels.- Returns:
- the commerce discount account rels
-
findAll
Returns a range of all the commerce discount account rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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)- Returns:
- the range of commerce discount account rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce discount account rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountAccountRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce discount account rels
-
removeAll
public static void removeAll()Removes all the commerce discount account rels from the database. -
countAll
public static int countAll()Returns the number of commerce discount account rels.- Returns:
- the number of commerce discount account rels
-
getPersistence
-
setPersistence
-