public class CommerceShippingFixedOptionRelUtil
extends java.lang.Object
com.liferay.commerce.shipping.engine.fixed.service.persistence.impl.CommerceShippingFixedOptionRelPersistenceImpl
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
CommerceShippingFixedOptionRelPersistence
Constructor and Description |
---|
CommerceShippingFixedOptionRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
Caches the commerce shipping fixed option rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceShippingFixedOptionRel> commerceShippingFixedOptionRels)
Caches the commerce shipping fixed option rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) |
static int |
countAll()
Returns the number of commerce shipping fixed option rels.
|
static int |
countByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
Returns the number of commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.
|
static int |
countByCommerceShippingMethodId(long commerceShippingMethodId)
Returns the number of commerce shipping fixed option rels where commerceShippingMethodId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceShippingFixedOptionRel |
create(long commerceShippingFixedOptionRelId)
Creates a new commerce shipping fixed option rel with the primary key.
|
static CommerceShippingFixedOptionRel |
fetchByCommerceShippingFixedOptionId_First(long commerceShippingFixedOptionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the first commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.
|
static CommerceShippingFixedOptionRel |
fetchByCommerceShippingFixedOptionId_Last(long commerceShippingFixedOptionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the last commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.
|
static CommerceShippingFixedOptionRel |
fetchByCommerceShippingMethodId_First(long commerceShippingMethodId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the first commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.
|
static CommerceShippingFixedOptionRel |
fetchByCommerceShippingMethodId_Last(long commerceShippingMethodId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the last commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.
|
static CommerceShippingFixedOptionRel |
fetchByPrimaryKey(long commerceShippingFixedOptionRelId)
Returns the commerce shipping fixed option rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceShippingFixedOptionRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceShippingFixedOptionRel> |
findAll()
Returns all the commerce shipping fixed option rels.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findAll(int start,
int end)
Returns a range of all the commerce shipping fixed option rels.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns an ordered range of all the commerce shipping fixed option rels.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping fixed option rels.
|
static CommerceShippingFixedOptionRel |
findByCommerceShippingFixedOptionId_First(long commerceShippingFixedOptionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the first commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.
|
static CommerceShippingFixedOptionRel |
findByCommerceShippingFixedOptionId_Last(long commerceShippingFixedOptionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the last commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.
|
static CommerceShippingFixedOptionRel[] |
findByCommerceShippingFixedOptionId_PrevAndNext(long commerceShippingFixedOptionRelId,
long commerceShippingFixedOptionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the commerce shipping fixed option rels before and after the current commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
Returns all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId,
int start,
int end)
Returns a range of all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns an ordered range of all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.
|
static CommerceShippingFixedOptionRel |
findByCommerceShippingMethodId_First(long commerceShippingMethodId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the first commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.
|
static CommerceShippingFixedOptionRel |
findByCommerceShippingMethodId_Last(long commerceShippingMethodId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the last commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.
|
static CommerceShippingFixedOptionRel[] |
findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionRelId,
long commerceShippingMethodId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns the commerce shipping fixed option rels before and after the current commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingMethodId(long commerceShippingMethodId)
Returns all the commerce shipping fixed option rels where commerceShippingMethodId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingMethodId(long commerceShippingMethodId,
int start,
int end)
Returns a range of all the commerce shipping fixed option rels where commerceShippingMethodId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingMethodId(long commerceShippingMethodId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
Returns an ordered range of all the commerce shipping fixed option rels where commerceShippingMethodId = ?.
|
static java.util.List<CommerceShippingFixedOptionRel> |
findByCommerceShippingMethodId(long commerceShippingMethodId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping fixed option rels where commerceShippingMethodId = ?.
|
static CommerceShippingFixedOptionRel |
findByPrimaryKey(long commerceShippingFixedOptionRelId)
Returns the commerce shipping fixed option rel with the primary key or throws a
NoSuchShippingFixedOptionRelException if it could not be found. |
static java.util.List<CommerceShippingFixedOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceShippingFixedOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceShippingFixedOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) |
static CommerceShippingFixedOptionRelPersistence |
getPersistence() |
static CommerceShippingFixedOptionRel |
remove(long commerceShippingFixedOptionRelId)
Removes the commerce shipping fixed option rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce shipping fixed option rels from the database.
|
static void |
removeByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
Removes all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ? from the database.
|
static void |
removeByCommerceShippingMethodId(long commerceShippingMethodId)
Removes all the commerce shipping fixed option rels where commerceShippingMethodId = ? from the database.
|
static CommerceShippingFixedOptionRel |
update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) |
static CommerceShippingFixedOptionRel |
update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceShippingFixedOptionRel |
updateImpl(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
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,CommerceShippingFixedOptionRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceShippingFixedOptionRel update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceShippingFixedOptionRel update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingMethodId(long commerceShippingMethodId)
commerceShippingMethodId
- the commerce shipping method IDpublic static java.util.List<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingMethodId
- the commerce shipping method IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)public static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingMethodId
- the commerce shipping method IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingMethodId
- the commerce shipping method IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShippingFixedOptionRel findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel fetchByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel findByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel fetchByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel[] findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionRelId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingFixedOptionRelId
- the primary key of the current commerce shipping fixed option relcommerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel 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 java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
commerceShippingFixedOptionId
- the commerce shipping fixed option IDpublic static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId, 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingFixedOptionId
- the commerce shipping fixed option IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)public static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingFixedOptionId
- the commerce shipping fixed option IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
commerceShippingFixedOptionId
- the commerce shipping fixed option IDstart
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShippingFixedOptionRel findByCommerceShippingFixedOptionId_First(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel fetchByCommerceShippingFixedOptionId_First(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel findByCommerceShippingFixedOptionId_Last(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel fetchByCommerceShippingFixedOptionId_Last(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping fixed option rel could not be foundpublic static CommerceShippingFixedOptionRel[] findByCommerceShippingFixedOptionId_PrevAndNext(long commerceShippingFixedOptionRelId, long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException
commerceShippingFixedOptionRelId
- the primary key of the current commerce shipping fixed option relcommerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundpublic static void removeByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
commerceShippingFixedOptionId
- the commerce shipping fixed option IDpublic static int countByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId)
commerceShippingFixedOptionId
- the commerce shipping fixed option IDpublic static void cacheResult(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
commerceShippingFixedOptionRel
- the commerce shipping fixed option relpublic static void cacheResult(java.util.List<CommerceShippingFixedOptionRel> commerceShippingFixedOptionRels)
commerceShippingFixedOptionRels
- the commerce shipping fixed option relspublic static CommerceShippingFixedOptionRel create(long commerceShippingFixedOptionRelId)
commerceShippingFixedOptionRelId
- the primary key for the new commerce shipping fixed option relpublic static CommerceShippingFixedOptionRel remove(long commerceShippingFixedOptionRelId) throws NoSuchShippingFixedOptionRelException
commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option relNoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundpublic static CommerceShippingFixedOptionRel updateImpl(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
public static CommerceShippingFixedOptionRel findByPrimaryKey(long commerceShippingFixedOptionRelId) throws NoSuchShippingFixedOptionRelException
NoSuchShippingFixedOptionRelException
if it could not be found.commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option relNoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundpublic static CommerceShippingFixedOptionRel fetchByPrimaryKey(long commerceShippingFixedOptionRelId)
null
if it could not be found.commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option relnull
if a commerce shipping fixed option rel with the primary key could not be foundpublic static java.util.List<CommerceShippingFixedOptionRel> findAll()
public static java.util.List<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
start
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)public static java.util.List<CommerceShippingFixedOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
start
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShippingFixedOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> 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 CommerceShippingFixedOptionRelModelImpl
.
start
- the lower bound of the range of commerce shipping fixed option relsend
- the upper bound of the range of commerce shipping fixed option rels (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 CommerceShippingFixedOptionRelPersistence getPersistence()