Class CommerceTermEntryRelUtil
com.liferay.commerce.term.service.persistence.impl.CommerceTermEntryRelPersistenceImpl
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
(CommerceTermEntryRel commerceTermEntryRel) Caches the commerce term entry rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceTermEntryRel> commerceTermEntryRels) Caches the commerce term entry rels in the entity cache if it is enabled.static void
static void
clearCache
(CommerceTermEntryRel commerceTermEntryRel) static int
countAll()
Returns the number of commerce term entry rels.static int
countByC_C
(long classNameId, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static int
countByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.static int
countByCommerceTermEntryId
(long commerceTermEntryId) Returns the number of commerce term entry rels where commerceTermEntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTermEntryRel
create
(long commerceTermEntryRelId) Creates a new commerce term entry rel with the primary key.static CommerceTermEntryRel
fetchByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnull
if it could not be found.static CommerceTermEntryRel
fetchByC_C_C
(long classNameId, long classPK, long commerceTermEntryId, boolean useFinderCache) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTermEntryRel
fetchByC_C_First
(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel
fetchByC_C_Last
(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel
fetchByCommerceTermEntryId_First
(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel
fetchByCommerceTermEntryId_Last
(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel
fetchByPrimaryKey
(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceTermEntryRel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceTermEntryRel>
findAll()
Returns all the commerce term entry rels.static List<CommerceTermEntryRel>
findAll
(int start, int end) Returns a range of all the commerce term entry rels.static List<CommerceTermEntryRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels.static List<CommerceTermEntryRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels.static List<CommerceTermEntryRel>
findByC_C
(long classNameId, long commerceTermEntryId) Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByC_C
(long classNameId, long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByC_C
(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByC_C
(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel
findByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or throws aNoSuchTermEntryRelException
if it could not be found.static CommerceTermEntryRel
findByC_C_First
(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel
findByC_C_Last
(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static CommerceTermEntryRel[]
findByC_C_PrevAndNext
(long commerceTermEntryRelId, long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByCommerceTermEntryId
(long commerceTermEntryId) Returns all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByCommerceTermEntryId
(long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByCommerceTermEntryId
(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.static List<CommerceTermEntryRel>
findByCommerceTermEntryId
(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.static CommerceTermEntryRel
findByCommerceTermEntryId_First
(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel
findByCommerceTermEntryId_Last
(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel[]
findByCommerceTermEntryId_PrevAndNext
(long commerceTermEntryRelId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where commerceTermEntryId = ?.static CommerceTermEntryRel
findByPrimaryKey
(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or throws aNoSuchTermEntryRelException
if it could not be found.static List<CommerceTermEntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTermEntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTermEntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) static CommerceTermEntryRel
remove
(long commerceTermEntryRelId) Removes the commerce term entry rel with the primary key from the database.static void
Removes all the commerce term entry rels from the database.static void
removeByC_C
(long classNameId, long commerceTermEntryId) Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.static CommerceTermEntryRel
removeByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.static void
removeByCommerceTermEntryId
(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.static void
setPersistence
(CommerceTermEntryRelPersistence persistence) static CommerceTermEntryRel
update
(CommerceTermEntryRel commerceTermEntryRel) static CommerceTermEntryRel
update
(CommerceTermEntryRel commerceTermEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTermEntryRel
updateImpl
(CommerceTermEntryRel commerceTermEntryRel)
-
Constructor Details
-
CommerceTermEntryRelUtil
public CommerceTermEntryRelUtil()
-
-
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,CommerceTermEntryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceTermEntryRel update(CommerceTermEntryRel commerceTermEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceTermEntryId
Returns all the commerce term entry rels where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry ID- Returns:
- the matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce term entry rels
-
findByCommerceTermEntryId
public static List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry 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 term entry rels
-
findByCommerceTermEntryId_First
public static CommerceTermEntryRel findByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundNoSuchTermEntryRelException
-
fetchByCommerceTermEntryId_First
public static CommerceTermEntryRel fetchByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
findByCommerceTermEntryId_Last
public static CommerceTermEntryRel findByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundNoSuchTermEntryRelException
-
fetchByCommerceTermEntryId_Last
public static CommerceTermEntryRel fetchByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
findByCommerceTermEntryId_PrevAndNext
public static CommerceTermEntryRel[] findByCommerceTermEntryId_PrevAndNext(long commerceTermEntryRelId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryRelId
- the primary key of the current commerce term entry relcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundNoSuchTermEntryRelException
-
removeByCommerceTermEntryId
public static void removeByCommerceTermEntryId(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.- Parameters:
commerceTermEntryId
- the commerce term entry ID
-
countByCommerceTermEntryId
public static int countByCommerceTermEntryId(long commerceTermEntryId) Returns the number of commerce term entry rels where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId
- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
findByC_C
Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry ID- Returns:
- the matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce term entry rels
-
findByC_C
public static List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 fromCommerceTermEntryRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry 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 term entry rels
-
findByC_C_First
public static CommerceTermEntryRel findByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundNoSuchTermEntryRelException
-
fetchByC_C_First
public static CommerceTermEntryRel fetchByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
findByC_C_Last
public static CommerceTermEntryRel findByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundNoSuchTermEntryRelException
-
fetchByC_C_Last
public static CommerceTermEntryRel fetchByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
findByC_C_PrevAndNext
public static CommerceTermEntryRel[] findByC_C_PrevAndNext(long commerceTermEntryRelId, long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.- Parameters:
commerceTermEntryRelId
- the primary key of the current commerce term entry relclassNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundNoSuchTermEntryRelException
-
removeByC_C
public static void removeByC_C(long classNameId, long commerceTermEntryId) Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry ID
-
countByC_C
public static int countByC_C(long classNameId, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
findByC_C_C
public static CommerceTermEntryRel findByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or throws aNoSuchTermEntryRelException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry ID- Returns:
- the matching commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundNoSuchTermEntryRelException
-
fetchByC_C_C
public static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry ID- Returns:
- the matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
fetchByC_C_C
public static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId, boolean useFinderCache) Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce term entry rel, or
null
if a matching commerce term entry rel could not be found
-
removeByC_C_C
public static CommerceTermEntryRel removeByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry ID- Returns:
- the commerce term entry rel that was removed
- Throws:
NoSuchTermEntryRelException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry ID- Returns:
- the number of matching commerce term entry rels
-
cacheResult
Caches the commerce term entry rel in the entity cache if it is enabled.- Parameters:
commerceTermEntryRel
- the commerce term entry rel
-
cacheResult
Caches the commerce term entry rels in the entity cache if it is enabled.- Parameters:
commerceTermEntryRels
- the commerce term entry rels
-
create
Creates a new commerce term entry rel with the primary key. Does not add the commerce term entry rel to the database.- Parameters:
commerceTermEntryRelId
- the primary key for the new commerce term entry rel- Returns:
- the new commerce term entry rel
-
remove
public static CommerceTermEntryRel remove(long commerceTermEntryRelId) throws NoSuchTermEntryRelException Removes the commerce term entry rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTermEntryRelId
- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel that was removed
- Throws:
NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundNoSuchTermEntryRelException
-
updateImpl
-
findByPrimaryKey
public static CommerceTermEntryRel findByPrimaryKey(long commerceTermEntryRelId) throws NoSuchTermEntryRelException Returns the commerce term entry rel with the primary key or throws aNoSuchTermEntryRelException
if it could not be found.- Parameters:
commerceTermEntryRelId
- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel
- Throws:
NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundNoSuchTermEntryRelException
-
fetchByPrimaryKey
Returns the commerce term entry rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceTermEntryRelId
- the primary key of the commerce term entry rel- Returns:
- the commerce term entry rel, or
null
if a commerce term entry rel with the primary key could not be found
-
findAll
Returns all the commerce term entry rels.- Returns:
- the commerce term entry rels
-
findAll
Returns a range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)- Returns:
- the range of commerce term entry rels
-
findAll
public static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce term entry rels
-
findAll
public static List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce term entry 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 fromCommerceTermEntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry 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 term entry rels
-
removeAll
public static void removeAll()Removes all the commerce term entry rels from the database. -
countAll
public static int countAll()Returns the number of commerce term entry rels.- Returns:
- the number of commerce term entry rels
-
getPersistence
-
setPersistence
-