@ProviderType public interface CommerceChannelRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceChannelRel>
Caching information and settings can be found in portal.properties
CommerceChannelRelUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceChannelRel commerceChannelRel)
Caches the commerce channel rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceChannelRel> commerceChannelRels)
Caches the commerce channel rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce channel rels.
|
int |
countByC_C_C(long classNameId,
long classPK,
long commerceChannelId)
Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.
|
int |
countByC_C(long classNameId,
long classPK)
Returns the number of commerce channel rels where classNameId = ? and classPK = ?.
|
int |
countByCommerceChannelId(long commerceChannelId)
Returns the number of commerce channel rels where commerceChannelId = ?.
|
CommerceChannelRel |
create(long commerceChannelRelId)
Creates a new commerce channel rel with the primary key.
|
CommerceChannelRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceChannelId)
Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns
null if it could not be found. |
CommerceChannelRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceChannelId,
boolean useFinderCache)
Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceChannelRel |
fetchByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the first commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
|
CommerceChannelRel |
fetchByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the last commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
|
CommerceChannelRel |
fetchByCommerceChannelId_First(long commerceChannelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.
|
CommerceChannelRel |
fetchByCommerceChannelId_Last(long commerceChannelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.
|
CommerceChannelRel |
fetchByPrimaryKey(long commerceChannelRelId)
Returns the commerce channel rel with the primary key or returns
null if it could not be found. |
java.util.List<CommerceChannelRel> |
findAll()
Returns all the commerce channel rels.
|
java.util.List<CommerceChannelRel> |
findAll(int start,
int end)
Returns a range of all the commerce channel rels.
|
java.util.List<CommerceChannelRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns an ordered range of all the commerce channel rels.
|
java.util.List<CommerceChannelRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channel rels.
|
CommerceChannelRel |
findByC_C_C(long classNameId,
long classPK,
long commerceChannelId)
Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws a
NoSuchChannelRelException if it could not be found. |
CommerceChannelRel |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the first commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
|
CommerceChannelRel |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the last commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
|
CommerceChannelRel[] |
findByC_C_PrevAndNext(long commerceChannelRelId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
|
java.util.List<CommerceChannelRel> |
findByC_C(long classNameId,
long classPK)
Returns all the commerce channel rels where classNameId = ? and classPK = ?.
|
java.util.List<CommerceChannelRel> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce channel rels where classNameId = ? and classPK = ?.
|
java.util.List<CommerceChannelRel> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns an ordered range of all the commerce channel rels where classNameId = ? and classPK = ?.
|
java.util.List<CommerceChannelRel> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channel rels where classNameId = ? and classPK = ?.
|
CommerceChannelRel |
findByCommerceChannelId_First(long commerceChannelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.
|
CommerceChannelRel |
findByCommerceChannelId_Last(long commerceChannelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.
|
CommerceChannelRel[] |
findByCommerceChannelId_PrevAndNext(long commerceChannelRelId,
long commerceChannelId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where commerceChannelId = ?.
|
java.util.List<CommerceChannelRel> |
findByCommerceChannelId(long commerceChannelId)
Returns all the commerce channel rels where commerceChannelId = ?.
|
java.util.List<CommerceChannelRel> |
findByCommerceChannelId(long commerceChannelId,
int start,
int end)
Returns a range of all the commerce channel rels where commerceChannelId = ?.
|
java.util.List<CommerceChannelRel> |
findByCommerceChannelId(long commerceChannelId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.
|
java.util.List<CommerceChannelRel> |
findByCommerceChannelId(long commerceChannelId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.
|
CommerceChannelRel |
findByPrimaryKey(long commerceChannelRelId)
Returns the commerce channel rel with the primary key or throws a
NoSuchChannelRelException if it could not be found. |
CommerceChannelRel |
remove(long commerceChannelRelId)
Removes the commerce channel rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce channel rels from the database.
|
CommerceChannelRel |
removeByC_C_C(long classNameId,
long classPK,
long commerceChannelId)
Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.
|
void |
removeByC_C(long classNameId,
long classPK)
Removes all the commerce channel rels where classNameId = ? and classPK = ? from the database.
|
void |
removeByCommerceChannelId(long commerceChannelId)
Removes all the commerce channel rels where commerceChannelId = ? from the database.
|
CommerceChannelRel |
updateImpl(CommerceChannelRel commerceChannelRel) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId)
commerceChannelId
- the commerce channel IDjava.util.List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, 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 CommerceChannelRelModelImpl
.
commerceChannelId
- the commerce channel IDstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)java.util.List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
commerceChannelId
- the commerce channel IDstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
commerceChannelId
- the commerce channel IDstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceChannelRel findByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a matching commerce channel rel could not be foundCommerceChannelRel fetchByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel rel could not be foundCommerceChannelRel findByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a matching commerce channel rel could not be foundCommerceChannelRel fetchByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel rel could not be foundCommerceChannelRel[] findByCommerceChannelId_PrevAndNext(long commerceChannelRelId, long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
commerceChannelRelId
- the primary key of the current commerce channel relcommerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundvoid removeByCommerceChannelId(long commerceChannelId)
commerceChannelId
- the commerce channel IDint countByCommerceChannelId(long commerceChannelId)
commerceChannelId
- the commerce channel IDjava.util.List<CommerceChannelRel> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkjava.util.List<CommerceChannelRel> findByC_C(long classNameId, long classPK, 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 CommerceChannelRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)java.util.List<CommerceChannelRel> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceChannelRel> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceChannelRel findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a matching commerce channel rel could not be foundCommerceChannelRel fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel rel could not be foundCommerceChannelRel findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a matching commerce channel rel could not be foundCommerceChannelRel fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel rel could not be foundCommerceChannelRel[] findByC_C_PrevAndNext(long commerceChannelRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
commerceChannelRelId
- the primary key of the current commerce channel relclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundvoid removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkint countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkCommerceChannelRel findByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException
NoSuchChannelRelException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDNoSuchChannelRelException
- if a matching commerce channel rel could not be foundCommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDnull
if a matching commerce channel rel could not be foundCommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce channel rel could not be foundCommerceChannelRel removeByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDNoSuchChannelRelException
int countByC_C_C(long classNameId, long classPK, long commerceChannelId)
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDvoid cacheResult(CommerceChannelRel commerceChannelRel)
commerceChannelRel
- the commerce channel relvoid cacheResult(java.util.List<CommerceChannelRel> commerceChannelRels)
commerceChannelRels
- the commerce channel relsCommerceChannelRel create(long commerceChannelRelId)
commerceChannelRelId
- the primary key for the new commerce channel relCommerceChannelRel remove(long commerceChannelRelId) throws NoSuchChannelRelException
commerceChannelRelId
- the primary key of the commerce channel relNoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundCommerceChannelRel updateImpl(CommerceChannelRel commerceChannelRel)
CommerceChannelRel findByPrimaryKey(long commerceChannelRelId) throws NoSuchChannelRelException
NoSuchChannelRelException
if it could not be found.commerceChannelRelId
- the primary key of the commerce channel relNoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundCommerceChannelRel fetchByPrimaryKey(long commerceChannelRelId)
null
if it could not be found.commerceChannelRelId
- the primary key of the commerce channel relnull
if a commerce channel rel with the primary key could not be foundjava.util.List<CommerceChannelRel> findAll()
java.util.List<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
start
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)java.util.List<CommerceChannelRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
start
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceChannelRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> 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 CommerceChannelRelModelImpl
.
start
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()