@ProviderType public interface CommerceCurrencyPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceCurrency>
Caching information and settings can be found in portal.properties
CommerceCurrencyUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceCurrency commerceCurrency)
Caches the commerce currency in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceCurrency> commerceCurrencies)
Caches the commerce currencies in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce currencies.
|
int |
countByC_A(long companyId,
boolean active)
Returns the number of commerce currencies where companyId = ? and active = ?.
|
int |
countByC_C(long companyId,
java.lang.String code)
Returns the number of commerce currencies where companyId = ? and code = ?.
|
int |
countByC_P_A(long companyId,
boolean primary,
boolean active)
Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.
|
int |
countByC_P(long companyId,
boolean primary)
Returns the number of commerce currencies where companyId = ? and primary = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of commerce currencies where companyId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce currencies where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce currencies where uuid = ?.
|
CommerceCurrency |
create(long commerceCurrencyId)
Creates a new commerce currency with the primary key.
|
CommerceCurrency |
fetchByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
|
CommerceCurrency |
fetchByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
|
CommerceCurrency |
fetchByC_C(long companyId,
java.lang.String code)
Returns the commerce currency where companyId = ? and code = ? or returns
null if it could not be found. |
CommerceCurrency |
fetchByC_C(long companyId,
java.lang.String code,
boolean useFinderCache)
Returns the commerce currency where companyId = ? and code = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceCurrency |
fetchByC_P_A_First(long companyId,
boolean primary,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
|
CommerceCurrency |
fetchByC_P_A_Last(long companyId,
boolean primary,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
|
CommerceCurrency |
fetchByC_P_First(long companyId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
|
CommerceCurrency |
fetchByC_P_Last(long companyId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
|
CommerceCurrency |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ?.
|
CommerceCurrency |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ?.
|
CommerceCurrency |
fetchByPrimaryKey(long commerceCurrencyId)
Returns the commerce currency with the primary key or returns
null if it could not be found. |
CommerceCurrency |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
|
CommerceCurrency |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
|
CommerceCurrency |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ?.
|
CommerceCurrency |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ?.
|
java.util.List<CommerceCurrency> |
findAll()
Returns all the commerce currencies.
|
java.util.List<CommerceCurrency> |
findAll(int start,
int end)
Returns a range of all the commerce currencies.
|
java.util.List<CommerceCurrency> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies.
|
java.util.List<CommerceCurrency> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies.
|
CommerceCurrency |
findByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
|
CommerceCurrency |
findByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
|
CommerceCurrency[] |
findByC_A_PrevAndNext(long commerceCurrencyId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active)
Returns all the commerce currencies where companyId = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
|
CommerceCurrency |
findByC_C(long companyId,
java.lang.String code)
Returns the commerce currency where companyId = ? and code = ? or throws a
NoSuchCurrencyException if it could not be found. |
CommerceCurrency |
findByC_P_A_First(long companyId,
boolean primary,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
|
CommerceCurrency |
findByC_P_A_Last(long companyId,
boolean primary,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
|
CommerceCurrency[] |
findByC_P_A_PrevAndNext(long commerceCurrencyId,
long companyId,
boolean primary,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active)
Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
CommerceCurrency |
findByC_P_First(long companyId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
|
CommerceCurrency |
findByC_P_Last(long companyId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
|
CommerceCurrency[] |
findByC_P_PrevAndNext(long commerceCurrencyId,
long companyId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ?.
|
java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary)
Returns all the commerce currencies where companyId = ? and primary = ?.
|
java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and primary = ?.
|
java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
|
java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
|
CommerceCurrency |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where companyId = ?.
|
CommerceCurrency |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where companyId = ?.
|
CommerceCurrency[] |
findByCompanyId_PrevAndNext(long commerceCurrencyId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ?.
|
java.util.List<CommerceCurrency> |
findByCompanyId(long companyId)
Returns all the commerce currencies where companyId = ?.
|
java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ?.
|
java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ?.
|
java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ?.
|
CommerceCurrency |
findByPrimaryKey(long commerceCurrencyId)
Returns the commerce currency with the primary key or throws a
NoSuchCurrencyException if it could not be found. |
CommerceCurrency |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
|
CommerceCurrency |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
|
CommerceCurrency[] |
findByUuid_C_PrevAndNext(long commerceCurrencyId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce currencies where uuid = ? and companyId = ?.
|
java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce currencies where uuid = ? and companyId = ?.
|
java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
|
java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
|
CommerceCurrency |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ?.
|
CommerceCurrency |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ?.
|
CommerceCurrency[] |
findByUuid_PrevAndNext(long commerceCurrencyId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ?.
|
java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid)
Returns all the commerce currencies where uuid = ?.
|
java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce currencies where uuid = ?.
|
java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where uuid = ?.
|
java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where uuid = ?.
|
CommerceCurrency |
remove(long commerceCurrencyId)
Removes the commerce currency with the primary key from the database.
|
void |
removeAll()
Removes all the commerce currencies from the database.
|
void |
removeByC_A(long companyId,
boolean active)
Removes all the commerce currencies where companyId = ? and active = ? from the database.
|
CommerceCurrency |
removeByC_C(long companyId,
java.lang.String code)
Removes the commerce currency where companyId = ? and code = ? from the database.
|
void |
removeByC_P_A(long companyId,
boolean primary,
boolean active)
Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.
|
void |
removeByC_P(long companyId,
boolean primary)
Removes all the commerce currencies where companyId = ? and primary = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the commerce currencies where companyId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce currencies where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce currencies where uuid = ? from the database.
|
CommerceCurrency |
updateImpl(CommerceCurrency commerceCurrency) |
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<CommerceCurrency> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByUuid_PrevAndNext(long commerceCurrencyId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency 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<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByUuid_C_PrevAndNext(long commerceCurrencyId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency 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<CommerceCurrency> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CommerceCurrency> findByCompanyId(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 CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByCompanyId_PrevAndNext(long commerceCurrencyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDCommerceCurrency findByC_C(long companyId, java.lang.String code) throws NoSuchCurrencyException
NoSuchCurrencyException
if it could not be found.companyId
- the company IDcode
- the codeNoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_C(long companyId, java.lang.String code)
null
if it could not be found. Uses the finder cache.companyId
- the company IDcode
- the codenull
if a matching commerce currency could not be foundCommerceCurrency fetchByC_C(long companyId, java.lang.String code, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDcode
- the codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce currency could not be foundCommerceCurrency removeByC_C(long companyId, java.lang.String code) throws NoSuchCurrencyException
companyId
- the company IDcode
- the codeNoSuchCurrencyException
int countByC_C(long companyId, java.lang.String code)
companyId
- the company IDcode
- the codejava.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primaryjava.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByC_P_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundvoid removeByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primaryint countByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primaryjava.util.List<CommerceCurrency> findByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activejava.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, 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 CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByC_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundvoid removeByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activeint countByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activejava.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activejava.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceCurrency findByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency findByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundCommerceCurrency fetchByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundCommerceCurrency[] findByC_P_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundvoid removeByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activeint countByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activevoid cacheResult(CommerceCurrency commerceCurrency)
commerceCurrency
- the commerce currencyvoid cacheResult(java.util.List<CommerceCurrency> commerceCurrencies)
commerceCurrencies
- the commerce currenciesCommerceCurrency create(long commerceCurrencyId)
commerceCurrencyId
- the primary key for the new commerce currencyCommerceCurrency remove(long commerceCurrencyId) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the commerce currencyNoSuchCurrencyException
- if a commerce currency with the primary key could not be foundCommerceCurrency updateImpl(CommerceCurrency commerceCurrency)
CommerceCurrency findByPrimaryKey(long commerceCurrencyId) throws NoSuchCurrencyException
NoSuchCurrencyException
if it could not be found.commerceCurrencyId
- the primary key of the commerce currencyNoSuchCurrencyException
- if a commerce currency with the primary key could not be foundCommerceCurrency fetchByPrimaryKey(long commerceCurrencyId)
null
if it could not be found.commerceCurrencyId
- the primary key of the commerce currencynull
if a commerce currency with the primary key could not be foundjava.util.List<CommerceCurrency> findAll()
java.util.List<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)java.util.List<CommerceCurrency> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceCurrency> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> 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 CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()