Class CommerceCurrencyUtil
com.liferay.commerce.currency.service.persistence.impl.CommerceCurrencyPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceCurrency commerceCurrency) Caches the commerce currency in the entity cache if it is enabled.static void
cacheResult
(List<CommerceCurrency> commerceCurrencies) Caches the commerce currencies in the entity cache if it is enabled.static void
static void
clearCache
(CommerceCurrency commerceCurrency) static int
countAll()
Returns the number of commerce currencies.static int
countByC_A
(long companyId, boolean active) Returns the number of commerce currencies where companyId = ? and active = ?.static int
countByC_C
(long companyId, String code) Returns the number of commerce currencies where companyId = ? and code = ?.static int
countByC_P
(long companyId, boolean primary) Returns the number of commerce currencies where companyId = ? and primary = ?.static int
countByC_P_A
(long companyId, boolean primary, boolean active) Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.static int
countByCompanyId
(long companyId) Returns the number of commerce currencies where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce currencies where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce currencies where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce currencies where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceCurrency
create
(long commerceCurrencyId) Creates a new commerce currency with the primary key.static 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 = ?.static 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 = ?.static CommerceCurrency
fetchByC_C
(long companyId, String code) Returns the commerce currency where companyId = ? and code = ? or returnsnull
if it could not be found.static CommerceCurrency
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.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceCurrency
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where companyId = ?.static CommerceCurrency
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where companyId = ?.static CommerceCurrency
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceCurrency
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.static CommerceCurrency
fetchByPrimaryKey
(long commerceCurrencyId) Returns the commerce currency with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceCurrency> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static 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 = ?.static 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 = ?.static CommerceCurrency
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where uuid = ?.static CommerceCurrency
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where uuid = ?.static List<CommerceCurrency>
findAll()
Returns all the commerce currencies.static List<CommerceCurrency>
findAll
(int start, int end) Returns a range of all the commerce currencies.static List<CommerceCurrency>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns an ordered range of all the commerce currencies.static 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.static List<CommerceCurrency>
findByC_A
(long companyId, boolean active) Returns all the commerce currencies where companyId = ? and active = ?.static List<CommerceCurrency>
findByC_A
(long companyId, boolean active, int start, int end) Returns a range of all the commerce currencies where companyId = ? and active = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceCurrency
Returns the commerce currency where companyId = ? and code = ? or throws aNoSuchCurrencyException
if it could not be found.static List<CommerceCurrency>
findByC_P
(long companyId, boolean primary) Returns all the commerce currencies where companyId = ? and primary = ?.static List<CommerceCurrency>
findByC_P
(long companyId, boolean primary, int start, int end) Returns a range of all the commerce currencies where companyId = ? and primary = ?.static 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 = ?.static 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 = ?.static List<CommerceCurrency>
findByC_P_A
(long companyId, boolean primary, boolean active) Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static List<CommerceCurrency>
findByCompanyId
(long companyId) Returns all the commerce currencies where companyId = ?.static List<CommerceCurrency>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce currencies where companyId = ?.static 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 = ?.static 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 = ?.static CommerceCurrency
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where companyId = ?.static CommerceCurrency
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where companyId = ?.static 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 = ?.static CommerceCurrency
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce currency where externalReferenceCode = ? and companyId = ? or throws aNoSuchCurrencyException
if it could not be found.static CommerceCurrency
findByPrimaryKey
(long commerceCurrencyId) Returns the commerce currency with the primary key or throws aNoSuchCurrencyException
if it could not be found.static List<CommerceCurrency>
findByUuid
(String uuid) Returns all the commerce currencies where uuid = ?.static List<CommerceCurrency>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce currencies where uuid = ?.static 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 = ?.static 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 = ?.static List<CommerceCurrency>
findByUuid_C
(String uuid, long companyId) Returns all the commerce currencies where uuid = ? and companyId = ?.static List<CommerceCurrency>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce currencies where uuid = ? and companyId = ?.static 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 = ?.static 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 = ?.static CommerceCurrency
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 = ?.static CommerceCurrency
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 = ?.static CommerceCurrency[]
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 = ?.static CommerceCurrency
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the first commerce currency in the ordered set where uuid = ?.static CommerceCurrency
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) Returns the last commerce currency in the ordered set where uuid = ?.static CommerceCurrency[]
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 = ?.static List<CommerceCurrency>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceCurrency>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceCurrency>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) static CommerceCurrencyPersistence
static CommerceCurrency
remove
(long commerceCurrencyId) Removes the commerce currency with the primary key from the database.static void
Removes all the commerce currencies from the database.static void
removeByC_A
(long companyId, boolean active) Removes all the commerce currencies where companyId = ? and active = ? from the database.static CommerceCurrency
removeByC_C
(long companyId, String code) Removes the commerce currency where companyId = ? and code = ? from the database.static void
removeByC_P
(long companyId, boolean primary) Removes all the commerce currencies where companyId = ? and primary = ? from the database.static void
removeByC_P_A
(long companyId, boolean primary, boolean active) Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce currencies where companyId = ? from the database.static CommerceCurrency
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce currency where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce currencies where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce currencies where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceCurrencyPersistence persistence) static CommerceCurrency
update
(CommerceCurrency commerceCurrency) static CommerceCurrency
update
(CommerceCurrency commerceCurrency, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceCurrency
updateImpl
(CommerceCurrency commerceCurrency)
-
Constructor Details
-
CommerceCurrencyUtil
public CommerceCurrencyUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceCurrency update(CommerceCurrency commerceCurrency, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByUuid_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByUuid_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByUuid_C_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByUuid_C_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByCompanyId_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByCompanyId_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce currencies where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static 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
public static CommerceCurrency findByC_C(long companyId, String code) throws NoSuchCurrencyException 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 foundNoSuchCurrencyException
-
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
public static CommerceCurrency removeByC_C(long companyId, String code) throws NoSuchCurrencyException 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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_P_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_P_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
removeByC_P
public static 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_A_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_A_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
removeByC_A
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_P_A_First
public static 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
public static 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 foundNoSuchCurrencyException
-
fetchByC_P_A_Last
public static 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
public static 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 foundNoSuchCurrencyException
-
removeByC_P_A
public static 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
public static 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
public static 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 foundNoSuchCurrencyException
-
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
public static CommerceCurrency 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.- 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
public static 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 foundNoSuchCurrencyException
-
updateImpl
-
findByPrimaryKey
public static CommerceCurrency findByPrimaryKey(long commerceCurrencyId) throws NoSuchCurrencyException 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 foundNoSuchCurrencyException
-
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
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
public static 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
public static 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
public static void removeAll()Removes all the commerce currencies from the database. -
countAll
public static int countAll()Returns the number of commerce currencies.- Returns:
- the number of commerce currencies
-
getPersistence
-
setPersistence
-