@ProviderType public interface CommerceApplicationBrandPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceApplicationBrand>
Caching information and settings can be found in portal.properties
CommerceApplicationBrandUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceApplicationBrand commerceApplicationBrand)
Caches the commerce application brand in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceApplicationBrand> commerceApplicationBrands)
Caches the commerce application brands in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce application brands.
|
int |
countByCompanyId(long companyId)
Returns the number of commerce application brands where companyId = ?.
|
CommerceApplicationBrand |
create(long commerceApplicationBrandId)
Creates a new commerce application brand with the primary key.
|
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 = ?.
|
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 = ?.
|
CommerceApplicationBrand |
fetchByPrimaryKey(long commerceApplicationBrandId)
Returns the commerce application brand with the primary key or returns
null if it could not be found. |
int |
filterCountByCompanyId(long companyId)
Returns the number of commerce application brands that the user has permission to view where companyId = ?.
|
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 = ?.
|
java.util.List<CommerceApplicationBrand> |
filterFindByCompanyId(long companyId)
Returns all the commerce application brands that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceApplicationBrand> |
findAll()
Returns all the commerce application brands.
|
java.util.List<CommerceApplicationBrand> |
findAll(int start,
int end)
Returns a range of all the commerce application brands.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId)
Returns all the commerce application brands where companyId = ?.
|
java.util.List<CommerceApplicationBrand> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce application brands where companyId = ?.
|
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 = ?.
|
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 = ?.
|
CommerceApplicationBrand |
findByPrimaryKey(long commerceApplicationBrandId)
Returns the commerce application brand with the primary key or throws a
NoSuchApplicationBrandException if it could not be found. |
CommerceApplicationBrand |
remove(long commerceApplicationBrandId)
Removes the commerce application brand with the primary key from the database.
|
void |
removeAll()
Removes all the commerce application brands from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the commerce application brands where companyId = ? from the database.
|
CommerceApplicationBrand |
updateImpl(CommerceApplicationBrand commerceApplicationBrand) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceApplicationBrand> findByCompanyId(long companyId)
companyId - the company IDjava.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)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)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 cacheCommerceApplicationBrand 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 foundCommerceApplicationBrand 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 foundCommerceApplicationBrand 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 foundCommerceApplicationBrand 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 foundCommerceApplicationBrand[] 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 foundjava.util.List<CommerceApplicationBrand> filterFindByCompanyId(long companyId)
companyId - the company IDjava.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)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)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 foundvoid removeByCompanyId(long companyId)
companyId - the company IDint countByCompanyId(long companyId)
companyId - the company IDint filterCountByCompanyId(long companyId)
companyId - the company IDvoid cacheResult(CommerceApplicationBrand commerceApplicationBrand)
commerceApplicationBrand - the commerce application brandvoid cacheResult(java.util.List<CommerceApplicationBrand> commerceApplicationBrands)
commerceApplicationBrands - the commerce application brandsCommerceApplicationBrand create(long commerceApplicationBrandId)
commerceApplicationBrandId - the primary key for the new commerce application brandCommerceApplicationBrand 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 foundCommerceApplicationBrand updateImpl(CommerceApplicationBrand commerceApplicationBrand)
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 foundCommerceApplicationBrand 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 foundjava.util.List<CommerceApplicationBrand> findAll()
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)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)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 cachevoid removeAll()
int countAll()