@ProviderType public interface CommerceDiscountUserSegmentRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUserSegmentRel>
Caching information and settings can be found in portal.properties
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUserSegmentRelPersistenceImpl,
CommerceDiscountUserSegmentRelUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
Caches the commerce discount user segment rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels)
Caches the commerce discount user segment rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discount user segment rels.
|
int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount user segment rels where commerceDiscountId = ?.
|
int |
countByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Returns the number of commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
CommerceDiscountUserSegmentRel |
create(long commerceDiscountUserSegmentRelId)
Creates a new commerce discount user segment rel with the primary key.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceDiscountUserSegmentRel |
fetchByPrimaryKey(long commerceDiscountUserSegmentRelId)
Returns the commerce discount user segment rel with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommerceDiscountUserSegmentRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommerceDiscountUserSegmentRel> |
findAll()
Returns all the commerce discount user segment rels.
|
java.util.List<CommerceDiscountUserSegmentRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount user segment rels.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount user segment rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount user segment rels where commerceDiscountId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Returns all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
java.util.List<CommerceDiscountUserSegmentRel> |
findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId,
int start,
int end)
Returns a range of all the commerce discount user segment rels where commerceUserSegmentEntryId = ?.
|
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 = ?.
|
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 = ?.
|
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. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
CommerceDiscountUserSegmentRel |
remove(long commerceDiscountUserSegmentRelId)
Removes the commerce discount user segment rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discount user segment rels from the database.
|
void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount user segment rels where commerceDiscountId = ? from the database.
|
void |
removeByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
Removes all the commerce discount user segment rels where commerceUserSegmentEntryId = ? from the database.
|
CommerceDiscountUserSegmentRel |
updateImpl(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDjava.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)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)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 cacheCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel[] 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 foundvoid removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDint countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId - the commerce discount IDjava.util.List<CommerceDiscountUserSegmentRel> findByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDjava.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)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)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 cacheCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel[] 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 foundvoid removeByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDint countByCommerceUserSegmentEntryId(long commerceUserSegmentEntryId)
commerceUserSegmentEntryId - the commerce user segment entry IDvoid cacheResult(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
commerceDiscountUserSegmentRel - the commerce discount user segment relvoid cacheResult(java.util.List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels)
commerceDiscountUserSegmentRels - the commerce discount user segment relsCommerceDiscountUserSegmentRel create(long commerceDiscountUserSegmentRelId)
commerceDiscountUserSegmentRelId - the primary key for the new commerce discount user segment relCommerceDiscountUserSegmentRel 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 foundCommerceDiscountUserSegmentRel updateImpl(CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel)
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 foundCommerceDiscountUserSegmentRel 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 foundjava.util.Map<java.io.Serializable,CommerceDiscountUserSegmentRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUserSegmentRel>java.util.List<CommerceDiscountUserSegmentRel> findAll()
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)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)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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUserSegmentRel>