@ProviderType public interface CommerceApplicationModelCProductRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceApplicationModelCProductRel>
Caching information and settings can be found in portal.properties
CommerceApplicationModelCProductRelUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Caches the commerce application model c product rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceApplicationModelCProductRel> commerceApplicationModelCProductRels)
Caches the commerce application model c product rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce application model c product rels.
|
int |
countByCommerceApplicationModelId(long commerceApplicationModelId)
Returns the number of commerce application model c product rels where commerceApplicationModelId = ?.
|
int |
countByCProductId(long CProductId)
Returns the number of commerce application model c product rels where CProductId = ?.
|
CommerceApplicationModelCProductRel |
create(long commerceApplicationModelCProductRelId)
Creates a new commerce application model c product rel with the primary key.
|
CommerceApplicationModelCProductRel |
fetchByCommerceApplicationModelId_First(long commerceApplicationModelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the first commerce application model c product rel in the ordered set where commerceApplicationModelId = ?.
|
CommerceApplicationModelCProductRel |
fetchByCommerceApplicationModelId_Last(long commerceApplicationModelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the last commerce application model c product rel in the ordered set where commerceApplicationModelId = ?.
|
CommerceApplicationModelCProductRel |
fetchByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the first commerce application model c product rel in the ordered set where CProductId = ?.
|
CommerceApplicationModelCProductRel |
fetchByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the last commerce application model c product rel in the ordered set where CProductId = ?.
|
CommerceApplicationModelCProductRel |
fetchByPrimaryKey(long commerceApplicationModelCProductRelId)
Returns the commerce application model c product rel with the primary key or returns
null if it could not be found. |
java.util.List<CommerceApplicationModelCProductRel> |
findAll()
Returns all the commerce application model c product rels.
|
java.util.List<CommerceApplicationModelCProductRel> |
findAll(int start,
int end)
Returns a range of all the commerce application model c product rels.
|
java.util.List<CommerceApplicationModelCProductRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns an ordered range of all the commerce application model c product rels.
|
java.util.List<CommerceApplicationModelCProductRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application model c product rels.
|
CommerceApplicationModelCProductRel |
findByCommerceApplicationModelId_First(long commerceApplicationModelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the first commerce application model c product rel in the ordered set where commerceApplicationModelId = ?.
|
CommerceApplicationModelCProductRel |
findByCommerceApplicationModelId_Last(long commerceApplicationModelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the last commerce application model c product rel in the ordered set where commerceApplicationModelId = ?.
|
CommerceApplicationModelCProductRel[] |
findByCommerceApplicationModelId_PrevAndNext(long commerceApplicationModelCProductRelId,
long commerceApplicationModelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the commerce application model c product rels before and after the current commerce application model c product rel in the ordered set where commerceApplicationModelId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCommerceApplicationModelId(long commerceApplicationModelId)
Returns all the commerce application model c product rels where commerceApplicationModelId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCommerceApplicationModelId(long commerceApplicationModelId,
int start,
int end)
Returns a range of all the commerce application model c product rels where commerceApplicationModelId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCommerceApplicationModelId(long commerceApplicationModelId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns an ordered range of all the commerce application model c product rels where commerceApplicationModelId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCommerceApplicationModelId(long commerceApplicationModelId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application model c product rels where commerceApplicationModelId = ?.
|
CommerceApplicationModelCProductRel |
findByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the first commerce application model c product rel in the ordered set where CProductId = ?.
|
CommerceApplicationModelCProductRel |
findByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the last commerce application model c product rel in the ordered set where CProductId = ?.
|
CommerceApplicationModelCProductRel[] |
findByCProductId_PrevAndNext(long commerceApplicationModelCProductRelId,
long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns the commerce application model c product rels before and after the current commerce application model c product rel in the ordered set where CProductId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCProductId(long CProductId)
Returns all the commerce application model c product rels where CProductId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCProductId(long CProductId,
int start,
int end)
Returns a range of all the commerce application model c product rels where CProductId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
Returns an ordered range of all the commerce application model c product rels where CProductId = ?.
|
java.util.List<CommerceApplicationModelCProductRel> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application model c product rels where CProductId = ?.
|
CommerceApplicationModelCProductRel |
findByPrimaryKey(long commerceApplicationModelCProductRelId)
Returns the commerce application model c product rel with the primary key or throws a
NoSuchApplicationModelCProductRelException if it could not be found. |
CommerceApplicationModelCProductRel |
remove(long commerceApplicationModelCProductRelId)
Removes the commerce application model c product rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce application model c product rels from the database.
|
void |
removeByCommerceApplicationModelId(long commerceApplicationModelId)
Removes all the commerce application model c product rels where commerceApplicationModelId = ? from the database.
|
void |
removeByCProductId(long CProductId)
Removes all the commerce application model c product rels where CProductId = ? from the database.
|
CommerceApplicationModelCProductRel |
updateImpl(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceApplicationModelCProductRel> findByCommerceApplicationModelId(long commerceApplicationModelId)
commerceApplicationModelId - the commerce application model IDjava.util.List<CommerceApplicationModelCProductRel> findByCommerceApplicationModelId(long commerceApplicationModelId, 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 CommerceApplicationModelCProductRelModelImpl.
commerceApplicationModelId - the commerce application model IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)java.util.List<CommerceApplicationModelCProductRel> findByCommerceApplicationModelId(long commerceApplicationModelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
commerceApplicationModelId - the commerce application model IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceApplicationModelCProductRel> findByCommerceApplicationModelId(long commerceApplicationModelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
commerceApplicationModelId - the commerce application model IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cacheCommerceApplicationModelCProductRel findByCommerceApplicationModelId_First(long commerceApplicationModelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
commerceApplicationModelId - the commerce application model IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel fetchByCommerceApplicationModelId_First(long commerceApplicationModelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
commerceApplicationModelId - the commerce application model IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel findByCommerceApplicationModelId_Last(long commerceApplicationModelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
commerceApplicationModelId - the commerce application model IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel fetchByCommerceApplicationModelId_Last(long commerceApplicationModelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
commerceApplicationModelId - the commerce application model IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel[] findByCommerceApplicationModelId_PrevAndNext(long commerceApplicationModelCProductRelId, long commerceApplicationModelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
commerceApplicationModelCProductRelId - the primary key of the current commerce application model c product relcommerceApplicationModelId - the commerce application model IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a commerce application model c product rel with the primary key could not be foundvoid removeByCommerceApplicationModelId(long commerceApplicationModelId)
commerceApplicationModelId - the commerce application model IDint countByCommerceApplicationModelId(long commerceApplicationModelId)
commerceApplicationModelId - the commerce application model IDjava.util.List<CommerceApplicationModelCProductRel> findByCProductId(long CProductId)
CProductId - the c product IDjava.util.List<CommerceApplicationModelCProductRel> findByCProductId(long CProductId, 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 CommerceApplicationModelCProductRelModelImpl.
CProductId - the c product IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)java.util.List<CommerceApplicationModelCProductRel> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
CProductId - the c product IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceApplicationModelCProductRel> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
CProductId - the c product IDstart - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cacheCommerceApplicationModelCProductRel findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
CProductId - the c product IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
CProductId - the c product IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
CProductId - the c product IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator)
CProductId - the c product IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model c product rel could not be foundCommerceApplicationModelCProductRel[] findByCProductId_PrevAndNext(long commerceApplicationModelCProductRelId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> orderByComparator) throws NoSuchApplicationModelCProductRelException
commerceApplicationModelCProductRelId - the primary key of the current commerce application model c product relCProductId - the c product IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelCProductRelException - if a commerce application model c product rel with the primary key could not be foundvoid removeByCProductId(long CProductId)
CProductId - the c product IDint countByCProductId(long CProductId)
CProductId - the c product IDvoid cacheResult(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
commerceApplicationModelCProductRel - the commerce application model c product relvoid cacheResult(java.util.List<CommerceApplicationModelCProductRel> commerceApplicationModelCProductRels)
commerceApplicationModelCProductRels - the commerce application model c product relsCommerceApplicationModelCProductRel create(long commerceApplicationModelCProductRelId)
commerceApplicationModelCProductRelId - the primary key for the new commerce application model c product relCommerceApplicationModelCProductRel remove(long commerceApplicationModelCProductRelId) throws NoSuchApplicationModelCProductRelException
commerceApplicationModelCProductRelId - the primary key of the commerce application model c product relNoSuchApplicationModelCProductRelException - if a commerce application model c product rel with the primary key could not be foundCommerceApplicationModelCProductRel updateImpl(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
CommerceApplicationModelCProductRel findByPrimaryKey(long commerceApplicationModelCProductRelId) throws NoSuchApplicationModelCProductRelException
NoSuchApplicationModelCProductRelException if it could not be found.commerceApplicationModelCProductRelId - the primary key of the commerce application model c product relNoSuchApplicationModelCProductRelException - if a commerce application model c product rel with the primary key could not be foundCommerceApplicationModelCProductRel fetchByPrimaryKey(long commerceApplicationModelCProductRelId)
null if it could not be found.commerceApplicationModelCProductRelId - the primary key of the commerce application model c product relnull if a commerce application model c product rel with the primary key could not be foundjava.util.List<CommerceApplicationModelCProductRel> findAll()
java.util.List<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
start - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)java.util.List<CommerceApplicationModelCProductRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
start - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceApplicationModelCProductRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModelCProductRel> 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 CommerceApplicationModelCProductRelModelImpl.
start - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachevoid removeAll()
int countAll()