public class CommerceShippingFixedOptionUtil
extends java.lang.Object
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
CommerceShippingFixedOptionPersistence
Constructor and Description |
---|
CommerceShippingFixedOptionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceShippingFixedOption commerceShippingFixedOption)
Caches the commerce shipping fixed option in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceShippingFixedOption> commerceShippingFixedOptions)
Caches the commerce shipping fixed options in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceShippingFixedOption commerceShippingFixedOption) |
static int |
countAll()
Returns the number of commerce shipping fixed options.
|
static int |
countByC_K(long companyId,
java.lang.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,
java.lang.String key)
Returns the commerce shipping fixed option where companyId = ? and key = ? or returns
null if it could not be found. |
static CommerceShippingFixedOption |
fetchByC_K(long companyId,
java.lang.String key,
boolean useFinderCache)
Returns the commerce shipping fixed option where companyId = ? and key = ? or returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceShippingFixedOption> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceShippingFixedOption> |
findAll()
Returns all the commerce shipping fixed options.
|
static java.util.List<CommerceShippingFixedOption> |
findAll(int start,
int end)
Returns a range of all the commerce shipping fixed options.
|
static java.util.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 java.util.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 |
findByC_K(long companyId,
java.lang.String key)
Returns the commerce shipping fixed option where companyId = ? and key = ? or throws a
NoSuchShippingFixedOptionException if it could not be found. |
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 java.util.List<CommerceShippingFixedOption> |
findByCommerceShippingMethodId(long commerceShippingMethodId)
Returns all the commerce shipping fixed options where commerceShippingMethodId = ?.
|
static java.util.List<CommerceShippingFixedOption> |
findByCommerceShippingMethodId(long commerceShippingMethodId,
int start,
int end)
Returns a range of all the commerce shipping fixed options where commerceShippingMethodId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long commerceShippingFixedOptionId)
Returns the commerce shipping fixed option with the primary key or throws a
NoSuchShippingFixedOptionException if it could not be found. |
static java.util.List<CommerceShippingFixedOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceShippingFixedOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceShippingFixedOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) |
static CommerceShippingFixedOptionPersistence |
getPersistence() |
static CommerceShippingFixedOption |
remove(long commerceShippingFixedOptionId)
Removes the commerce shipping fixed option with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce shipping fixed options from the database.
|
static CommerceShippingFixedOption |
removeByC_K(long companyId,
java.lang.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) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceShippingFixedOption commerceShippingFixedOption)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceShippingFixedOption> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceShippingFixedOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceShippingFixedOption update(CommerceShippingFixedOption commerceShippingFixedOption)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceShippingFixedOption update(CommerceShippingFixedOption commerceShippingFixedOption, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId)
commerceShippingMethodId
- the commerce shipping method IDpublic static java.util.List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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)public static java.util.List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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 (optionally null
)public static java.util.List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShippingFixedOption findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionException
- if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption fetchByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption findByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionException
- if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption fetchByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption[] findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
commerceShippingFixedOptionId
- the primary key of the current commerce shipping fixed optioncommerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionException
- if a commerce shipping fixed option with the primary key could not be foundpublic static void removeByCommerceShippingMethodId(long commerceShippingMethodId)
commerceShippingMethodId
- the commerce shipping method IDpublic static int countByCommerceShippingMethodId(long commerceShippingMethodId)
commerceShippingMethodId
- the commerce shipping method IDpublic static CommerceShippingFixedOption findByC_K(long companyId, java.lang.String key) throws NoSuchShippingFixedOptionException
NoSuchShippingFixedOptionException
if it could not be found.companyId
- the company IDkey
- the keyNoSuchShippingFixedOptionException
- if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption fetchByC_K(long companyId, java.lang.String key)
null
if it could not be found. Uses the finder cache.companyId
- the company IDkey
- the keynull
if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption fetchByC_K(long companyId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching commerce shipping fixed option could not be foundpublic static CommerceShippingFixedOption removeByC_K(long companyId, java.lang.String key) throws NoSuchShippingFixedOptionException
companyId
- the company IDkey
- the keyNoSuchShippingFixedOptionException
public static int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static void cacheResult(CommerceShippingFixedOption commerceShippingFixedOption)
commerceShippingFixedOption
- the commerce shipping fixed optionpublic static void cacheResult(java.util.List<CommerceShippingFixedOption> commerceShippingFixedOptions)
commerceShippingFixedOptions
- the commerce shipping fixed optionspublic static CommerceShippingFixedOption create(long commerceShippingFixedOptionId)
commerceShippingFixedOptionId
- the primary key for the new commerce shipping fixed optionpublic static CommerceShippingFixedOption remove(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException
commerceShippingFixedOptionId
- the primary key of the commerce shipping fixed optionNoSuchShippingFixedOptionException
- if a commerce shipping fixed option with the primary key could not be foundpublic static CommerceShippingFixedOption updateImpl(CommerceShippingFixedOption commerceShippingFixedOption)
public static CommerceShippingFixedOption findByPrimaryKey(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException
NoSuchShippingFixedOptionException
if it could not be found.commerceShippingFixedOptionId
- the primary key of the commerce shipping fixed optionNoSuchShippingFixedOptionException
- if a commerce shipping fixed option with the primary key could not be foundpublic static CommerceShippingFixedOption fetchByPrimaryKey(long commerceShippingFixedOptionId)
null
if it could not be found.commerceShippingFixedOptionId
- the primary key of the commerce shipping fixed optionnull
if a commerce shipping fixed option with the primary key could not be foundpublic static java.util.List<CommerceShippingFixedOption> findAll()
public static java.util.List<CommerceShippingFixedOption> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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)public static java.util.List<CommerceShippingFixedOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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 (optionally null
)public static java.util.List<CommerceShippingFixedOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceShippingFixedOptionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceShippingFixedOptionPersistence getPersistence()
public static void setPersistence(CommerceShippingFixedOptionPersistence persistence)