@ProviderType
public class CommerceDiscountUserSegmentRelUtil
extends java.lang.Object
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUserSegmentRelPersistenceImpl 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
CommerceDiscountUserSegmentRelPersistence,
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUserSegmentRelPersistenceImpl| Constructor and Description |
|---|
CommerceDiscountUserSegmentRelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
Caches the commerce discount user segment rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels)
Caches the commerce discount user segment rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) |
static int |
countAll()
Returns the number of commerce discount user segment rels.
|
static int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount user segment rels where commerceDiscountId = ?.
|
static int |
countByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Returns the number of commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceDiscountUserSegmentRel |
create(long commerceDiscountUserSegmentRelId)
Creates a new commerce discount user segment rel with the primary key.
|
static CommerceDiscountUserSegmentRel |
fetchByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the first commerce discount user segment rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountUserSegmentRel |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the last commerce discount user segment rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountUserSegmentRel |
fetchByCommerceUserSegmentEntryId_First(long commerceUserSegmentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the first commerce discount user segment rel in the ordered set where commerceUserSegmentEntryId = ?.
|
static CommerceDiscountUserSegmentRel |
fetchByCommerceUserSegmentEntryId_Last(long commerceUserSegmentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the last commerce discount user segment rel in the ordered set where commerceUserSegmentEntryId = ?.
|
static CommerceDiscountUserSegmentRel |
fetchByPrimaryKey(long commerceDiscountUserSegmentRelId)
Returns the commerce discount user segment rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceDiscountUserSegmentRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceDiscountUserSegmentRel> |
findAll()
Returns all the commerce discount user segment rels.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount user segment rels.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns an ordered range of all the commerce discount user segment rels.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discount user segment rels.
|
static CommerceDiscountUserSegmentRel |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the first commerce discount user segment rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountUserSegmentRel |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the last commerce discount user segment rel in the ordered set where commerceDiscountId = ?.
|
static CommerceDiscountUserSegmentRel[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountUserSegmentRelId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the commerce discount user segment rels before and after the current commerce discount user segment rel in the ordered set where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount user segment rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount user segment rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns an ordered range of all the commerce discount user segment rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discount user segment rels where commerceDiscountId = ?.
|
static CommerceDiscountUserSegmentRel |
findByCommerceUserSegmentEntryId_First(long commerceUserSegmentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the first commerce discount user segment rel in the ordered set where commerceUserSegmentEntryId = ?.
|
static CommerceDiscountUserSegmentRel |
findByCommerceUserSegmentEntryId_Last(long commerceUserSegmentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the last commerce discount user segment rel in the ordered set where commerceUserSegmentEntryId = ?.
|
static CommerceDiscountUserSegmentRel[] |
findByCommerceUserSegmentEntryId_PrevAndNext(long commerceDiscountUserSegmentRelId,
long commerceUserSegmentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns the commerce discount user segment rels before and after the current commerce discount user segment rel in the ordered set where commerceUserSegmentEntryId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Returns all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId,
int start,
int end)
Returns a range of all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
Returns an ordered range of all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
static java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
static CommerceDiscountUserSegmentRel |
findByPrimaryKey(long commerceDiscountUserSegmentRelId)
Returns the commerce discount user segment rel with the primary key or throws a
NoSuchDiscountUserSegmentRelException if it could not be found. |
static java.util.List<CommerceDiscountUserSegmentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceDiscountUserSegmentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceDiscountUserSegmentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CommerceDiscountUserSegmentRelPersistence |
getPersistence() |
static CommerceDiscountUserSegmentRel |
remove(long commerceDiscountUserSegmentRelId)
Removes the commerce discount user segment rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce discount user segment rels from the database.
|
static void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount user segment rels where commerceDiscountId = ? from the database.
|
static void |
removeByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Removes all the commerce discount user segment rels where commerceUserSegmentEntryId = ? from the database.
|
static CommerceDiscountUserSegmentRel |
update(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) |
static CommerceDiscountUserSegmentRel |
update(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscountUserSegmentRel |
updateImpl(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
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.List<CommerceDiscountUserSegmentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceDiscountUserSegmentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceDiscountUserSegmentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceDiscountUserSegmentRel update(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceDiscountUserSegmentRel update(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDpublic static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceDiscountId - the commerce discount IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)public static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceDiscountId - the commerce discount IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceDiscountId - the commerce discount IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceDiscountUserSegmentRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceDiscountId - the commerce discount IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
commerceDiscountId - the commerce discount IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceDiscountId - the commerce discount IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
commerceDiscountId - the commerce discount IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountUserSegmentRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceDiscountUserSegmentRelId - the primary key of the current commerce discount user segment relcommerceDiscountId - the commerce discount IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a commerce discount user segment rel with the primary key could not be foundpublic static void removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDpublic static int countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDpublic static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDpublic static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceUserSegmentEntryId - the commerce user segment entry IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)public static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceUserSegmentEntryId - the commerce user segment entry IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceDiscountUserSegmentRel> findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceUserSegmentEntryId - the commerce user segment entry IDstart - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceDiscountUserSegmentRel findByCommerceUserSegmentEntryId_First(long commerceUserSegmentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceUserSegmentEntryId - the commerce user segment entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel fetchByCommerceUserSegmentEntryId_First(long commerceUserSegmentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
commerceUserSegmentEntryId - the commerce user segment entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel findByCommerceUserSegmentEntryId_Last(long commerceUserSegmentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceUserSegmentEntryId - the commerce user segment entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel fetchByCommerceUserSegmentEntryId_Last(long commerceUserSegmentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
commerceUserSegmentEntryId - the commerce user segment entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount user segment rel could not be foundpublic static CommerceDiscountUserSegmentRel[] findByCommerceUserSegmentEntryId_PrevAndNext(long commerceDiscountUserSegmentRelId, long commerceUserSegmentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator) throws NoSuchDiscountUserSegmentRelException
commerceDiscountUserSegmentRelId - the primary key of the current commerce discount user segment relcommerceUserSegmentEntryId - the commerce user segment entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUserSegmentRelException - if a commerce discount user segment rel with the primary key could not be foundpublic static void removeByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDpublic static int countByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDpublic static void cacheResult(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
commerceDiscountUserSegmentRel - the commerce discount user segment relpublic static void cacheResult(java.util.List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels)
commerceDiscountUserSegmentRels - the commerce discount user segment relspublic static CommerceDiscountUserSegmentRel create(long commerceDiscountUserSegmentRelId)
commerceDiscountUserSegmentRelId - the primary key for the new commerce discount user segment relpublic static CommerceDiscountUserSegmentRel remove(long commerceDiscountUserSegmentRelId) throws NoSuchDiscountUserSegmentRelException
commerceDiscountUserSegmentRelId - the primary key of the commerce discount user segment relNoSuchDiscountUserSegmentRelException - if a commerce discount user segment rel with the primary key could not be foundpublic static CommerceDiscountUserSegmentRel updateImpl(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
public static CommerceDiscountUserSegmentRel findByPrimaryKey(long commerceDiscountUserSegmentRelId) throws NoSuchDiscountUserSegmentRelException
NoSuchDiscountUserSegmentRelException if it could not be found.commerceDiscountUserSegmentRelId - the primary key of the commerce discount user segment relNoSuchDiscountUserSegmentRelException - if a commerce discount user segment rel with the primary key could not be foundpublic static CommerceDiscountUserSegmentRel fetchByPrimaryKey(long commerceDiscountUserSegmentRelId)
null if it could not be found.commerceDiscountUserSegmentRelId - the primary key of the commerce discount user segment relnull if a commerce discount user segment rel with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CommerceDiscountUserSegmentRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommerceDiscountUserSegmentRel> findAll()
public static java.util.List<CommerceDiscountUserSegmentRel> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)public static java.util.List<CommerceDiscountUserSegmentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceDiscountUserSegmentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUserSegmentRelModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount user segment relsend - the upper bound of the range of commerce discount user segment rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CommerceDiscountUserSegmentRelPersistence getPersistence()