Class CommerceShippingFixedOptionUtil
com.liferay.commerce.shipping.engine.fixed.service.persistence.impl.CommerceShippingFixedOptionPersistenceImpl
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
(CommerceShippingFixedOption commerceShippingFixedOption) Caches the commerce shipping fixed option in the entity cache if it is enabled.static void
cacheResult
(List<CommerceShippingFixedOption> commerceShippingFixedOptions) Caches the commerce shipping fixed options in the entity cache if it is enabled.static void
static void
clearCache
(CommerceShippingFixedOption commerceShippingFixedOption) static int
countAll()
Returns the number of commerce shipping fixed options.static int
countByC_K
(long companyId, String key) Returns the number of commerce shipping fixed options where companyId = ? and key = ?.static int
countByCommerceShippingMethodId
(long commerceShippingMethodId) Returns the number of commerce shipping fixed options where commerceShippingMethodId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceShippingFixedOption
create
(long commerceShippingFixedOptionId) Creates a new commerce shipping fixed option with the primary key.static CommerceShippingFixedOption
fetchByC_K
(long companyId, String key) Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnull
if it could not be found.static CommerceShippingFixedOption
fetchByC_K
(long companyId, String key, boolean useFinderCache) Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.static 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 = ?.static CommerceShippingFixedOption
fetchByCommerceShippingMethodId_Last
(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the last commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.static CommerceShippingFixedOption
fetchByPrimaryKey
(long commerceShippingFixedOptionId) Returns the commerce shipping fixed option with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceShippingFixedOption>
findAll()
Returns all the commerce shipping fixed options.static List<CommerceShippingFixedOption>
findAll
(int start, int end) Returns a range of all the commerce shipping fixed options.static List<CommerceShippingFixedOption>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns an ordered range of all the commerce shipping fixed options.static List<CommerceShippingFixedOption>
findAll
(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.static CommerceShippingFixedOption
Returns the commerce shipping fixed option where companyId = ? and key = ? or throws aNoSuchShippingFixedOptionException
if it could not be found.static List<CommerceShippingFixedOption>
findByCommerceShippingMethodId
(long commerceShippingMethodId) Returns all the commerce shipping fixed options where commerceShippingMethodId = ?.static List<CommerceShippingFixedOption>
findByCommerceShippingMethodId
(long commerceShippingMethodId, int start, int end) Returns a range of all the commerce shipping fixed options where commerceShippingMethodId = ?.static 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 = ?.static 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 = ?.static CommerceShippingFixedOption
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 = ?.static CommerceShippingFixedOption
findByCommerceShippingMethodId_Last
(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the last commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.static CommerceShippingFixedOption[]
findByCommerceShippingMethodId_PrevAndNext
(long commerceShippingFixedOptionId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the commerce shipping fixed options before and after the current commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.static CommerceShippingFixedOption
findByPrimaryKey
(long commerceShippingFixedOptionId) Returns the commerce shipping fixed option with the primary key or throws aNoSuchShippingFixedOptionException
if it could not be found.static List<CommerceShippingFixedOption>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceShippingFixedOption>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceShippingFixedOption>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) static CommerceShippingFixedOption
remove
(long commerceShippingFixedOptionId) Removes the commerce shipping fixed option with the primary key from the database.static void
Removes all the commerce shipping fixed options from the database.static CommerceShippingFixedOption
removeByC_K
(long companyId, String key) Removes the commerce shipping fixed option where companyId = ? and key = ? from the database.static void
removeByCommerceShippingMethodId
(long commerceShippingMethodId) Removes all the commerce shipping fixed options where commerceShippingMethodId = ? from the database.static void
setPersistence
(CommerceShippingFixedOptionPersistence persistence) static CommerceShippingFixedOption
update
(CommerceShippingFixedOption commerceShippingFixedOption) static CommerceShippingFixedOption
update
(CommerceShippingFixedOption commerceShippingFixedOption, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceShippingFixedOption
updateImpl
(CommerceShippingFixedOption commerceShippingFixedOption)
-
Constructor Details
-
CommerceShippingFixedOptionUtil
public CommerceShippingFixedOptionUtil()
-
-
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,CommerceShippingFixedOption> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceShippingFixedOption update(CommerceShippingFixedOption commerceShippingFixedOption) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceShippingFixedOption update(CommerceShippingFixedOption commerceShippingFixedOption, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceShippingMethodId
public static 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
public static 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 - 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 fromCommerceShippingFixedOptionModelImpl
.- 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
public static 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 - 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 fromCommerceShippingFixedOptionModelImpl
.- 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
-
findByCommerceShippingMethodId
public static 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 - 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 fromCommerceShippingFixedOptionModelImpl
.- 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
public static 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 foundNoSuchShippingFixedOptionException
-
fetchByCommerceShippingMethodId_First
public static 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
null
if a matching commerce shipping fixed option could not be found
-
findByCommerceShippingMethodId_Last
public static CommerceShippingFixedOption findByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException Returns the last 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 last matching commerce shipping fixed option
- Throws:
NoSuchShippingFixedOptionException
- if a matching commerce shipping fixed option could not be foundNoSuchShippingFixedOptionException
-
fetchByCommerceShippingMethodId_Last
public static CommerceShippingFixedOption fetchByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns the last 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 last matching commerce shipping fixed option, or
null
if a matching commerce shipping fixed option could not be found
-
findByCommerceShippingMethodId_PrevAndNext
public static CommerceShippingFixedOption[] findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException Returns the commerce shipping fixed options before and after the current commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.- Parameters:
commerceShippingFixedOptionId
- the primary key of the current commerce shipping fixed optioncommerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipping fixed option
- Throws:
NoSuchShippingFixedOptionException
- if a commerce shipping fixed option with the primary key could not be foundNoSuchShippingFixedOptionException
-
removeByCommerceShippingMethodId
public static void removeByCommerceShippingMethodId(long commerceShippingMethodId) Removes all the commerce shipping fixed options where commerceShippingMethodId = ? from the database.- Parameters:
commerceShippingMethodId
- the commerce shipping method ID
-
countByCommerceShippingMethodId
public static 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
public static CommerceShippingFixedOption findByC_K(long companyId, String key) throws NoSuchShippingFixedOptionException Returns the commerce shipping fixed option where companyId = ? and key = ? or throws aNoSuchShippingFixedOptionException
if 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 foundNoSuchShippingFixedOptionException
-
fetchByC_K
Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the matching commerce shipping fixed option, or
null
if a matching commerce shipping fixed option could not be found
-
fetchByC_K
public static CommerceShippingFixedOption fetchByC_K(long companyId, String key, boolean useFinderCache) Returns the commerce shipping fixed option where companyId = ? and key = ? or returnsnull
if 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
null
if a matching commerce shipping fixed option could not be found
-
removeByC_K
public static 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
-
cacheResult
Caches the commerce shipping fixed option in the entity cache if it is enabled.- Parameters:
commerceShippingFixedOption
- the commerce shipping fixed option
-
cacheResult
Caches the commerce shipping fixed options in the entity cache if it is enabled.- Parameters:
commerceShippingFixedOptions
- the 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
public static 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 foundNoSuchShippingFixedOptionException
-
updateImpl
public static CommerceShippingFixedOption updateImpl(CommerceShippingFixedOption commerceShippingFixedOption) -
findByPrimaryKey
public static CommerceShippingFixedOption findByPrimaryKey(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException Returns the commerce shipping fixed option with the primary key or throws aNoSuchShippingFixedOptionException
if 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 foundNoSuchShippingFixedOptionException
-
fetchByPrimaryKey
Returns the commerce shipping fixed option with the primary key or returnsnull
if it could not be found.- Parameters:
commerceShippingFixedOptionId
- the primary key of the commerce shipping fixed option- Returns:
- the commerce shipping fixed option, or
null
if a commerce shipping fixed option with the primary key could not be found
-
findAll
Returns all the commerce shipping fixed options.- Returns:
- the commerce shipping fixed options
-
findAll
Returns a range of all the commerce shipping fixed options.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 fromCommerceShippingFixedOptionModelImpl
.- Parameters:
start
- 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 commerce shipping fixed options
-
findAll
public static List<CommerceShippingFixedOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) Returns an ordered range of all the commerce shipping fixed options.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 fromCommerceShippingFixedOptionModelImpl
.- Parameters:
start
- 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 commerce shipping fixed options
-
findAll
public static List<CommerceShippingFixedOption> findAll(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.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 fromCommerceShippingFixedOptionModelImpl
.- Parameters:
start
- 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 commerce shipping fixed options
-
removeAll
public static void removeAll()Removes all the commerce shipping fixed options from the database. -
countAll
public static int countAll()Returns the number of commerce shipping fixed options.- Returns:
- the number of commerce shipping fixed options
-
getPersistence
-
setPersistence
-