public class CommerceApplicationBrandUtil
extends java.lang.Object
com.liferay.commerce.application.service.persistence.impl.CommerceApplicationBrandPersistenceImpl 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
CommerceApplicationBrandPersistence| Constructor and Description |
|---|
CommerceApplicationBrandUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceApplicationBrand commerceApplicationBrand)
Caches the commerce application brand in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceApplicationBrand> commerceApplicationBrands)
Caches the commerce application brands in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceApplicationBrand commerceApplicationBrand) |
static int |
countAll()
Returns the number of commerce application brands.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce application brands where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceApplicationBrand |
create(long commerceApplicationBrandId)
Creates a new commerce application brand with the primary key.
|
static CommerceApplicationBrand |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the first commerce application brand in the ordered set where companyId = ?.
|
static CommerceApplicationBrand |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the last commerce application brand in the ordered set where companyId = ?.
|
static CommerceApplicationBrand |
fetchByPrimaryKey(long commerceApplicationBrandId)
Returns the commerce application brand with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceApplicationBrand> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce application brands that the user has permission to view where companyId = ?.
|
static CommerceApplicationBrand[] |
filterFindByCompanyId_PrevAndNext(long commerceApplicationBrandId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the commerce application brands before and after the current commerce application brand in the ordered set of commerce application brands that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
filterFindByCompanyId(long companyId)
Returns all the commerce application brands that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce application brands that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns an ordered range of all the commerce application brands that the user has permissions to view where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
findAll()
Returns all the commerce application brands.
|
static java.util.List<CommerceApplicationBrand> |
findAll(int start,
int end)
Returns a range of all the commerce application brands.
|
static java.util.List<CommerceApplicationBrand> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns an ordered range of all the commerce application brands.
|
static java.util.List<CommerceApplicationBrand> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application brands.
|
static CommerceApplicationBrand |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the first commerce application brand in the ordered set where companyId = ?.
|
static CommerceApplicationBrand |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the last commerce application brand in the ordered set where companyId = ?.
|
static CommerceApplicationBrand[] |
findByCompanyId_PrevAndNext(long commerceApplicationBrandId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns the commerce application brands before and after the current commerce application brand in the ordered set where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId)
Returns all the commerce application brands where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce application brands where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
Returns an ordered range of all the commerce application brands where companyId = ?.
|
static java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce application brands where companyId = ?.
|
static CommerceApplicationBrand |
findByPrimaryKey(long commerceApplicationBrandId)
Returns the commerce application brand with the primary key or throws a
NoSuchApplicationBrandException if it could not be found. |
static java.util.List<CommerceApplicationBrand> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceApplicationBrand> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceApplicationBrand> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator) |
static CommerceApplicationBrandPersistence |
getPersistence() |
static CommerceApplicationBrand |
remove(long commerceApplicationBrandId)
Removes the commerce application brand with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce application brands from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce application brands where companyId = ? from the database.
|
static void |
setPersistence(CommerceApplicationBrandPersistence persistence) |
static CommerceApplicationBrand |
update(CommerceApplicationBrand commerceApplicationBrand) |
static CommerceApplicationBrand |
update(CommerceApplicationBrand commerceApplicationBrand,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceApplicationBrand |
updateImpl(CommerceApplicationBrand commerceApplicationBrand) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceApplicationBrand commerceApplicationBrand)
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,CommerceApplicationBrand> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceApplicationBrand> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceApplicationBrand> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceApplicationBrand> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceApplicationBrand update(CommerceApplicationBrand commerceApplicationBrand)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceApplicationBrand update(CommerceApplicationBrand commerceApplicationBrand, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceApplicationBrand> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)public static java.util.List<CommerceApplicationBrand> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceApplicationBrand> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceApplicationBrand findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator) throws NoSuchApplicationBrandException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationBrandException - if a matching commerce application brand could not be foundpublic static CommerceApplicationBrand fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application brand could not be foundpublic static CommerceApplicationBrand findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator) throws NoSuchApplicationBrandException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationBrandException - if a matching commerce application brand could not be foundpublic static CommerceApplicationBrand fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce application brand could not be foundpublic static CommerceApplicationBrand[] findByCompanyId_PrevAndNext(long commerceApplicationBrandId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator) throws NoSuchApplicationBrandException
commerceApplicationBrandId - the primary key of the current commerce application brandcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationBrandException - if a commerce application brand with the primary key could not be foundpublic static java.util.List<CommerceApplicationBrand> filterFindByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)public static java.util.List<CommerceApplicationBrand> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceApplicationBrand[] filterFindByCompanyId_PrevAndNext(long commerceApplicationBrandId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> orderByComparator) throws NoSuchApplicationBrandException
commerceApplicationBrandId - the primary key of the current commerce application brandcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchApplicationBrandException - if a commerce application brand 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 void cacheResult(CommerceApplicationBrand commerceApplicationBrand)
commerceApplicationBrand - the commerce application brandpublic static void cacheResult(java.util.List<CommerceApplicationBrand> commerceApplicationBrands)
commerceApplicationBrands - the commerce application brandspublic static CommerceApplicationBrand create(long commerceApplicationBrandId)
commerceApplicationBrandId - the primary key for the new commerce application brandpublic static CommerceApplicationBrand remove(long commerceApplicationBrandId) throws NoSuchApplicationBrandException
commerceApplicationBrandId - the primary key of the commerce application brandNoSuchApplicationBrandException - if a commerce application brand with the primary key could not be foundpublic static CommerceApplicationBrand updateImpl(CommerceApplicationBrand commerceApplicationBrand)
public static CommerceApplicationBrand findByPrimaryKey(long commerceApplicationBrandId) throws NoSuchApplicationBrandException
NoSuchApplicationBrandException if it could not be found.commerceApplicationBrandId - the primary key of the commerce application brandNoSuchApplicationBrandException - if a commerce application brand with the primary key could not be foundpublic static CommerceApplicationBrand fetchByPrimaryKey(long commerceApplicationBrandId)
null if it could not be found.commerceApplicationBrandId - the primary key of the commerce application brandnull if a commerce application brand with the primary key could not be foundpublic static java.util.List<CommerceApplicationBrand> findAll()
public static java.util.List<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
start - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)public static java.util.List<CommerceApplicationBrand> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
start - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceApplicationBrand> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceApplicationBrand> 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 CommerceApplicationBrandModelImpl.
start - the lower bound of the range of commerce application brandsend - the upper bound of the range of commerce application brands (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 CommerceApplicationBrandPersistence getPersistence()
public static void setPersistence(CommerceApplicationBrandPersistence persistence)