Class CommerceChannelRelUtil
com.liferay.commerce.product.service.persistence.impl.CommerceChannelRelPersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceChannelRel commerceChannelRel) Caches the commerce channel rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceChannelRel> commerceChannelRels) Caches the commerce channel rels in the entity cache if it is enabled.static void
static void
clearCache
(CommerceChannelRel commerceChannelRel) static int
countAll()
Returns the number of commerce channel rels.static int
countByC_C
(long classNameId, long classPK) Returns the number of commerce channel rels where classNameId = ? and classPK = ?.static int
countByC_C_C
(long classNameId, long classPK, long commerceChannelId) Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.static int
countByCommerceChannelId
(long commerceChannelId) Returns the number of commerce channel rels where commerceChannelId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceChannelRel
create
(long commerceChannelRelId) Creates a new commerce channel rel with the primary key.static CommerceChannelRel
fetchByC_C_C
(long classNameId, long classPK, long commerceChannelId) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnull
if it could not be found.static CommerceChannelRel
fetchByC_C_C
(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnull
if it could not be found, optionally using the finder cache.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceChannelRel
fetchByPrimaryKey
(long commerceChannelRelId) Returns the commerce channel rel with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceChannelRel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceChannelRel>
findAll()
Returns all the commerce channel rels.static List<CommerceChannelRel>
findAll
(int start, int end) Returns a range of all the commerce channel rels.static 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.static 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.static List<CommerceChannelRel>
findByC_C
(long classNameId, long classPK) Returns all the commerce channel rels where classNameId = ? and classPK = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceChannelRel
findByC_C_C
(long classNameId, long classPK, long commerceChannelId) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws aNoSuchChannelRelException
if it could not be found.static 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 = ?.static 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 = ?.static 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 = ?.static List<CommerceChannelRel>
findByCommerceChannelId
(long commerceChannelId) Returns all the commerce channel rels where commerceChannelId = ?.static List<CommerceChannelRel>
findByCommerceChannelId
(long commerceChannelId, int start, int end) Returns a range of all the commerce channel rels where commerceChannelId = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceChannelRel
findByPrimaryKey
(long commerceChannelRelId) Returns the commerce channel rel with the primary key or throws aNoSuchChannelRelException
if it could not be found.static List<CommerceChannelRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceChannelRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceChannelRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) static CommerceChannelRel
remove
(long commerceChannelRelId) Removes the commerce channel rel with the primary key from the database.static void
Removes all the commerce channel rels from the database.static void
removeByC_C
(long classNameId, long classPK) Removes all the commerce channel rels where classNameId = ? and classPK = ? from the database.static CommerceChannelRel
removeByC_C_C
(long classNameId, long classPK, long commerceChannelId) Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.static void
removeByCommerceChannelId
(long commerceChannelId) Removes all the commerce channel rels where commerceChannelId = ? from the database.static void
setPersistence
(CommerceChannelRelPersistence persistence) static CommerceChannelRel
update
(CommerceChannelRel commerceChannelRel) static CommerceChannelRel
update
(CommerceChannelRel commerceChannelRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceChannelRel
updateImpl
(CommerceChannelRel commerceChannelRel)
-
Constructor Details
-
CommerceChannelRelUtil
public CommerceChannelRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceChannelRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceChannelRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceChannelRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceChannelRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceChannelRel update(CommerceChannelRel commerceChannelRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceChannelId
Returns all the commerce channel rels where commerceChannelId = ?.- Parameters:
commerceChannelId
- the commerce channel ID- Returns:
- the matching commerce channel rels
-
findByCommerceChannelId
public static List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end) Returns a range of all the commerce channel rels where commerceChannelId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce channel rels
-
findByCommerceChannelId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channel rels
-
findByCommerceChannelId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channel rels
-
findByCommerceChannelId_First
public static CommerceChannelRel findByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.- Parameters:
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel rel
- Throws:
NoSuchChannelRelException
- if a matching commerce channel rel could not be foundNoSuchChannelRelException
-
fetchByCommerceChannelId_First
public static 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 = ?.- Parameters:
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
findByCommerceChannelId_Last
public static CommerceChannelRel findByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.- Parameters:
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel rel
- Throws:
NoSuchChannelRelException
- if a matching commerce channel rel could not be foundNoSuchChannelRelException
-
fetchByCommerceChannelId_Last
public static 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 = ?.- Parameters:
commerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
findByCommerceChannelId_PrevAndNext
public static CommerceChannelRel[] findByCommerceChannelId_PrevAndNext(long commerceChannelRelId, long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where commerceChannelId = ?.- Parameters:
commerceChannelRelId
- the primary key of the current commerce channel relcommerceChannelId
- the commerce channel IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel rel
- Throws:
NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundNoSuchChannelRelException
-
removeByCommerceChannelId
public static void removeByCommerceChannelId(long commerceChannelId) Removes all the commerce channel rels where commerceChannelId = ? from the database.- Parameters:
commerceChannelId
- the commerce channel ID
-
countByCommerceChannelId
public static int countByCommerceChannelId(long commerceChannelId) Returns the number of commerce channel rels where commerceChannelId = ?.- Parameters:
commerceChannelId
- the commerce channel ID- Returns:
- the number of matching commerce channel rels
-
findByC_C
Returns all the commerce channel rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching commerce channel rels
-
findByC_C
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce channel rels
-
findByC_C
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channel rels
-
findByC_C
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channel rels
-
findByC_C_First
public static CommerceChannelRel findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the first commerce channel rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel rel
- Throws:
NoSuchChannelRelException
- if a matching commerce channel rel could not be foundNoSuchChannelRelException
-
fetchByC_C_First
public static 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
findByC_C_Last
public static CommerceChannelRel findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the last commerce channel rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel rel
- Throws:
NoSuchChannelRelException
- if a matching commerce channel rel could not be foundNoSuchChannelRelException
-
fetchByC_C_Last
public static 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
findByC_C_PrevAndNext
public static CommerceChannelRel[] findByC_C_PrevAndNext(long commerceChannelRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
commerceChannelRelId
- the primary key of the current commerce channel relclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel rel
- Throws:
NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundNoSuchChannelRelException
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the commerce channel rels where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of commerce channel rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching commerce channel rels
-
findByC_C_C
public static CommerceChannelRel findByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws aNoSuchChannelRelException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel ID- Returns:
- the matching commerce channel rel
- Throws:
NoSuchChannelRelException
- if a matching commerce channel rel could not be foundNoSuchChannelRelException
-
fetchByC_C_C
public static CommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel ID- Returns:
- the matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
fetchByC_C_C
public static CommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce channel rel, or
null
if a matching commerce channel rel could not be found
-
removeByC_C_C
public static CommerceChannelRel removeByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel ID- Returns:
- the commerce channel rel that was removed
- Throws:
NoSuchChannelRelException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long commerceChannelId) Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceChannelId
- the commerce channel ID- Returns:
- the number of matching commerce channel rels
-
cacheResult
Caches the commerce channel rel in the entity cache if it is enabled.- Parameters:
commerceChannelRel
- the commerce channel rel
-
cacheResult
Caches the commerce channel rels in the entity cache if it is enabled.- Parameters:
commerceChannelRels
- the commerce channel rels
-
create
Creates a new commerce channel rel with the primary key. Does not add the commerce channel rel to the database.- Parameters:
commerceChannelRelId
- the primary key for the new commerce channel rel- Returns:
- the new commerce channel rel
-
remove
Removes the commerce channel rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceChannelRelId
- the primary key of the commerce channel rel- Returns:
- the commerce channel rel that was removed
- Throws:
NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundNoSuchChannelRelException
-
updateImpl
-
findByPrimaryKey
public static CommerceChannelRel findByPrimaryKey(long commerceChannelRelId) throws NoSuchChannelRelException Returns the commerce channel rel with the primary key or throws aNoSuchChannelRelException
if it could not be found.- Parameters:
commerceChannelRelId
- the primary key of the commerce channel rel- Returns:
- the commerce channel rel
- Throws:
NoSuchChannelRelException
- if a commerce channel rel with the primary key could not be foundNoSuchChannelRelException
-
fetchByPrimaryKey
Returns the commerce channel rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceChannelRelId
- the primary key of the commerce channel rel- Returns:
- the commerce channel rel, or
null
if a commerce channel rel with the primary key could not be found
-
findAll
Returns all the commerce channel rels.- Returns:
- the commerce channel rels
-
findAll
Returns a range of all the commerce channel rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce channel relsend
- the upper bound of the range of commerce channel rels (not inclusive)- Returns:
- the range of commerce channel rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce channel rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce channel rels
-
removeAll
public static void removeAll()Removes all the commerce channel rels from the database. -
countAll
public static int countAll()Returns the number of commerce channel rels.- Returns:
- the number of commerce channel rels
-
getPersistence
-
setPersistence
-