public class CommercePricingClassUtil
extends java.lang.Object
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
CommercePricingClassPersistence
Constructor and Description |
---|
CommercePricingClassUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePricingClass commercePricingClass)
Caches the commerce pricing class in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePricingClass> commercePricingClasses)
Caches the commerce pricing classes in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePricingClass commercePricingClass) |
static int |
countAll()
Returns the number of commerce pricing classes.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce pricing classes where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce pricing classes where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce pricing classes where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce pricing classes where uuid = ?.
|
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 |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce pricing class where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommercePricingClass |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce pricing class where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
fetchByPrimaryKey(long commercePricingClassId)
Returns the commerce pricing class with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePricingClass> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommercePricingClass |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.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_C(java.lang.String uuid,
long companyId)
Returns the number of commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of commerce pricing classes that the user has permission to view where uuid = ?.
|
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 java.util.List<CommercePricingClass> |
filterFindByCompanyId(long companyId)
Returns all the commerce pricing classes that the user has permission to view where companyId = ?.
|
static java.util.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 java.util.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[] |
filterFindByUuid_C_PrevAndNext(long commercePricingClassId,
java.lang.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 java.util.List<CommercePricingClass> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce pricing classes that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommercePricingClass> |
filterFindByUuid_C(java.lang.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 java.util.List<CommercePricingClass> |
filterFindByUuid_C(java.lang.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_PrevAndNext(long commercePricingClassId,
java.lang.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 java.util.List<CommercePricingClass> |
filterFindByUuid(java.lang.String uuid)
Returns all the commerce pricing classes that the user has permission to view where uuid = ?.
|
static java.util.List<CommercePricingClass> |
filterFindByUuid(java.lang.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 java.util.List<CommercePricingClass> |
filterFindByUuid(java.lang.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 java.util.List<CommercePricingClass> |
findAll()
Returns all the commerce pricing classes.
|
static java.util.List<CommercePricingClass> |
findAll(int start,
int end)
Returns a range of all the commerce pricing classes.
|
static java.util.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 java.util.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 CommercePricingClass |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce pricing class where companyId = ? and externalReferenceCode = ? or throws a
NoSuchPricingClassException if it could not be found. |
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 java.util.List<CommercePricingClass> |
findByCompanyId(long companyId)
Returns all the commerce pricing classes where companyId = ?.
|
static java.util.List<CommercePricingClass> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce pricing classes where companyId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long commercePricingClassId)
Returns the commerce pricing class with the primary key or throws a
NoSuchPricingClassException if it could not be found. |
static CommercePricingClass |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommercePricingClass> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce pricing classes where uuid = ? and companyId = ?.
|
static java.util.List<CommercePricingClass> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce pricing classes where uuid = ? and companyId = ?.
|
static java.util.List<CommercePricingClass> |
findByUuid_C(java.lang.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 java.util.List<CommercePricingClass> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommercePricingClass> |
findByUuid(java.lang.String uuid)
Returns all the commerce pricing classes where uuid = ?.
|
static java.util.List<CommercePricingClass> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce pricing classes where uuid = ?.
|
static java.util.List<CommercePricingClass> |
findByUuid(java.lang.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 java.util.List<CommercePricingClass> |
findByUuid(java.lang.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 java.util.List<CommercePricingClass> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePricingClass> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePricingClass> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) |
static CommercePricingClassPersistence |
getPersistence() |
static CommercePricingClass |
remove(long commercePricingClassId)
Removes the commerce pricing class with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce pricing classes from the database.
|
static CommercePricingClass |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce pricing class where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce pricing classes where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce pricing classes where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce pricing classes where uuid = ? from the database.
|
static CommercePricingClass |
update(CommercePricingClass commercePricingClass) |
static CommercePricingClass |
update(CommercePricingClass commercePricingClass,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePricingClass |
updateImpl(CommercePricingClass commercePricingClass) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePricingClass commercePricingClass)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommercePricingClass> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePricingClass> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePricingClass update(CommercePricingClass commercePricingClass)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePricingClass update(CommercePricingClass commercePricingClass, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePricingClass> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePricingClass> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static java.util.List<CommercePricingClass> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePricingClass findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass[] findByUuid_PrevAndNext(long commercePricingClassId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static java.util.List<CommercePricingClass> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePricingClass> filterFindByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static CommercePricingClass[] filterFindByUuid_PrevAndNext(long commercePricingClassId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePricingClass> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePricingClass> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static java.util.List<CommercePricingClass> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePricingClass findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass[] findByUuid_C_PrevAndNext(long commercePricingClassId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static java.util.List<CommercePricingClass> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePricingClass> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static CommercePricingClass[] filterFindByUuid_C_PrevAndNext(long commercePricingClassId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePricingClass> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommercePricingClass> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static java.util.List<CommercePricingClass> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePricingClass findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class could not be foundpublic static CommercePricingClass[] findByCompanyId_PrevAndNext(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static java.util.List<CommercePricingClass> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommercePricingClass> filterFindByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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)public static java.util.List<CommercePricingClass> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static CommercePricingClass[] filterFindByCompanyId_PrevAndNext(long commercePricingClassId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the current commerce pricing classcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static CommercePricingClass findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchPricingClassException
NoSuchPricingClassException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchPricingClassException
- if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce pricing class could not be foundpublic static CommercePricingClass fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce pricing class could not be foundpublic static CommercePricingClass removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchPricingClassException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchPricingClassException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommercePricingClass commercePricingClass)
commercePricingClass
- the commerce pricing classpublic static void cacheResult(java.util.List<CommercePricingClass> commercePricingClasses)
commercePricingClasses
- the commerce pricing classespublic static CommercePricingClass create(long commercePricingClassId)
commercePricingClassId
- the primary key for the new commerce pricing classpublic static CommercePricingClass remove(long commercePricingClassId) throws NoSuchPricingClassException
commercePricingClassId
- the primary key of the commerce pricing classNoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static CommercePricingClass updateImpl(CommercePricingClass commercePricingClass)
public static CommercePricingClass findByPrimaryKey(long commercePricingClassId) throws NoSuchPricingClassException
NoSuchPricingClassException
if it could not be found.commercePricingClassId
- the primary key of the commerce pricing classNoSuchPricingClassException
- if a commerce pricing class with the primary key could not be foundpublic static CommercePricingClass fetchByPrimaryKey(long commercePricingClassId)
null
if it could not be found.commercePricingClassId
- the primary key of the commerce pricing classnull
if a commerce pricing class with the primary key could not be foundpublic static java.util.List<CommercePricingClass> findAll()
public static java.util.List<CommercePricingClass> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
start
- the lower bound of the range of commerce pricing classesend
- the upper bound of the range of commerce pricing classes (not inclusive)public static java.util.List<CommercePricingClass> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)public static java.util.List<CommercePricingClass> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePricingClassModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommercePricingClassPersistence getPersistence()