Interface CommerceCurrencyPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceCurrency>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceCurrency commerceCurrency) Caches the commerce currency in the entity cache if it is enabled.void
cacheResult
(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, String code) Returns the number of commerce currencies where companyId = ? and code = ?.int
countByC_P
(long companyId, boolean primary) Returns the number of commerce currencies where companyId = ? and primary = ?.int
countByC_P_A
(long companyId, boolean primary, boolean active) Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.int
countByCompanyId
(long companyId) Returns the number of commerce currencies where companyId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce currencies where externalReferenceCode = ? and companyId = ?.int
countByUuid
(String uuid) Returns the number of commerce currencies where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce currencies where uuid = ? and companyId = ?.create
(long commerceCurrencyId) Creates a new commerce currency with the primary key.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 = ?.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 = ?.fetchByC_C
(long companyId, String code) Returns the commerce currency where companyId = ? and code = ? or returnsnull
if it could not be found.fetchByC_C
(long companyId, String code, boolean useFinderCache) Returns the commerce currency where companyId = ? and code = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long commerceCurrencyId) Returns the commerce currency with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(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 = ?.fetchByUuid_C_Last
(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 = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where uuid = ?.findAll()
Returns all the commerce currencies.findAll
(int start, int end) Returns a range of all the commerce currencies.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns an ordered range of all the commerce currencies.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce currencies.findByC_A
(long companyId, boolean active) Returns all the commerce currencies where companyId = ? and active = ?.findByC_A
(long companyId, boolean active, int start, int end) Returns a range of all the commerce currencies where companyId = ? and active = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.Returns the commerce currency where companyId = ? and code = ? or throws aNoSuchCurrencyException
if it could not be found.findByC_P
(long companyId, boolean primary) Returns all the commerce currencies where companyId = ? and primary = ?.findByC_P
(long companyId, boolean primary, int start, int end) Returns a range of all the commerce currencies where companyId = ? and primary = ?.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 = ?.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 = ?.findByC_P_A
(long companyId, boolean primary, boolean active) Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByCompanyId
(long companyId) Returns all the commerce currencies where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce currencies where companyId = ?.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 = ?.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 = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where companyId = ?.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 = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce currency where externalReferenceCode = ? and companyId = ? or throws aNoSuchCurrencyException
if it could not be found.findByPrimaryKey
(long commerceCurrencyId) Returns the commerce currency with the primary key or throws aNoSuchCurrencyException
if it could not be found.findByUuid
(String uuid) Returns all the commerce currencies where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the commerce currencies where uuid = ?.findByUuid
(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 = ?.findByUuid
(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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the commerce currencies where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce currencies where uuid = ? and companyId = ?.findByUuid_C
(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 = ?.findByUuid_C
(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 = ?.findByUuid_C_First
(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 = ?.findByUuid_C_Last
(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 = ?.findByUuid_C_PrevAndNext
(long commerceCurrencyId, 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 = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long commerceCurrencyId, 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 = ?.remove
(long commerceCurrencyId) Removes the commerce currency with the primary key from the database.void
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.removeByC_C
(long companyId, String code) Removes the commerce currency where companyId = ? and code = ? from the database.void
removeByC_P
(long companyId, boolean primary) Removes all the commerce currencies where companyId = ? and primary = ? 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
removeByCompanyId
(long companyId) Removes all the commerce currencies where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce currency where externalReferenceCode = ? and companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the commerce currencies where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce currencies where uuid = ? and companyId = ? from the database.updateImpl
(CommerceCurrency commerceCurrency) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUuid
Returns all the commerce currencies where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce currencies
-
findByUuid
Returns a range of all the commerce currencies where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)- Returns:
- the range of matching commerce currencies
-
findByUuid
List<CommerceCurrency> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByUuid
List<CommerceCurrency> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByUuid_First
CommerceCurrency findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByUuid_First
CommerceCurrency fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByUuid_Last
CommerceCurrency findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByUuid_Last
CommerceCurrency fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByUuid_PrevAndNext
CommerceCurrency[] findByUuid_PrevAndNext(long commerceCurrencyId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByUuid
Removes all the commerce currencies where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce currencies where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce currencies
-
findByUuid_C
Returns all the commerce currencies where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce currencies
-
findByUuid_C
Returns a range of all the commerce currencies where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce currencies
-
findByUuid_C
List<CommerceCurrency> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByUuid_C
List<CommerceCurrency> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByUuid_C_First
CommerceCurrency findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByUuid_C_First
CommerceCurrency fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByUuid_C_Last
CommerceCurrency findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByUuid_C_Last
CommerceCurrency fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByUuid_C_PrevAndNext
CommerceCurrency[] findByUuid_C_PrevAndNext(long commerceCurrencyId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByUuid_C
Removes all the commerce currencies where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce currencies where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce currencies
-
findByCompanyId
Returns all the commerce currencies where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce currencies
-
findByCompanyId
Returns a range of all the commerce currencies where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)- Returns:
- the range of matching commerce currencies
-
findByCompanyId
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByCompanyId
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByCompanyId_First
CommerceCurrency findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByCompanyId_First
CommerceCurrency fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByCompanyId_Last
CommerceCurrency findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByCompanyId_Last
CommerceCurrency fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByCompanyId_PrevAndNext
CommerceCurrency[] findByCompanyId_PrevAndNext(long commerceCurrencyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the commerce currencies where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of commerce currencies where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce currencies
-
findByC_C
Returns the commerce currency where companyId = ? and code = ? or throws aNoSuchCurrencyException
if it could not be found.- Parameters:
companyId
- the company IDcode
- the code- Returns:
- the matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_C
Returns the commerce currency where companyId = ? and code = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDcode
- the code- Returns:
- the matching commerce currency, or
null
if a matching commerce currency could not be found
-
fetchByC_C
Returns the commerce currency where companyId = ? and code = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDcode
- the codeuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce currency, or
null
if a matching commerce currency could not be found
-
removeByC_C
Removes the commerce currency where companyId = ? and code = ? from the database.- Parameters:
companyId
- the company IDcode
- the code- Returns:
- the commerce currency that was removed
- Throws:
NoSuchCurrencyException
-
countByC_C
Returns the number of commerce currencies where companyId = ? and code = ?.- Parameters:
companyId
- the company IDcode
- the code- Returns:
- the number of matching commerce currencies
-
findByC_P
Returns all the commerce currencies where companyId = ? and primary = ?.- Parameters:
companyId
- the company IDprimary
- the primary- Returns:
- the matching commerce currencies
-
findByC_P
Returns a range of all the commerce currencies where companyId = ? and primary = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce currencies
-
findByC_P
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByC_P
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByC_P_First
CommerceCurrency findByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.- Parameters:
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_P_First
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 = ?.- Parameters:
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_P_Last
CommerceCurrency findByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.- Parameters:
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_P_Last
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 = ?.- Parameters:
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_P_PrevAndNext
CommerceCurrency[] findByC_P_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByC_P
void removeByC_P(long companyId, boolean primary) Removes all the commerce currencies where companyId = ? and primary = ? from the database.- Parameters:
companyId
- the company IDprimary
- the primary
-
countByC_P
int countByC_P(long companyId, boolean primary) Returns the number of commerce currencies where companyId = ? and primary = ?.- Parameters:
companyId
- the company IDprimary
- the primary- Returns:
- the number of matching commerce currencies
-
findByC_A
Returns all the commerce currencies where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the matching commerce currencies
-
findByC_A
Returns a range of all the commerce currencies where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce currencies
-
findByC_A
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByC_A
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByC_A_First
CommerceCurrency findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_A_First
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 = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_A_Last
CommerceCurrency findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_A_Last
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 = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_A_PrevAndNext
CommerceCurrency[] findByC_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and active = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByC_A
void removeByC_A(long companyId, boolean active) Removes all the commerce currencies where companyId = ? and active = ? from the database.- Parameters:
companyId
- the company IDactive
- the active
-
countByC_A
int countByC_A(long companyId, boolean active) Returns the number of commerce currencies where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the number of matching commerce currencies
-
findByC_P_A
Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the active- Returns:
- the matching commerce currencies
-
findByC_P_A
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce currencies
-
findByC_P_A
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce currencies
-
findByC_P_A
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce currencies
-
findByC_P_A_First
CommerceCurrency findByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_P_A_First
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 = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_P_A_Last
CommerceCurrency findByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByC_P_A_Last
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 = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce currency, or
null
if a matching commerce currency could not be found
-
findByC_P_A_PrevAndNext
CommerceCurrency[] findByC_P_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.- Parameters:
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
removeByC_P_A
void removeByC_P_A(long companyId, boolean primary, boolean active) Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the active
-
countByC_P_A
int countByC_P_A(long companyId, boolean primary, boolean active) Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.- Parameters:
companyId
- the company IDprimary
- the primaryactive
- the active- Returns:
- the number of matching commerce currencies
-
findByERC_C
CommerceCurrency findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCurrencyException Returns the commerce currency where externalReferenceCode = ? and companyId = ? or throws aNoSuchCurrencyException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce currency
- Throws:
NoSuchCurrencyException
- if a matching commerce currency could not be found
-
fetchByERC_C
Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce currency, or
null
if a matching commerce currency could not be found
-
fetchByERC_C
Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce currency, or
null
if a matching commerce currency could not be found
-
removeByERC_C
CommerceCurrency removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCurrencyException Removes the commerce currency where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce currency that was removed
- Throws:
NoSuchCurrencyException
-
countByERC_C
Returns the number of commerce currencies where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce currencies
-
cacheResult
Caches the commerce currency in the entity cache if it is enabled.- Parameters:
commerceCurrency
- the commerce currency
-
cacheResult
Caches the commerce currencies in the entity cache if it is enabled.- Parameters:
commerceCurrencies
- the commerce currencies
-
create
Creates a new commerce currency with the primary key. Does not add the commerce currency to the database.- Parameters:
commerceCurrencyId
- the primary key for the new commerce currency- Returns:
- the new commerce currency
-
remove
Removes the commerce currency with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceCurrencyId
- the primary key of the commerce currency- Returns:
- the commerce currency that was removed
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the commerce currency with the primary key or throws aNoSuchCurrencyException
if it could not be found.- Parameters:
commerceCurrencyId
- the primary key of the commerce currency- Returns:
- the commerce currency
- Throws:
NoSuchCurrencyException
- if a commerce currency with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce currency with the primary key or returnsnull
if it could not be found.- Parameters:
commerceCurrencyId
- the primary key of the commerce currency- Returns:
- the commerce currency, or
null
if a commerce currency with the primary key could not be found
-
findAll
List<CommerceCurrency> findAll()Returns all the commerce currencies.- Returns:
- the commerce currencies
-
findAll
Returns a range of all the commerce currencies.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)- Returns:
- the range of commerce currencies
-
findAll
List<CommerceCurrency> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns an ordered range of all the commerce currencies.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce currencies
-
findAll
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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceCurrencyModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce currencies
-
removeAll
void removeAll()Removes all the commerce currencies from the database. -
countAll
int countAll()Returns the number of commerce currencies.- Returns:
- the number of commerce currencies
-