Interface CommerceTermEntryRelPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceTermEntryRel>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceTermEntryRel commerceTermEntryRel) Caches the commerce term entry rel in the entity cache if it is enabled.void
cacheResult
(List<CommerceTermEntryRel> commerceTermEntryRels) Caches the commerce term entry rels in the entity cache if it is enabled.int
countAll()
Returns the number of commerce term entry rels.int
countByC_C
(long classNameId, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.int
countByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.int
countByCommerceTermEntryId
(long commerceTermEntryId) Returns the number of commerce term entry rels where commerceTermEntryId = ?.create
(long commerceTermEntryRelId) Creates a new commerce term entry rel with the primary key.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.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.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 = ?.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 = ?.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 = ?.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 = ?.fetchByPrimaryKey
(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or returnsnull
if it could not be found.findAll()
Returns all the commerce term entry rels.findAll
(int start, int end) Returns a range of all the commerce term entry rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) Returns an ordered range of all the commerce term entry rels.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.findByC_C
(long classNameId, long commerceTermEntryId) Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.findByC_C
(long classNameId, long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.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 = ?.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 = ?.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.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 = ?.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 = ?.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 = ?.findByCommerceTermEntryId
(long commerceTermEntryId) Returns all the commerce term entry rels where commerceTermEntryId = ?.findByCommerceTermEntryId
(long commerceTermEntryId, int start, int end) Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByPrimaryKey
(long commerceTermEntryRelId) Returns the commerce term entry rel with the primary key or throws aNoSuchTermEntryRelException
if it could not be found.remove
(long commerceTermEntryRelId) Removes the commerce term entry rel with the primary key from the database.void
Removes all the commerce term entry rels from the database.void
removeByC_C
(long classNameId, long commerceTermEntryId) Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.removeByC_C_C
(long classNameId, long classPK, long commerceTermEntryId) Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.void
removeByCommerceTermEntryId
(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.updateImpl
(CommerceTermEntryRel commerceTermEntryRel) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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
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
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
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
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 found
-
fetchByCommerceTermEntryId_First
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
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 found
-
fetchByCommerceTermEntryId_Last
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
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 found
-
removeByCommerceTermEntryId
void removeByCommerceTermEntryId(long commerceTermEntryId) Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.- Parameters:
commerceTermEntryId
- the commerce term entry ID
-
countByCommerceTermEntryId
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
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
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
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
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 found
-
fetchByC_C_First
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
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 found
-
fetchByC_C_Last
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
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 found
-
removeByC_C
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
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
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 found
-
fetchByC_C_C
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
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
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
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
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
List<CommerceTermEntryRel> 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
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
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
void removeAll()Removes all the commerce term entry rels from the database. -
countAll
int countAll()Returns the number of commerce term entry rels.- Returns:
- the number of commerce term entry rels
-