public class CommerceCurrencyUtil
extends java.lang.Object
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
CommerceCurrencyPersistence
Constructor and Description |
---|
CommerceCurrencyUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceCurrency commerceCurrency)
Caches the commerce currency in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceCurrency> commerceCurrencies)
Caches the commerce currencies in the entity cache if it is enabled.
|
static void |
clearCache() |
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,
java.lang.String code)
Returns the number of commerce currencies where companyId = ? and code = ?.
|
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 |
countByC_P(long companyId,
boolean primary)
Returns the number of commerce currencies where companyId = ? and primary = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce currencies where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce currencies where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce currencies where uuid = ?.
|
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,
java.lang.String code)
Returns the commerce currency where companyId = ? and code = ? or returns
null if it could not be found. |
static CommerceCurrency |
fetchByC_C(long companyId,
java.lang.String code,
boolean useFinderCache)
Returns the commerce currency where companyId = ? and code = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
fetchByPrimaryKey(long commerceCurrencyId)
Returns the commerce currency with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceCurrency> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceCurrency |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCurrency |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCurrency |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ?.
|
static CommerceCurrency |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findAll()
Returns all the commerce currencies.
|
static java.util.List<CommerceCurrency> |
findAll(int start,
int end)
Returns a range of all the commerce currencies.
|
static java.util.List<CommerceCurrency> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies.
|
static java.util.List<CommerceCurrency> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies.
|
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 java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active)
Returns all the commerce currencies where companyId = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
|
static CommerceCurrency |
findByC_C(long companyId,
java.lang.String code)
Returns the commerce currency where companyId = ? and code = ? or throws a
NoSuchCurrencyException if it could not be found. |
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 java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active)
Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P_A(long companyId,
boolean primary,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
|
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 java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary)
Returns all the commerce currencies where companyId = ? and primary = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ? and primary = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
|
static java.util.List<CommerceCurrency> |
findByC_P(long companyId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
|
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 java.util.List<CommerceCurrency> |
findByCompanyId(long companyId)
Returns all the commerce currencies where companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce currencies where companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where companyId = ?.
|
static CommerceCurrency |
findByPrimaryKey(long commerceCurrencyId)
Returns the commerce currency with the primary key or throws a
NoSuchCurrencyException if it could not be found. |
static CommerceCurrency |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCurrency |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCurrency[] |
findByUuid_C_PrevAndNext(long commerceCurrencyId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce currencies where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce currencies where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
|
static CommerceCurrency |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the first commerce currency in the ordered set where uuid = ?.
|
static CommerceCurrency |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the last commerce currency in the ordered set where uuid = ?.
|
static CommerceCurrency[] |
findByUuid_PrevAndNext(long commerceCurrencyId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid)
Returns all the commerce currencies where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce currencies where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Returns an ordered range of all the commerce currencies where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce currencies where uuid = ?.
|
static java.util.List<CommerceCurrency> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceCurrency> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static CommerceCurrency |
remove(long commerceCurrencyId)
Removes the commerce currency with the primary key from the database.
|
static void |
removeAll()
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,
java.lang.String code)
Removes the commerce currency where companyId = ? and code = ? 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 |
removeByC_P(long companyId,
boolean primary)
Removes all the commerce currencies where companyId = ? and primary = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce currencies where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce currencies where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce currencies where uuid = ? from the database.
|
static CommerceCurrency |
update(CommerceCurrency commerceCurrency) |
static CommerceCurrency |
update(CommerceCurrency commerceCurrency,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceCurrency |
updateImpl(CommerceCurrency commerceCurrency) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceCurrency commerceCurrency)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceCurrency> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceCurrency update(CommerceCurrency commerceCurrency)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceCurrency update(CommerceCurrency commerceCurrency, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByUuid_PrevAndNext(long commerceCurrencyId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByUuid_C_PrevAndNext(long commerceCurrencyId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencyuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceCurrency> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceCurrency> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByCompanyId_PrevAndNext(long commerceCurrencyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static CommerceCurrency findByC_C(long companyId, java.lang.String code) throws NoSuchCurrencyException
NoSuchCurrencyException
if it could not be found.companyId
- the company IDcode
- the codeNoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_C(long companyId, java.lang.String code)
null
if it could not be found. Uses the finder cache.companyId
- the company IDcode
- the codenull
if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_C(long companyId, java.lang.String code, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDcode
- the codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce currency could not be foundpublic static CommerceCurrency removeByC_C(long companyId, java.lang.String code) throws NoSuchCurrencyException
companyId
- the company IDcode
- the codeNoSuchCurrencyException
public static int countByC_C(long companyId, java.lang.String code)
companyId
- the company IDcode
- the codepublic static java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primarypublic static java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primarystart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByC_P_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primarypublic static int countByC_P(long companyId, boolean primary)
companyId
- the company IDprimary
- the primarypublic static java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByC_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static int countByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activepublic static java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
companyId
- the company IDprimary
- the primaryactive
- the activestart
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCurrency findByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency findByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a matching commerce currency could not be foundpublic static CommerceCurrency fetchByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
companyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce currency could not be foundpublic static CommerceCurrency[] findByC_P_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the current commerce currencycompanyId
- the company IDprimary
- the primaryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static void removeByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activepublic static int countByC_P_A(long companyId, boolean primary, boolean active)
companyId
- the company IDprimary
- the primaryactive
- the activepublic static void cacheResult(CommerceCurrency commerceCurrency)
commerceCurrency
- the commerce currencypublic static void cacheResult(java.util.List<CommerceCurrency> commerceCurrencies)
commerceCurrencies
- the commerce currenciespublic static CommerceCurrency create(long commerceCurrencyId)
commerceCurrencyId
- the primary key for the new commerce currencypublic static CommerceCurrency remove(long commerceCurrencyId) throws NoSuchCurrencyException
commerceCurrencyId
- the primary key of the commerce currencyNoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static CommerceCurrency updateImpl(CommerceCurrency commerceCurrency)
public static CommerceCurrency findByPrimaryKey(long commerceCurrencyId) throws NoSuchCurrencyException
NoSuchCurrencyException
if it could not be found.commerceCurrencyId
- the primary key of the commerce currencyNoSuchCurrencyException
- if a commerce currency with the primary key could not be foundpublic static CommerceCurrency fetchByPrimaryKey(long commerceCurrencyId)
null
if it could not be found.commerceCurrencyId
- the primary key of the commerce currencynull
if a commerce currency with the primary key could not be foundpublic static java.util.List<CommerceCurrency> findAll()
public static java.util.List<CommerceCurrency> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)public static java.util.List<CommerceCurrency> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCurrency> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceCurrencyModelImpl
.
start
- the lower bound of the range of commerce currenciesend
- the upper bound of the range of commerce currencies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceCurrencyPersistence getPersistence()