@ProviderType public interface CommerceDiscountOrderTypeRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountOrderTypeRel>
Caching information and settings can be found in portal.properties
CommerceDiscountOrderTypeRelUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
Caches the commerce discount order type rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels)
Caches the commerce discount order type rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discount order type rels.
|
int |
countByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the number of commerce discount order type rels where commerceDiscountId = ? and commerceOrderTypeId = ?.
|
int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount order type rels where commerceDiscountId = ?.
|
int |
countByCommerceOrderTypeId(long commerceOrderTypeId)
Returns the number of commerce discount order type rels where commerceOrderTypeId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discount order type rels where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discount order type rels where uuid = ?.
|
CommerceDiscountOrderTypeRel |
create(long commerceDiscountOrderTypeRelId)
Creates a new commerce discount order type rel with the primary key.
|
CommerceDiscountOrderTypeRel |
fetchByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns
null if it could not be found. |
CommerceDiscountOrderTypeRel |
fetchByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId,
boolean useFinderCache)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceDiscountOrderTypeRel |
fetchByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByCommerceOrderTypeId_First(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByPrimaryKey(long commerceDiscountOrderTypeRelId)
Returns the commerce discount order type rel with the primary key or returns
null if it could not be found. |
CommerceDiscountOrderTypeRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountOrderTypeRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where uuid = ?.
|
CommerceDiscountOrderTypeRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where uuid = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findAll()
Returns all the commerce discount order type rels.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount order type rels.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce discount order type rels.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount order type rels.
|
CommerceDiscountOrderTypeRel |
findByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or throws a
NoSuchDiscountOrderTypeRelException if it could not be found. |
CommerceDiscountOrderTypeRel |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountOrderTypeRel |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountOrderTypeRel[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount order type rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount order type rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.
|
CommerceDiscountOrderTypeRel |
findByCommerceOrderTypeId_First(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
|
CommerceDiscountOrderTypeRel |
findByCommerceOrderTypeId_Last(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
|
CommerceDiscountOrderTypeRel[] |
findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId)
Returns all the commerce discount order type rels where commerceOrderTypeId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end)
Returns a range of all the commerce discount order type rels where commerceOrderTypeId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.
|
CommerceDiscountOrderTypeRel |
findByPrimaryKey(long commerceDiscountOrderTypeRelId)
Returns the commerce discount order type rel with the primary key or throws a
NoSuchDiscountOrderTypeRelException if it could not be found. |
CommerceDiscountOrderTypeRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountOrderTypeRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountOrderTypeRel[] |
findByUuid_C_PrevAndNext(long commerceDiscountOrderTypeRelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discount order type rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce discount order type rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount order type rels where uuid = ? and companyId = ?.
|
CommerceDiscountOrderTypeRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the first commerce discount order type rel in the ordered set where uuid = ?.
|
CommerceDiscountOrderTypeRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the last commerce discount order type rel in the ordered set where uuid = ?.
|
CommerceDiscountOrderTypeRel[] |
findByUuid_PrevAndNext(long commerceDiscountOrderTypeRelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where uuid = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce discount order type rels where uuid = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discount order type rels where uuid = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce discount order type rels where uuid = ?.
|
java.util.List<CommerceDiscountOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount order type rels where uuid = ?.
|
CommerceDiscountOrderTypeRel |
remove(long commerceDiscountOrderTypeRelId)
Removes the commerce discount order type rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discount order type rels from the database.
|
CommerceDiscountOrderTypeRel |
removeByCDI_COTI(long commerceDiscountId,
long commerceOrderTypeId)
Removes the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? from the database.
|
void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount order type rels where commerceDiscountId = ? from the database.
|
void |
removeByCommerceOrderTypeId(long commerceOrderTypeId)
Removes all the commerce discount order type rels where commerceOrderTypeId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discount order type rels where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discount order type rels where uuid = ? from the database.
|
CommerceDiscountOrderTypeRel |
updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountOrderTypeRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountOrderTypeRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel[] findByUuid_PrevAndNext(long commerceDiscountOrderTypeRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountOrderTypeRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceDiscountOrderTypeRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountOrderTypeRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundvoid removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDint countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDjava.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the current commerce discount order type relcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundvoid removeByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDint countByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDCommerceDiscountOrderTypeRel findByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
NoSuchDiscountOrderTypeRelException
if it could not be found.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDNoSuchDiscountOrderTypeRelException
- if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
null
if it could not be found. Uses the finder cache.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDnull
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount order type rel could not be foundCommerceDiscountOrderTypeRel removeByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDNoSuchDiscountOrderTypeRelException
int countByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
commerceDiscountId
- the commerce discount IDcommerceOrderTypeId
- the commerce order type IDvoid cacheResult(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
commerceDiscountOrderTypeRel
- the commerce discount order type relvoid cacheResult(java.util.List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels)
commerceDiscountOrderTypeRels
- the commerce discount order type relsCommerceDiscountOrderTypeRel create(long commerceDiscountOrderTypeRelId)
commerceDiscountOrderTypeRelId
- the primary key for the new commerce discount order type relCommerceDiscountOrderTypeRel remove(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relNoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundCommerceDiscountOrderTypeRel updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
CommerceDiscountOrderTypeRel findByPrimaryKey(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
NoSuchDiscountOrderTypeRelException
if it could not be found.commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relNoSuchDiscountOrderTypeRelException
- if a commerce discount order type rel with the primary key could not be foundCommerceDiscountOrderTypeRel fetchByPrimaryKey(long commerceDiscountOrderTypeRelId)
null
if it could not be found.commerceDiscountOrderTypeRelId
- the primary key of the commerce discount order type relnull
if a commerce discount order type rel with the primary key could not be foundjava.util.List<CommerceDiscountOrderTypeRel> findAll()
java.util.List<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)java.util.List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> 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 CommerceDiscountOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce discount order type relsend
- the upper bound of the range of commerce discount order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()