Class CommercePricingClassUtil
com.liferay.commerce.pricing.service.persistence.impl.CommercePricingClassPersistenceImpl
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
(CommercePricingClass commercePricingClass) Caches the commerce pricing class in the entity cache if it is enabled.static void
cacheResult
(List<CommercePricingClass> commercePricingClasses) Caches the commerce pricing classes in the entity cache if it is enabled.static void
static void
clearCache
(CommercePricingClass commercePricingClass) static int
countAll()
Returns the number of commerce pricing classes.static int
countByCompanyId
(long companyId) Returns the number of commerce pricing classes where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce pricing classes where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce pricing classes where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce pricing classes where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommercePricingClass
create
(long commercePricingClassId) Creates a new commerce pricing class with the primary key.static CommercePricingClass
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where companyId = ?.static CommercePricingClass
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where companyId = ?.static CommercePricingClass
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommercePricingClass
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommercePricingClass
fetchByPrimaryKey
(long commercePricingClassId) Returns the commerce pricing class with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommercePricingClass> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommercePricingClass
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where uuid = ? and companyId = ?.static CommercePricingClass
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where uuid = ? and companyId = ?.static CommercePricingClass
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where uuid = ?.static CommercePricingClass
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where uuid = ?.static int
filterCountByCompanyId
(long companyId) Returns the number of commerce pricing classes that the user has permission to view where companyId = ?.static int
filterCountByUuid
(String uuid) Returns the number of commerce pricing classes that the user has permission to view where uuid = ?.static int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.static List<CommercePricingClass>
filterFindByCompanyId
(long companyId) Returns all the commerce pricing classes that the user has permission to view where companyId = ?.static List<CommercePricingClass>
filterFindByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce pricing classes that the user has permission to view where companyId = ?.static List<CommercePricingClass>
filterFindByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view where companyId = ?.static CommercePricingClass[]
filterFindByCompanyId_PrevAndNext
(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where companyId = ?.static List<CommercePricingClass>
filterFindByUuid
(String uuid) Returns all the commerce pricing classes that the user has permission to view where uuid = ?.static List<CommercePricingClass>
filterFindByUuid
(String uuid, int start, int end) Returns a range of all the commerce pricing classes that the user has permission to view where uuid = ?.static List<CommercePricingClass>
filterFindByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view where uuid = ?.static List<CommercePricingClass>
filterFindByUuid_C
(String uuid, long companyId) Returns all the commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.static List<CommercePricingClass>
filterFindByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.static List<CommercePricingClass>
filterFindByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view where uuid = ? and companyId = ?.static CommercePricingClass[]
filterFindByUuid_C_PrevAndNext
(long commercePricingClassId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.static CommercePricingClass[]
filterFindByUuid_PrevAndNext
(long commercePricingClassId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where uuid = ?.static List<CommercePricingClass>
findAll()
Returns all the commerce pricing classes.static List<CommercePricingClass>
findAll
(int start, int end) Returns a range of all the commerce pricing classes.static List<CommercePricingClass>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes.static List<CommercePricingClass>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes.static List<CommercePricingClass>
findByCompanyId
(long companyId) Returns all the commerce pricing classes where companyId = ?.static List<CommercePricingClass>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce pricing classes where companyId = ?.static List<CommercePricingClass>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes where companyId = ?.static List<CommercePricingClass>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes where companyId = ?.static CommercePricingClass
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where companyId = ?.static CommercePricingClass
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where companyId = ?.static CommercePricingClass[]
findByCompanyId_PrevAndNext
(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where companyId = ?.static CommercePricingClass
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or throws aNoSuchPricingClassException
if it could not be found.static CommercePricingClass
findByPrimaryKey
(long commercePricingClassId) Returns the commerce pricing class with the primary key or throws aNoSuchPricingClassException
if it could not be found.static List<CommercePricingClass>
findByUuid
(String uuid) Returns all the commerce pricing classes where uuid = ?.static List<CommercePricingClass>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce pricing classes where uuid = ?.static List<CommercePricingClass>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes where uuid = ?.static List<CommercePricingClass>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes where uuid = ?.static List<CommercePricingClass>
findByUuid_C
(String uuid, long companyId) Returns all the commerce pricing classes where uuid = ? and companyId = ?.static List<CommercePricingClass>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce pricing classes where uuid = ? and companyId = ?.static List<CommercePricingClass>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes where uuid = ? and companyId = ?.static List<CommercePricingClass>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes where uuid = ? and companyId = ?.static CommercePricingClass
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where uuid = ? and companyId = ?.static CommercePricingClass
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where uuid = ? and companyId = ?.static CommercePricingClass[]
findByUuid_C_PrevAndNext
(long commercePricingClassId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where uuid = ? and companyId = ?.static CommercePricingClass
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where uuid = ?.static CommercePricingClass
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where uuid = ?.static CommercePricingClass[]
findByUuid_PrevAndNext
(long commercePricingClassId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where uuid = ?.static List<CommercePricingClass>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommercePricingClass>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommercePricingClass>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) static CommercePricingClass
remove
(long commercePricingClassId) Removes the commerce pricing class with the primary key from the database.static void
Removes all the commerce pricing classes from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce pricing classes where companyId = ? from the database.static CommercePricingClass
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce pricing class where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce pricing classes where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce pricing classes where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommercePricingClassPersistence persistence) static CommercePricingClass
update
(CommercePricingClass commercePricingClass) static CommercePricingClass
update
(CommercePricingClass commercePricingClass, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePricingClass
updateImpl
(CommercePricingClass commercePricingClass)
-
Constructor Details
-
CommercePricingClassUtil
public CommercePricingClassUtil()
-
-
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,CommercePricingClass> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommercePricingClass update(CommercePricingClass commercePricingClass, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce pricing classes where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce pricing classes
-
findByUuid
Returns a range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes
-
findByUuid
public static List<CommercePricingClass> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes
-
findByUuid
public static List<CommercePricingClass> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (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 pricing classes
-
findByUuid_First
public static CommercePricingClass findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the first commerce pricing class in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByUuid_First
public static CommercePricingClass fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
findByUuid_Last
public static CommercePricingClass findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the last commerce pricing class in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByUuid_Last
public static CommercePricingClass fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
findByUuid_PrevAndNext
public static CommercePricingClass[] findByUuid_PrevAndNext(long commercePricingClassId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where uuid = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
filterFindByUuid
Returns all the commerce pricing classes that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce pricing classes that the user has permission to view
-
filterFindByUuid
Returns a range of all the commerce pricing classes that the user has permission to view 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes that the user has permission to view
-
filterFindByUuid
public static List<CommercePricingClass> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static CommercePricingClass[] filterFindByUuid_PrevAndNext(long commercePricingClassId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where uuid = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
removeByUuid
Removes all the commerce pricing classes where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce pricing classes where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce pricing classes
-
filterCountByUuid
Returns the number of commerce pricing classes that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce pricing classes that the user has permission to view
-
findByUuid_C
Returns all the commerce pricing classes where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce pricing classes
-
findByUuid_C
public static List<CommercePricingClass> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes
-
findByUuid_C
public static List<CommercePricingClass> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes
-
findByUuid_C
public static List<CommercePricingClass> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (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 pricing classes
-
findByUuid_C_First
public static CommercePricingClass findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the first commerce pricing class 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 pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByUuid_C_First
public static CommercePricingClass fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class 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 pricing class, or
null
if a matching commerce pricing class could not be found
-
findByUuid_C_Last
public static CommercePricingClass findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the last commerce pricing class 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 pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByUuid_C_Last
public static CommercePricingClass fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class 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 pricing class, or
null
if a matching commerce pricing class could not be found
-
findByUuid_C_PrevAndNext
public static CommercePricingClass[] findByUuid_C_PrevAndNext(long commercePricingClassId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where uuid = ? and companyId = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
filterFindByUuid_C
Returns all the commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce pricing classes that the user has permission to view
-
filterFindByUuid_C
public static List<CommercePricingClass> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce pricing classes that the user has permission to view 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes that the user has permission to view
-
filterFindByUuid_C
public static List<CommercePricingClass> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view 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 fromCommercePricingClassModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static CommercePricingClass[] filterFindByUuid_C_PrevAndNext(long commercePricingClassId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
removeByUuid_C
Removes all the commerce pricing classes where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce pricing classes where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce pricing classes
-
filterCountByUuid_C
Returns the number of commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce pricing classes that the user has permission to view
-
findByCompanyId
Returns all the commerce pricing classes where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce pricing classes
-
findByCompanyId
Returns a range of all the commerce pricing classes where 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 fromCommercePricingClassModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes
-
findByCompanyId
public static List<CommercePricingClass> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes where 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 fromCommercePricingClassModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes
-
findByCompanyId
public static List<CommercePricingClass> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes where 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 fromCommercePricingClassModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (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 pricing classes
-
findByCompanyId_First
public static CommercePricingClass findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the first commerce pricing class in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByCompanyId_First
public static CommercePricingClass fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the first commerce pricing class in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
findByCompanyId_Last
public static CommercePricingClass findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the last commerce pricing class in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByCompanyId_Last
public static CommercePricingClass fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns the last commerce pricing class in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
findByCompanyId_PrevAndNext
public static CommercePricingClass[] findByCompanyId_PrevAndNext(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set where companyId = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
filterFindByCompanyId
Returns all the commerce pricing classes that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce pricing classes that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the commerce pricing classes that the user has permission to view where 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 fromCommercePricingClassModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of matching commerce pricing classes that the user has permission to view
-
filterFindByCompanyId
public static List<CommercePricingClass> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes that the user has permissions to view where 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 fromCommercePricingClassModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce pricing classes that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static CommercePricingClass[] filterFindByCompanyId_PrevAndNext(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException Returns the commerce pricing classes before and after the current commerce pricing class in the ordered set of commerce pricing classes that the user has permission to view where companyId = ?.- Parameters:
commercePricingClassId
- the primary key of the current commerce pricing classcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce pricing classes where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of commerce pricing classes where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce pricing classes
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of commerce pricing classes that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce pricing classes that the user has permission to view
-
findByERC_C
public static CommercePricingClass findByERC_C(String externalReferenceCode, long companyId) throws NoSuchPricingClassException Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or throws aNoSuchPricingClassException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce pricing class
- Throws:
NoSuchPricingClassException
- if a matching commerce pricing class could not be foundNoSuchPricingClassException
-
fetchByERC_C
Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
fetchByERC_C
public static CommercePricingClass fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce pricing class where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce pricing class, or
null
if a matching commerce pricing class could not be found
-
removeByERC_C
public static CommercePricingClass removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchPricingClassException Removes the commerce pricing class where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce pricing class that was removed
- Throws:
NoSuchPricingClassException
-
countByERC_C
Returns the number of commerce pricing classes where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce pricing classes
-
cacheResult
Caches the commerce pricing class in the entity cache if it is enabled.- Parameters:
commercePricingClass
- the commerce pricing class
-
cacheResult
Caches the commerce pricing classes in the entity cache if it is enabled.- Parameters:
commercePricingClasses
- the commerce pricing classes
-
create
Creates a new commerce pricing class with the primary key. Does not add the commerce pricing class to the database.- Parameters:
commercePricingClassId
- the primary key for the new commerce pricing class- Returns:
- the new commerce pricing class
-
remove
public static CommercePricingClass remove(long commercePricingClassId) throws NoSuchPricingClassException Removes the commerce pricing class with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commercePricingClassId
- the primary key of the commerce pricing class- Returns:
- the commerce pricing class that was removed
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
updateImpl
-
findByPrimaryKey
public static CommercePricingClass findByPrimaryKey(long commercePricingClassId) throws NoSuchPricingClassException Returns the commerce pricing class with the primary key or throws aNoSuchPricingClassException
if it could not be found.- Parameters:
commercePricingClassId
- the primary key of the commerce pricing class- Returns:
- the commerce pricing class
- Throws:
NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundNoSuchPricingClassException
-
fetchByPrimaryKey
Returns the commerce pricing class with the primary key or returnsnull
if it could not be found.- Parameters:
commercePricingClassId
- the primary key of the commerce pricing class- Returns:
- the commerce pricing class, or
null
if a commerce pricing class with the primary key could not be found
-
findAll
Returns all the commerce pricing classes.- Returns:
- the commerce pricing classes
-
findAll
Returns a range of all the commerce pricing classes.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 fromCommercePricingClassModelImpl
.- Parameters:
start
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)- Returns:
- the range of commerce pricing classes
-
findAll
public static List<CommercePricingClass> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) Returns an ordered range of all the commerce pricing classes.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 fromCommercePricingClassModelImpl
.- Parameters:
start
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce pricing classes
-
findAll
public static List<CommercePricingClass> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce pricing classes.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 fromCommercePricingClassModelImpl
.- Parameters:
start
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce pricing classes
-
removeAll
public static void removeAll()Removes all the commerce pricing classes from the database. -
countAll
public static int countAll()Returns the number of commerce pricing classes.- Returns:
- the number of commerce pricing classes
-
getPersistence
-
setPersistence
-