Interface CommerceChannelRelPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceChannelRel>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceChannelRel>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_C(long classNameId, long classPK) Returns the number of commerce channel rels where classNameId = ? and classPK = ?.intcountByC_C_C(long classNameId, long classPK, long commerceChannelId) Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.intcountByCommerceChannelId(long commerceChannelId) Returns the number of commerce channel rels where commerceChannelId = ?.create(long commerceChannelRelId) Creates a new commerce channel rel with the primary key.default CommerceChannelRelfetchByC_C_C(long classNameId, long classPK, long commerceChannelId) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnullif it could not be found.fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnullif it could not be found, optionally using the finder cache.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 = ?.fetchByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.fetchByPrimaryKey(long commerceChannelRelId) Returns the commerce channel rel with the primary key or returnsnullif it could not be found.default List<CommerceChannelRel> findByC_C(long classNameId, long classPK) Returns all the commerce channel rels where classNameId = ? and classPK = ?.default 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 = ?.default 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 = ?.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 = ?.findByC_C_C(long classNameId, long classPK, long commerceChannelId) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws aNoSuchChannelRelExceptionif it could not be found.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 = ?.default List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId) Returns all the commerce channel rels where commerceChannelId = ?.default List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end) Returns a range of all the commerce channel rels where commerceChannelId = ?.default 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 = ?.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 = ?.findByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.findByPrimaryKey(long commerceChannelRelId) Returns the commerce channel rel with the primary key or throws aNoSuchChannelRelExceptionif it could not be found.remove(long commerceChannelRelId) Removes the commerce channel rel with the primary key from the database.voidremoveByC_C(long classNameId, long classPK) Removes all the commerce channel rels where classNameId = ? and classPK = ? from the database.removeByC_C_C(long classNameId, long classPK, long commerceChannelId) Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.voidremoveByCommerceChannelId(long commerceChannelId) Removes all the commerce channel rels where commerceChannelId = ? from the database.updateImpl(CommerceChannelRel commerceChannelRel) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByCommerceChannelId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
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 found
-
fetchByCommerceChannelId_First
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
nullif a matching commerce channel rel could not be found
-
removeByCommerceChannelId
void removeByCommerceChannelId(long commerceChannelId) Removes all the commerce channel rels where commerceChannelId = ? from the database.- Parameters:
commerceChannelId- the commerce channel ID
-
countByCommerceChannelId
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
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 found
-
fetchByC_C_First
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
nullif a matching commerce channel rel could not be found
-
removeByC_C
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
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
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 aNoSuchChannelRelExceptionif 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 found
-
fetchByC_C_C
CommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache) Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnullif 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
nullif a matching commerce channel rel could not be found
-
removeByC_C_C
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
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
-
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 found
-
updateImpl
-
findByPrimaryKey
Returns the commerce channel rel with the primary key or throws aNoSuchChannelRelExceptionif 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 found
-
fetchByPrimaryKey
Returns the commerce channel rel with the primary key or returnsnullif it could not be found.- Parameters:
commerceChannelRelId- the primary key of the commerce channel rel- Returns:
- the commerce channel rel, or
nullif a commerce channel rel with the primary key could not be found
-
fetchByC_C_C
Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returnsnullif 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
nullif a matching commerce channel rel could not be found
-
findByCommerceChannelId
Returns all the commerce channel rels where commerceChannelId = ?.- Parameters:
commerceChannelId- the commerce channel ID- Returns:
- the matching commerce channel rels
-
findByCommerceChannelId
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
-
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
Returns a range of all the commerce channel rels where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CommerceChannelRelModelImpl.- 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
-