Class CommerceShippingFixedOptionRelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) Caches the commerce shipping fixed option rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceShippingFixedOptionRel> commerceShippingFixedOptionRels) Caches the commerce shipping fixed option rels in the entity cache if it is enabled.static void
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) create
(long commerceShippingFixedOptionRelId) Creates a new commerce shipping fixed option rel with the primary key.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 = ?.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 = ?.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 = ?.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 = ?.fetchByPrimaryKey
(long commerceShippingFixedOptionRelId) Returns the commerce shipping fixed option rel with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceShippingFixedOptionRel>
findAll()
Returns all the commerce shipping fixed option rels.static List<CommerceShippingFixedOptionRel>
findAll
(int start, int end) Returns a range of all the commerce shipping fixed option rels.static 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 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 List<CommerceShippingFixedOptionRel>
findByCommerceShippingFixedOptionId
(long commerceShippingFixedOptionId) Returns all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.static List<CommerceShippingFixedOptionRel>
findByCommerceShippingFixedOptionId
(long commerceShippingFixedOptionId, int start, int end) Returns a range of all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.static 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 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 = ?.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 = ?.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 List<CommerceShippingFixedOptionRel>
findByCommerceShippingMethodId
(long commerceShippingMethodId) Returns all the commerce shipping fixed option rels where commerceShippingMethodId = ?.static List<CommerceShippingFixedOptionRel>
findByCommerceShippingMethodId
(long commerceShippingMethodId, int start, int end) Returns a range of all the commerce shipping fixed option rels where commerceShippingMethodId = ?.static 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 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 = ?.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 = ?.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 = ?.findByPrimaryKey
(long commerceShippingFixedOptionRelId) Returns the commerce shipping fixed option rel with the primary key or throws aNoSuchShippingFixedOptionRelException
if it could not be found.static List<CommerceShippingFixedOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceShippingFixedOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceShippingFixedOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) remove
(long commerceShippingFixedOptionRelId) Removes the commerce shipping fixed option rel with the primary key from the database.static void
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 void
setPersistence
(CommerceShippingFixedOptionRelPersistence persistence) update
(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) update
(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel)
-
Constructor Details
-
CommerceShippingFixedOptionRelUtil
public CommerceShippingFixedOptionRelUtil()
-
-
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,CommerceShippingFixedOptionRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceShippingFixedOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceShippingFixedOptionRel update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceShippingFixedOptionRel update(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceShippingMethodId
public static List<CommerceShippingFixedOptionRel> findByCommerceShippingMethodId(long commerceShippingMethodId) Returns all the commerce shipping fixed option rels where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId
- the commerce shipping method ID- Returns:
- the matching commerce shipping fixed option rels
-
findByCommerceShippingMethodId
public static List<CommerceShippingFixedOptionRel> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end) Returns a range of all the commerce shipping fixed option rels 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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce shipping fixed option rels
-
findByCommerceShippingMethodId
public static 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 = ?.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce shipping fixed option rels
-
findByCommerceShippingMethodId
public static 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 = ?.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipping fixed option rels
-
findByCommerceShippingMethodId_First
public static CommerceShippingFixedOptionRel findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the first commerce shipping fixed option rel 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 rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundNoSuchShippingFixedOptionRelException
-
fetchByCommerceShippingMethodId_First
public 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 = ?.- Parameters:
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipping fixed option rel, or
null
if a matching commerce shipping fixed option rel could not be found
-
findByCommerceShippingMethodId_Last
public static CommerceShippingFixedOptionRel findByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the last commerce shipping fixed option rel 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 rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundNoSuchShippingFixedOptionRelException
-
fetchByCommerceShippingMethodId_Last
public 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 = ?.- Parameters:
commerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipping fixed option rel, or
null
if a matching commerce shipping fixed option rel could not be found
-
findByCommerceShippingMethodId_PrevAndNext
public static CommerceShippingFixedOptionRel[] findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionRelId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the commerce shipping fixed option rels before and after the current commerce shipping fixed option rel in the ordered set where commerceShippingMethodId = ?.- Parameters:
commerceShippingFixedOptionRelId
- the primary key of the current commerce shipping fixed option relcommerceShippingMethodId
- the commerce shipping method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipping fixed option rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundNoSuchShippingFixedOptionRelException
-
removeByCommerceShippingMethodId
public static void removeByCommerceShippingMethodId(long commerceShippingMethodId) Removes all the commerce shipping fixed option rels 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 option rels where commerceShippingMethodId = ?.- Parameters:
commerceShippingMethodId
- the commerce shipping method ID- Returns:
- the number of matching commerce shipping fixed option rels
-
findByCommerceShippingFixedOptionId
public static List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId) Returns all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option ID- Returns:
- the matching commerce shipping fixed option rels
-
findByCommerceShippingFixedOptionId
public static List<CommerceShippingFixedOptionRel> findByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId, int start, int end) Returns a range of all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce shipping fixed option rels
-
findByCommerceShippingFixedOptionId
public static 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 = ?.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce shipping fixed option rels
-
findByCommerceShippingFixedOptionId
public static 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 = ?.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipping fixed option rels
-
findByCommerceShippingFixedOptionId_First
public static CommerceShippingFixedOptionRel findByCommerceShippingFixedOptionId_First(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the first commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipping fixed option rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundNoSuchShippingFixedOptionRelException
-
fetchByCommerceShippingFixedOptionId_First
public 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 = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipping fixed option rel, or
null
if a matching commerce shipping fixed option rel could not be found
-
findByCommerceShippingFixedOptionId_Last
public static CommerceShippingFixedOptionRel findByCommerceShippingFixedOptionId_Last(long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the last commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipping fixed option rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a matching commerce shipping fixed option rel could not be foundNoSuchShippingFixedOptionRelException
-
fetchByCommerceShippingFixedOptionId_Last
public 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 = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipping fixed option rel, or
null
if a matching commerce shipping fixed option rel could not be found
-
findByCommerceShippingFixedOptionId_PrevAndNext
public static CommerceShippingFixedOptionRel[] findByCommerceShippingFixedOptionId_PrevAndNext(long commerceShippingFixedOptionRelId, long commerceShippingFixedOptionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator) throws NoSuchShippingFixedOptionRelException Returns the commerce shipping fixed option rels before and after the current commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next commerce shipping fixed option rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundNoSuchShippingFixedOptionRelException
-
removeByCommerceShippingFixedOptionId
public static void removeByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId) Removes all the commerce shipping fixed option rels where commerceShippingFixedOptionId = ? from the database.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option ID
-
countByCommerceShippingFixedOptionId
public static int countByCommerceShippingFixedOptionId(long commerceShippingFixedOptionId) Returns the number of commerce shipping fixed option rels where commerceShippingFixedOptionId = ?.- Parameters:
commerceShippingFixedOptionId
- the commerce shipping fixed option ID- Returns:
- the number of matching commerce shipping fixed option rels
-
cacheResult
Caches the commerce shipping fixed option rel in the entity cache if it is enabled.- Parameters:
commerceShippingFixedOptionRel
- the commerce shipping fixed option rel
-
cacheResult
public static void cacheResult(List<CommerceShippingFixedOptionRel> commerceShippingFixedOptionRels) Caches the commerce shipping fixed option rels in the entity cache if it is enabled.- Parameters:
commerceShippingFixedOptionRels
- the commerce shipping fixed option rels
-
create
Creates a new commerce shipping fixed option rel with the primary key. Does not add the commerce shipping fixed option rel to the database.- Parameters:
commerceShippingFixedOptionRelId
- the primary key for the new commerce shipping fixed option rel- Returns:
- the new commerce shipping fixed option rel
-
remove
public static CommerceShippingFixedOptionRel remove(long commerceShippingFixedOptionRelId) throws NoSuchShippingFixedOptionRelException Removes the commerce shipping fixed option rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option rel- Returns:
- the commerce shipping fixed option rel that was removed
- Throws:
NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundNoSuchShippingFixedOptionRelException
-
updateImpl
public static CommerceShippingFixedOptionRel updateImpl(CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) -
findByPrimaryKey
public static CommerceShippingFixedOptionRel findByPrimaryKey(long commerceShippingFixedOptionRelId) throws NoSuchShippingFixedOptionRelException Returns the commerce shipping fixed option rel with the primary key or throws aNoSuchShippingFixedOptionRelException
if it could not be found.- Parameters:
commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option rel- Returns:
- the commerce shipping fixed option rel
- Throws:
NoSuchShippingFixedOptionRelException
- if a commerce shipping fixed option rel with the primary key could not be foundNoSuchShippingFixedOptionRelException
-
fetchByPrimaryKey
public static CommerceShippingFixedOptionRel fetchByPrimaryKey(long commerceShippingFixedOptionRelId) Returns the commerce shipping fixed option rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceShippingFixedOptionRelId
- the primary key of the commerce shipping fixed option rel- Returns:
- the commerce shipping fixed option rel, or
null
if a commerce shipping fixed option rel with the primary key could not be found
-
findAll
Returns all the commerce shipping fixed option rels.- Returns:
- the commerce shipping fixed option rels
-
findAll
Returns a range of all the commerce shipping fixed option rels.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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)- Returns:
- the range of commerce shipping fixed option rels
-
findAll
public static 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.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce shipping fixed option rels
-
findAll
public static 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.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 fromCommerceShippingFixedOptionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce shipping fixed option rels
-
removeAll
public static void removeAll()Removes all the commerce shipping fixed option rels from the database. -
countAll
public static int countAll()Returns the number of commerce shipping fixed option rels.- Returns:
- the number of commerce shipping fixed option rels
-
getPersistence
-
setPersistence
-