@ProviderType public interface CommerceDiscountAccountRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountAccountRel>
Caching information and settings can be found in portal.properties
CommerceDiscountAccountRelUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceDiscountAccountRel commerceDiscountAccountRel)
Caches the commerce discount account rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscountAccountRel> commerceDiscountAccountRels)
Caches the commerce discount account rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discount account rels.
|
int |
countByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the number of commerce discount account rels where commerceAccountId = ? and commerceDiscountId = ?.
|
int |
countByCommerceAccountId(long commerceAccountId)
Returns the number of commerce discount account rels where commerceAccountId = ?.
|
int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount account rels where commerceDiscountId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discount account rels where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discount account rels where uuid = ?.
|
CommerceDiscountAccountRel |
create(long commerceDiscountAccountRelId)
Creates a new commerce discount account rel with the primary key.
|
CommerceDiscountAccountRel |
fetchByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns
null if it could not be found. |
CommerceDiscountAccountRel |
fetchByCAI_CDI(long commerceAccountId,
long commerceDiscountId,
boolean useFinderCache)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceDiscountAccountRel |
fetchByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.
|
CommerceDiscountAccountRel |
fetchByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.
|
CommerceDiscountAccountRel |
fetchByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountAccountRel |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountAccountRel |
fetchByPrimaryKey(long commerceDiscountAccountRelId)
Returns the commerce discount account rel with the primary key or returns
null if it could not be found. |
CommerceDiscountAccountRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountAccountRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountAccountRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ?.
|
CommerceDiscountAccountRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findAll()
Returns all the commerce discount account rels.
|
java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount account rels.
|
java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels.
|
java.util.List<CommerceDiscountAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels.
|
CommerceDiscountAccountRel |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or throws a
NoSuchDiscountAccountRelException if it could not be found. |
CommerceDiscountAccountRel |
findByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.
|
CommerceDiscountAccountRel |
findByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.
|
CommerceDiscountAccountRel[] |
findByCommerceAccountId_PrevAndNext(long commerceDiscountAccountRelId,
long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceAccountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId)
Returns all the commerce discount account rels where commerceAccountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end)
Returns a range of all the commerce discount account rels where commerceAccountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.
|
CommerceDiscountAccountRel |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountAccountRel |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountAccountRel[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountAccountRelId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount account rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount account rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where commerceDiscountId = ?.
|
CommerceDiscountAccountRel |
findByPrimaryKey(long commerceDiscountAccountRelId)
Returns the commerce discount account rel with the primary key or throws a
NoSuchDiscountAccountRelException if it could not be found. |
CommerceDiscountAccountRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountAccountRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
CommerceDiscountAccountRel[] |
findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discount account rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where uuid = ? and companyId = ?.
|
CommerceDiscountAccountRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the first commerce discount account rel in the ordered set where uuid = ?.
|
CommerceDiscountAccountRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the last commerce discount account rel in the ordered set where uuid = ?.
|
CommerceDiscountAccountRel[] |
findByUuid_PrevAndNext(long commerceDiscountAccountRelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce discount account rels where uuid = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discount account rels where uuid = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
Returns an ordered range of all the commerce discount account rels where uuid = ?.
|
java.util.List<CommerceDiscountAccountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount account rels where uuid = ?.
|
CommerceDiscountAccountRel |
remove(long commerceDiscountAccountRelId)
Removes the commerce discount account rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discount account rels from the database.
|
CommerceDiscountAccountRel |
removeByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Removes the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? from the database.
|
void |
removeByCommerceAccountId(long commerceAccountId)
Removes all the commerce discount account rels where commerceAccountId = ? from the database.
|
void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount account rels where commerceDiscountId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discount account rels where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discount account rels where uuid = ? from the database.
|
CommerceDiscountAccountRel |
updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel) |
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<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)java.util.List<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountAccountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountAccountRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel[] findByUuid_PrevAndNext(long commerceDiscountAccountRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account 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<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)java.util.List<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountAccountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountAccountRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel[] findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account 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<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDjava.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)java.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountAccountRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel[] findByCommerceAccountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundvoid removeByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDint countByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDjava.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)java.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountAccountRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountAccountRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the current commerce discount account relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundvoid removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDint countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDCommerceDiscountAccountRel findByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
NoSuchDiscountAccountRelException
if it could not be found.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDNoSuchDiscountAccountRelException
- if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId)
null
if it could not be found. Uses the finder cache.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDnull
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount account rel could not be foundCommerceDiscountAccountRel removeByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDNoSuchDiscountAccountRelException
int countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDvoid cacheResult(CommerceDiscountAccountRel commerceDiscountAccountRel)
commerceDiscountAccountRel
- the commerce discount account relvoid cacheResult(java.util.List<CommerceDiscountAccountRel> commerceDiscountAccountRels)
commerceDiscountAccountRels
- the commerce discount account relsCommerceDiscountAccountRel create(long commerceDiscountAccountRelId)
commerceDiscountAccountRelId
- the primary key for the new commerce discount account relCommerceDiscountAccountRel remove(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException
commerceDiscountAccountRelId
- the primary key of the commerce discount account relNoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundCommerceDiscountAccountRel updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel)
CommerceDiscountAccountRel findByPrimaryKey(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException
NoSuchDiscountAccountRelException
if it could not be found.commerceDiscountAccountRelId
- the primary key of the commerce discount account relNoSuchDiscountAccountRelException
- if a commerce discount account rel with the primary key could not be foundCommerceDiscountAccountRel fetchByPrimaryKey(long commerceDiscountAccountRelId)
null
if it could not be found.commerceDiscountAccountRelId
- the primary key of the commerce discount account relnull
if a commerce discount account rel with the primary key could not be foundjava.util.List<CommerceDiscountAccountRel> findAll()
java.util.List<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)java.util.List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> 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 CommerceDiscountAccountRelModelImpl
.
start
- the lower bound of the range of commerce discount account relsend
- the upper bound of the range of commerce discount account rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()