public class CommerceApplicationModelUtil
extends java.lang.Object
com.liferay.commerce.application.service.persistence.impl.CommerceApplicationModelPersistenceImpl 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
CommerceApplicationModelPersistence| Constructor and Description |
|---|
CommerceApplicationModelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceApplicationModel commerceApplicationModel)
Caches the commerce application model in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceApplicationModel> commerceApplicationModels)
Caches the commerce application models in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceApplicationModel commerceApplicationModel) |
static int |
countAll()
Returns the number of commerce application models.
|
static int |
countByCommerceApplicationBrandId(long commerceApplicationBrandId)
Returns the number of commerce application models where commerceApplicationBrandId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce application models where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceApplicationModel |
create(long commerceApplicationModelId)
Creates a new commerce application model with the primary key.
|
static CommerceApplicationModel |
fetchByCommerceApplicationBrandId_First(long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the first commerce application model in the ordered set where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel |
fetchByCommerceApplicationBrandId_Last(long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the last commerce application model in the ordered set where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the first commerce application model in the ordered set where companyId = ?.
|
static CommerceApplicationModel |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the last commerce application model in the ordered set where companyId = ?.
|
static CommerceApplicationModel |
fetchByPrimaryKey(long commerceApplicationModelId)
Returns the commerce application model with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceApplicationModel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCommerceApplicationBrandId(long commerceApplicationBrandId)
Returns the number of commerce application models that the user has permission to view where commerceApplicationBrandId = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce application models that the user has permission to view where companyId = ?.
|
static CommerceApplicationModel[] |
filterFindByCommerceApplicationBrandId_PrevAndNext(long commerceApplicationModelId,
long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the commerce application models before and after the current commerce application model in the ordered set of commerce application models that the user has permission to view where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId)
Returns all the commerce application models that the user has permission to view where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId,
int start,
int end)
Returns a range of all the commerce application models that the user has permission to view where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns an ordered range of all the commerce application models that the user has permissions to view where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel[] |
filterFindByCompanyId_PrevAndNext(long commerceApplicationModelId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the commerce application models before and after the current commerce application model in the ordered set of commerce application models that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCompanyId(long companyId)
Returns all the commerce application models that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce application models that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns an ordered range of all the commerce application models that the user has permissions to view where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
findAll()
Returns all the commerce application models.
|
static java.util.List<CommerceApplicationModel> |
findAll(int start,
int end)
Returns a range of all the commerce application models.
|
static java.util.List<CommerceApplicationModel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns an ordered range of all the commerce application models.
|
static java.util.List<CommerceApplicationModel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application models.
|
static CommerceApplicationModel |
findByCommerceApplicationBrandId_First(long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the first commerce application model in the ordered set where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel |
findByCommerceApplicationBrandId_Last(long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the last commerce application model in the ordered set where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel[] |
findByCommerceApplicationBrandId_PrevAndNext(long commerceApplicationModelId,
long commerceApplicationBrandId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the commerce application models before and after the current commerce application model in the ordered set where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCommerceApplicationBrandId(long commerceApplicationBrandId)
Returns all the commerce application models where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCommerceApplicationBrandId(long commerceApplicationBrandId,
int start,
int end)
Returns a range of all the commerce application models where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCommerceApplicationBrandId(long commerceApplicationBrandId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns an ordered range of all the commerce application models where commerceApplicationBrandId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCommerceApplicationBrandId(long commerceApplicationBrandId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application models where commerceApplicationBrandId = ?.
|
static CommerceApplicationModel |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the first commerce application model in the ordered set where companyId = ?.
|
static CommerceApplicationModel |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the last commerce application model in the ordered set where companyId = ?.
|
static CommerceApplicationModel[] |
findByCompanyId_PrevAndNext(long commerceApplicationModelId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns the commerce application models before and after the current commerce application model in the ordered set where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCompanyId(long companyId)
Returns all the commerce application models where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce application models where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
Returns an ordered range of all the commerce application models where companyId = ?.
|
static java.util.List<CommerceApplicationModel> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application models where companyId = ?.
|
static CommerceApplicationModel |
findByPrimaryKey(long commerceApplicationModelId)
Returns the commerce application model with the primary key or throws a
NoSuchApplicationModelException if it could not be found. |
static java.util.List<CommerceApplicationModel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceApplicationModel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceApplicationModel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) |
static CommerceApplicationModelPersistence |
getPersistence() |
static CommerceApplicationModel |
remove(long commerceApplicationModelId)
Removes the commerce application model with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce application models from the database.
|
static void |
removeByCommerceApplicationBrandId(long commerceApplicationBrandId)
Removes all the commerce application models where commerceApplicationBrandId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce application models where companyId = ? from the database.
|
static void |
setPersistence(CommerceApplicationModelPersistence persistence) |
static CommerceApplicationModel |
update(CommerceApplicationModel commerceApplicationModel) |
static CommerceApplicationModel |
update(CommerceApplicationModel commerceApplicationModel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceApplicationModel |
updateImpl(CommerceApplicationModel commerceApplicationModel) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceApplicationModel commerceApplicationModel)
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,CommerceApplicationModel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceApplicationModel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceApplicationModel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceApplicationModel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceApplicationModel update(CommerceApplicationModel commerceApplicationModel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceApplicationModel update(CommerceApplicationModel commerceApplicationModel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceApplicationModel> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)public static java.util.List<CommerceApplicationModel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceApplicationModel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceApplicationModel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a matching commerce application model could not be foundpublic static CommerceApplicationModel fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model could not be foundpublic static CommerceApplicationModel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a matching commerce application model could not be foundpublic static CommerceApplicationModel fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model could not be foundpublic static CommerceApplicationModel[] findByCompanyId_PrevAndNext(long commerceApplicationModelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationModelId - the primary key of the current commerce application modelcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a commerce application model with the primary key could not be foundpublic static java.util.List<CommerceApplicationModel> filterFindByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceApplicationModel> filterFindByCompanyId(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 CommerceApplicationModelModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)public static java.util.List<CommerceApplicationModel> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceApplicationModel[] filterFindByCompanyId_PrevAndNext(long commerceApplicationModelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationModelId - the primary key of the current commerce application modelcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a commerce application model 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 int filterCountByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceApplicationModel> findByCommerceApplicationBrandId(long commerceApplicationBrandId)
commerceApplicationBrandId - the commerce application brand IDpublic static java.util.List<CommerceApplicationModel> findByCommerceApplicationBrandId(long commerceApplicationBrandId, 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 CommerceApplicationModelModelImpl.
commerceApplicationBrandId - the commerce application brand IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)public static java.util.List<CommerceApplicationModel> findByCommerceApplicationBrandId(long commerceApplicationBrandId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
commerceApplicationBrandId - the commerce application brand IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceApplicationModel> findByCommerceApplicationBrandId(long commerceApplicationBrandId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
commerceApplicationBrandId - the commerce application brand IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceApplicationModel findByCommerceApplicationBrandId_First(long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a matching commerce application model could not be foundpublic static CommerceApplicationModel fetchByCommerceApplicationBrandId_First(long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
commerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model could not be foundpublic static CommerceApplicationModel findByCommerceApplicationBrandId_Last(long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a matching commerce application model could not be foundpublic static CommerceApplicationModel fetchByCommerceApplicationBrandId_Last(long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator)
commerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application model could not be foundpublic static CommerceApplicationModel[] findByCommerceApplicationBrandId_PrevAndNext(long commerceApplicationModelId, long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationModelId - the primary key of the current commerce application modelcommerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a commerce application model with the primary key could not be foundpublic static java.util.List<CommerceApplicationModel> filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId)
commerceApplicationBrandId - the commerce application brand IDpublic static java.util.List<CommerceApplicationModel> filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId, 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 CommerceApplicationModelModelImpl.
commerceApplicationBrandId - the commerce application brand IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)public static java.util.List<CommerceApplicationModel> filterFindByCommerceApplicationBrandId(long commerceApplicationBrandId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
commerceApplicationBrandId - the commerce application brand IDstart - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceApplicationModel[] filterFindByCommerceApplicationBrandId_PrevAndNext(long commerceApplicationModelId, long commerceApplicationBrandId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> orderByComparator) throws NoSuchApplicationModelException
commerceApplicationModelId - the primary key of the current commerce application modelcommerceApplicationBrandId - the commerce application brand IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationModelException - if a commerce application model with the primary key could not be foundpublic static void removeByCommerceApplicationBrandId(long commerceApplicationBrandId)
commerceApplicationBrandId - the commerce application brand IDpublic static int countByCommerceApplicationBrandId(long commerceApplicationBrandId)
commerceApplicationBrandId - the commerce application brand IDpublic static int filterCountByCommerceApplicationBrandId(long commerceApplicationBrandId)
commerceApplicationBrandId - the commerce application brand IDpublic static void cacheResult(CommerceApplicationModel commerceApplicationModel)
commerceApplicationModel - the commerce application modelpublic static void cacheResult(java.util.List<CommerceApplicationModel> commerceApplicationModels)
commerceApplicationModels - the commerce application modelspublic static CommerceApplicationModel create(long commerceApplicationModelId)
commerceApplicationModelId - the primary key for the new commerce application modelpublic static CommerceApplicationModel remove(long commerceApplicationModelId) throws NoSuchApplicationModelException
commerceApplicationModelId - the primary key of the commerce application modelNoSuchApplicationModelException - if a commerce application model with the primary key could not be foundpublic static CommerceApplicationModel updateImpl(CommerceApplicationModel commerceApplicationModel)
public static CommerceApplicationModel findByPrimaryKey(long commerceApplicationModelId) throws NoSuchApplicationModelException
NoSuchApplicationModelException if it could not be found.commerceApplicationModelId - the primary key of the commerce application modelNoSuchApplicationModelException - if a commerce application model with the primary key could not be foundpublic static CommerceApplicationModel fetchByPrimaryKey(long commerceApplicationModelId)
null if it could not be found.commerceApplicationModelId - the primary key of the commerce application modelnull if a commerce application model with the primary key could not be foundpublic static java.util.List<CommerceApplicationModel> findAll()
public static java.util.List<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
start - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)public static java.util.List<CommerceApplicationModel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
start - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceApplicationModel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationModel> 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 CommerceApplicationModelModelImpl.
start - the lower bound of the range of commerce application modelsend - the upper bound of the range of commerce application models (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 CommerceApplicationModelPersistence getPersistence()
public static void setPersistence(CommerceApplicationModelPersistence persistence)