Interface CommerceShippingFixedOptionPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShippingFixedOption>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_K(long companyId, String key) Returns the number of commerce shipping fixed options where companyId = ? and key = ?.intcountByCommerceShippingMethodId(long commerceShippingMethodId) Returns the number of commerce shipping fixed options where commerceShippingMethodId = ?.create(long commerceShippingFixedOptionId) Creates a new commerce shipping fixed option with the primary key.default CommerceShippingFixedOptionfetchByC_K(long companyId, String key) Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnullif it could not be found.fetchByC_K(long companyId, String key, boolean useFinderCache) Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.fetchByPrimaryKey(long commerceShippingFixedOptionId) Returns the commerce shipping fixed option with the primary key or returnsnullif it could not be found.Returns the commerce shipping fixed option where companyId = ? and key = ? or throws aNoSuchShippingFixedOptionExceptionif it could not be found.default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId) Returns all the commerce shipping fixed options where commerceShippingMethodId = ?.default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end) Returns a range of all the commerce shipping fixed options where commerceShippingMethodId = ?.default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.findByPrimaryKey(long commerceShippingFixedOptionId) Returns the commerce shipping fixed option with the primary key or throws aNoSuchShippingFixedOptionExceptionif it could not be found.remove(long commerceShippingFixedOptionId) Removes the commerce shipping fixed option with the primary key from the database.removeByC_K(long companyId, String key) Removes the commerce shipping fixed option where companyId = ? and key = ? from the database.voidremoveByCommerceShippingMethodId(long commerceShippingMethodId) Removes all the commerce shipping fixed options where commerceShippingMethodId = ? from the database.updateImpl(CommerceShippingFixedOption commerceShippingFixedOption) 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, update
-
Method Details
-
findByCommerceShippingMethodId
List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.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.shipping.engine.fixed.model.impl.CommerceShippingFixedOptionModelImpl.- Parameters:
commerceShippingMethodId- the commerce shipping method IDstart- the lower bound of the range of commerce shipping fixed optionsend- the upper bound of the range of commerce shipping fixed options (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 shipping fixed options
-
findByCommerceShippingMethodId_First
CommerceShippingFixedOption findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId- the commerce shipping method IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce shipping fixed option
- Throws:
NoSuchShippingFixedOptionException- if a matching commerce shipping fixed option could not be found
-
fetchByCommerceShippingMethodId_First
CommerceShippingFixedOption fetchByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId- the commerce shipping method IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce shipping fixed option, or
nullif a matching commerce shipping fixed option could not be found
-
removeByCommerceShippingMethodId
void removeByCommerceShippingMethodId(long commerceShippingMethodId) Removes all the commerce shipping fixed options where commerceShippingMethodId = ? from the database.- Parameters:
commerceShippingMethodId- the commerce shipping method ID
-
countByCommerceShippingMethodId
int countByCommerceShippingMethodId(long commerceShippingMethodId) Returns the number of commerce shipping fixed options where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId- the commerce shipping method ID- Returns:
- the number of matching commerce shipping fixed options
-
findByC_K
CommerceShippingFixedOption findByC_K(long companyId, String key) throws NoSuchShippingFixedOptionException Returns the commerce shipping fixed option where companyId = ? and key = ? or throws aNoSuchShippingFixedOptionExceptionif it could not be found.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching commerce shipping fixed option
- Throws:
NoSuchShippingFixedOptionException- if a matching commerce shipping fixed option could not be found
-
fetchByC_K
Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDkey- the keyuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce shipping fixed option, or
nullif a matching commerce shipping fixed option could not be found
-
removeByC_K
CommerceShippingFixedOption removeByC_K(long companyId, String key) throws NoSuchShippingFixedOptionException Removes the commerce shipping fixed option where companyId = ? and key = ? from the database.- Parameters:
companyId- the company IDkey- the key- Returns:
- the commerce shipping fixed option that was removed
- Throws:
NoSuchShippingFixedOptionException
-
countByC_K
Returns the number of commerce shipping fixed options where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the key- Returns:
- the number of matching commerce shipping fixed options
-
create
Creates a new commerce shipping fixed option with the primary key. Does not add the commerce shipping fixed option to the database.- Parameters:
commerceShippingFixedOptionId- the primary key for the new commerce shipping fixed option- Returns:
- the new commerce shipping fixed option
-
remove
CommerceShippingFixedOption remove(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException Removes the commerce shipping fixed option with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceShippingFixedOptionId- the primary key of the commerce shipping fixed option- Returns:
- the commerce shipping fixed option that was removed
- Throws:
NoSuchShippingFixedOptionException- if a commerce shipping fixed option with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CommerceShippingFixedOption findByPrimaryKey(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException Returns the commerce shipping fixed option with the primary key or throws aNoSuchShippingFixedOptionExceptionif it could not be found.- Parameters:
commerceShippingFixedOptionId- the primary key of the commerce shipping fixed option- Returns:
- the commerce shipping fixed option
- Throws:
NoSuchShippingFixedOptionException- if a commerce shipping fixed option with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce shipping fixed option with the primary key or returnsnullif it could not be found.- Parameters:
commerceShippingFixedOptionId- the primary key of the commerce shipping fixed option- Returns:
- the commerce shipping fixed option, or
nullif a commerce shipping fixed option with the primary key could not be found
-
fetchByC_K
Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching commerce shipping fixed option, or
nullif a matching commerce shipping fixed option could not be found
-
findByCommerceShippingMethodId
default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId) Returns all the commerce shipping fixed options where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId- the commerce shipping method ID- Returns:
- the matching commerce shipping fixed options
-
findByCommerceShippingMethodId
default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end) Returns a range of all the commerce shipping fixed options where commerceShippingMethodId = ?.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.shipping.engine.fixed.model.impl.CommerceShippingFixedOptionModelImpl.- Parameters:
commerceShippingMethodId- the commerce shipping method IDstart- the lower bound of the range of commerce shipping fixed optionsend- the upper bound of the range of commerce shipping fixed options (not inclusive)- Returns:
- the range of matching commerce shipping fixed options
-
findByCommerceShippingMethodId
default List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.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.shipping.engine.fixed.model.impl.CommerceShippingFixedOptionModelImpl.- Parameters:
commerceShippingMethodId- the commerce shipping method IDstart- the lower bound of the range of commerce shipping fixed optionsend- the upper bound of the range of commerce shipping fixed options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce shipping fixed options
-