Class CommercePriceListAccountRelUtil
com.liferay.commerce.price.list.service.persistence.impl.CommercePriceListAccountRelPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommercePriceListAccountRel commercePriceListAccountRel) Caches the commerce price list account rel in the entity cache if it is enabled.static void
cacheResult
(List<CommercePriceListAccountRel> commercePriceListAccountRels) Caches the commerce price list account rels in the entity cache if it is enabled.static void
static void
clearCache
(CommercePriceListAccountRel commercePriceListAccountRel) static int
countAll()
Returns the number of commerce price list account rels.static int
countByCAI_CPI
(long commerceAccountId, long commercePriceListId) Returns the number of commerce price list account rels where commerceAccountId = ? and commercePriceListId = ?.static int
countByCommercePriceListId
(long commercePriceListId) Returns the number of commerce price list account rels where commercePriceListId = ?.static int
countByUuid
(String uuid) Returns the number of commerce price list account rels where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce price list account rels where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommercePriceListAccountRel
create
(long commercePriceListAccountRelId) Creates a new commerce price list account rel with the primary key.static CommercePriceListAccountRel
fetchByCAI_CPI
(long commerceAccountId, long commercePriceListId) Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or returnsnull
if it could not be found.static CommercePriceListAccountRel
fetchByCAI_CPI
(long commerceAccountId, long commercePriceListId, boolean useFinderCache) Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommercePriceListAccountRel
fetchByCommercePriceListId_First
(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where commercePriceListId = ?.static CommercePriceListAccountRel
fetchByCommercePriceListId_Last
(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where commercePriceListId = ?.static CommercePriceListAccountRel
fetchByPrimaryKey
(long commercePriceListAccountRelId) Returns the commerce price list account rel with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommercePriceListAccountRel
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where uuid = ? and companyId = ?.static CommercePriceListAccountRel
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where uuid = ? and companyId = ?.static CommercePriceListAccountRel
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where uuid = ?.static CommercePriceListAccountRel
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where uuid = ?.static List<CommercePriceListAccountRel>
findAll()
Returns all the commerce price list account rels.static List<CommercePriceListAccountRel>
findAll
(int start, int end) Returns a range of all the commerce price list account rels.static List<CommercePriceListAccountRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels.static List<CommercePriceListAccountRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels.static CommercePriceListAccountRel
findByCAI_CPI
(long commerceAccountId, long commercePriceListId) Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or throws aNoSuchPriceListAccountRelException
if it could not be found.static List<CommercePriceListAccountRel>
findByCommercePriceListId
(long commercePriceListId) Returns all the commerce price list account rels where commercePriceListId = ?.static List<CommercePriceListAccountRel>
findByCommercePriceListId
(long commercePriceListId, int start, int end) Returns a range of all the commerce price list account rels where commercePriceListId = ?.static List<CommercePriceListAccountRel>
findByCommercePriceListId
(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where commercePriceListId = ?.static List<CommercePriceListAccountRel>
findByCommercePriceListId
(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where commercePriceListId = ?.static CommercePriceListAccountRel
findByCommercePriceListId_First
(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where commercePriceListId = ?.static CommercePriceListAccountRel
findByCommercePriceListId_Last
(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where commercePriceListId = ?.static CommercePriceListAccountRel[]
findByCommercePriceListId_PrevAndNext
(long commercePriceListAccountRelId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where commercePriceListId = ?.static CommercePriceListAccountRel
findByPrimaryKey
(long commercePriceListAccountRelId) Returns the commerce price list account rel with the primary key or throws aNoSuchPriceListAccountRelException
if it could not be found.static List<CommercePriceListAccountRel>
findByUuid
(String uuid) Returns all the commerce price list account rels where uuid = ?.static List<CommercePriceListAccountRel>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce price list account rels where uuid = ?.static List<CommercePriceListAccountRel>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where uuid = ?.static List<CommercePriceListAccountRel>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where uuid = ?.static List<CommercePriceListAccountRel>
findByUuid_C
(String uuid, long companyId) Returns all the commerce price list account rels where uuid = ? and companyId = ?.static List<CommercePriceListAccountRel>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce price list account rels where uuid = ? and companyId = ?.static List<CommercePriceListAccountRel>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where uuid = ? and companyId = ?.static List<CommercePriceListAccountRel>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where uuid = ? and companyId = ?.static CommercePriceListAccountRel
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where uuid = ? and companyId = ?.static CommercePriceListAccountRel
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where uuid = ? and companyId = ?.static CommercePriceListAccountRel[]
findByUuid_C_PrevAndNext
(long commercePriceListAccountRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where uuid = ? and companyId = ?.static CommercePriceListAccountRel
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where uuid = ?.static CommercePriceListAccountRel
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where uuid = ?.static CommercePriceListAccountRel[]
findByUuid_PrevAndNext
(long commercePriceListAccountRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where uuid = ?.static List<CommercePriceListAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommercePriceListAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommercePriceListAccountRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) static CommercePriceListAccountRel
remove
(long commercePriceListAccountRelId) Removes the commerce price list account rel with the primary key from the database.static void
Removes all the commerce price list account rels from the database.static CommercePriceListAccountRel
removeByCAI_CPI
(long commerceAccountId, long commercePriceListId) Removes the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? from the database.static void
removeByCommercePriceListId
(long commercePriceListId) Removes all the commerce price list account rels where commercePriceListId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce price list account rels where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce price list account rels where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommercePriceListAccountRelPersistence persistence) static CommercePriceListAccountRel
update
(CommercePriceListAccountRel commercePriceListAccountRel) static CommercePriceListAccountRel
update
(CommercePriceListAccountRel commercePriceListAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceListAccountRel
updateImpl
(CommercePriceListAccountRel commercePriceListAccountRel)
-
Constructor Details
-
CommercePriceListAccountRelUtil
public CommercePriceListAccountRelUtil()
-
-
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,CommercePriceListAccountRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommercePriceListAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommercePriceListAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommercePriceListAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommercePriceListAccountRel update(CommercePriceListAccountRel commercePriceListAccountRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommercePriceListAccountRel update(CommercePriceListAccountRel commercePriceListAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce price list account rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce price list account rels
-
findByUuid
Returns a range of all the commerce price list 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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)- Returns:
- the range of matching commerce price list account rels
-
findByUuid
public static List<CommercePriceListAccountRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where uuid = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce price list account rels
-
findByUuid
public static List<CommercePriceListAccountRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where uuid = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price list account rels
-
findByUuid_First
public static CommercePriceListAccountRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the first commerce price list 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 price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByUuid_First
public static CommercePriceListAccountRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list 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 price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByUuid_Last
public static CommercePriceListAccountRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the last commerce price list 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 price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByUuid_Last
public static CommercePriceListAccountRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list 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 price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByUuid_PrevAndNext
public static CommercePriceListAccountRel[] findByUuid_PrevAndNext(long commercePriceListAccountRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where uuid = ?.- Parameters:
commercePriceListAccountRelId
- the primary key of the current commerce price list account reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a commerce price list account rel with the primary key could not be foundNoSuchPriceListAccountRelException
-
removeByUuid
Removes all the commerce price list account rels where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce price list account rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce price list account rels
-
findByUuid_C
Returns all the commerce price list account rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce price list account rels
-
findByUuid_C
public static List<CommercePriceListAccountRel> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce price list 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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)- Returns:
- the range of matching commerce price list account rels
-
findByUuid_C
public static List<CommercePriceListAccountRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where uuid = ? and companyId = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce price list account rels
-
findByUuid_C
public static List<CommercePriceListAccountRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where uuid = ? and companyId = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price list account rels
-
findByUuid_C_First
public static CommercePriceListAccountRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the first commerce price list 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 price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByUuid_C_First
public static CommercePriceListAccountRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByUuid_C_Last
public static CommercePriceListAccountRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the last commerce price list 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 price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByUuid_C_Last
public static CommercePriceListAccountRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByUuid_C_PrevAndNext
public static CommercePriceListAccountRel[] findByUuid_C_PrevAndNext(long commercePriceListAccountRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
commercePriceListAccountRelId
- the primary key of the current commerce price list account reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a commerce price list account rel with the primary key could not be foundNoSuchPriceListAccountRelException
-
removeByUuid_C
Removes all the commerce price list account rels where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce price list account rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce price list account rels
-
findByCommercePriceListId
Returns all the commerce price list account rels where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list ID- Returns:
- the matching commerce price list account rels
-
findByCommercePriceListId
public static List<CommercePriceListAccountRel> findByCommercePriceListId(long commercePriceListId, int start, int end) Returns a range of all the commerce price list account rels where commercePriceListId = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)- Returns:
- the range of matching commerce price list account rels
-
findByCommercePriceListId
public static List<CommercePriceListAccountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels where commercePriceListId = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce price list account rels
-
findByCommercePriceListId
public static List<CommercePriceListAccountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels where commercePriceListId = ?.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price list account rels
-
findByCommercePriceListId_First
public static CommercePriceListAccountRel findByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the first commerce price list account rel in the ordered set where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByCommercePriceListId_First
public static CommercePriceListAccountRel fetchByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the first commerce price list account rel in the ordered set where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByCommercePriceListId_Last
public static CommercePriceListAccountRel findByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the last commerce price list account rel in the ordered set where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByCommercePriceListId_Last
public static CommercePriceListAccountRel fetchByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns the last commerce price list account rel in the ordered set where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
findByCommercePriceListId_PrevAndNext
public static CommercePriceListAccountRel[] findByCommercePriceListId_PrevAndNext(long commercePriceListAccountRelId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) throws NoSuchPriceListAccountRelException Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where commercePriceListId = ?.- Parameters:
commercePriceListAccountRelId
- the primary key of the current commerce price list account relcommercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a commerce price list account rel with the primary key could not be foundNoSuchPriceListAccountRelException
-
removeByCommercePriceListId
public static void removeByCommercePriceListId(long commercePriceListId) Removes all the commerce price list account rels where commercePriceListId = ? from the database.- Parameters:
commercePriceListId
- the commerce price list ID
-
countByCommercePriceListId
public static int countByCommercePriceListId(long commercePriceListId) Returns the number of commerce price list account rels where commercePriceListId = ?.- Parameters:
commercePriceListId
- the commerce price list ID- Returns:
- the number of matching commerce price list account rels
-
findByCAI_CPI
public static CommercePriceListAccountRel findByCAI_CPI(long commerceAccountId, long commercePriceListId) throws NoSuchPriceListAccountRelException Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or throws aNoSuchPriceListAccountRelException
if it could not be found.- Parameters:
commerceAccountId
- the commerce account IDcommercePriceListId
- the commerce price list ID- Returns:
- the matching commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a matching commerce price list account rel could not be foundNoSuchPriceListAccountRelException
-
fetchByCAI_CPI
public static CommercePriceListAccountRel fetchByCAI_CPI(long commerceAccountId, long commercePriceListId) Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceAccountId
- the commerce account IDcommercePriceListId
- the commerce price list ID- Returns:
- the matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
fetchByCAI_CPI
public static CommercePriceListAccountRel fetchByCAI_CPI(long commerceAccountId, long commercePriceListId, boolean useFinderCache) Returns the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceAccountId
- the commerce account IDcommercePriceListId
- the commerce price list IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce price list account rel, or
null
if a matching commerce price list account rel could not be found
-
removeByCAI_CPI
public static CommercePriceListAccountRel removeByCAI_CPI(long commerceAccountId, long commercePriceListId) throws NoSuchPriceListAccountRelException Removes the commerce price list account rel where commerceAccountId = ? and commercePriceListId = ? from the database.- Parameters:
commerceAccountId
- the commerce account IDcommercePriceListId
- the commerce price list ID- Returns:
- the commerce price list account rel that was removed
- Throws:
NoSuchPriceListAccountRelException
-
countByCAI_CPI
public static int countByCAI_CPI(long commerceAccountId, long commercePriceListId) Returns the number of commerce price list account rels where commerceAccountId = ? and commercePriceListId = ?.- Parameters:
commerceAccountId
- the commerce account IDcommercePriceListId
- the commerce price list ID- Returns:
- the number of matching commerce price list account rels
-
cacheResult
Caches the commerce price list account rel in the entity cache if it is enabled.- Parameters:
commercePriceListAccountRel
- the commerce price list account rel
-
cacheResult
Caches the commerce price list account rels in the entity cache if it is enabled.- Parameters:
commercePriceListAccountRels
- the commerce price list account rels
-
create
Creates a new commerce price list account rel with the primary key. Does not add the commerce price list account rel to the database.- Parameters:
commercePriceListAccountRelId
- the primary key for the new commerce price list account rel- Returns:
- the new commerce price list account rel
-
remove
public static CommercePriceListAccountRel remove(long commercePriceListAccountRelId) throws NoSuchPriceListAccountRelException Removes the commerce price list account rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commercePriceListAccountRelId
- the primary key of the commerce price list account rel- Returns:
- the commerce price list account rel that was removed
- Throws:
NoSuchPriceListAccountRelException
- if a commerce price list account rel with the primary key could not be foundNoSuchPriceListAccountRelException
-
updateImpl
public static CommercePriceListAccountRel updateImpl(CommercePriceListAccountRel commercePriceListAccountRel) -
findByPrimaryKey
public static CommercePriceListAccountRel findByPrimaryKey(long commercePriceListAccountRelId) throws NoSuchPriceListAccountRelException Returns the commerce price list account rel with the primary key or throws aNoSuchPriceListAccountRelException
if it could not be found.- Parameters:
commercePriceListAccountRelId
- the primary key of the commerce price list account rel- Returns:
- the commerce price list account rel
- Throws:
NoSuchPriceListAccountRelException
- if a commerce price list account rel with the primary key could not be foundNoSuchPriceListAccountRelException
-
fetchByPrimaryKey
Returns the commerce price list account rel with the primary key or returnsnull
if it could not be found.- Parameters:
commercePriceListAccountRelId
- the primary key of the commerce price list account rel- Returns:
- the commerce price list account rel, or
null
if a commerce price list account rel with the primary key could not be found
-
findAll
Returns all the commerce price list account rels.- Returns:
- the commerce price list account rels
-
findAll
Returns a range of all the commerce price list 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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)- Returns:
- the range of commerce price list account rels
-
findAll
public static List<CommercePriceListAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator) Returns an ordered range of all the commerce price list account rels.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce price list account rels
-
findAll
public static List<CommercePriceListAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListAccountRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce price list account rels.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 fromCommercePriceListAccountRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce price list account relsend
- the upper bound of the range of commerce price list account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce price list account rels
-
removeAll
public static void removeAll()Removes all the commerce price list account rels from the database. -
countAll
public static int countAll()Returns the number of commerce price list account rels.- Returns:
- the number of commerce price list account rels
-
getPersistence
-
setPersistence
-