public class CommerceCatalogUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CommerceCatalogPersistenceImpl
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
CommerceCatalogPersistence
Constructor and Description |
---|
CommerceCatalogUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceCatalog commerceCatalog)
Caches the commerce catalog in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceCatalog> commerceCatalogs)
Caches the commerce catalogs in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceCatalog commerceCatalog) |
static int |
countAll()
Returns the number of commerce catalogs.
|
static int |
countByC_S(long companyId,
boolean system)
Returns the number of commerce catalogs where companyId = ? and system = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce catalogs where companyId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce catalogs where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce catalogs where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce catalogs where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceCatalog |
create(long commerceCatalogId)
Creates a new commerce catalog with the primary key.
|
static CommerceCatalog |
fetchByC_S_First(long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where companyId = ? and system = ?.
|
static CommerceCatalog |
fetchByC_S_Last(long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where companyId = ? and system = ?.
|
static CommerceCatalog |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where companyId = ?.
|
static CommerceCatalog |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where companyId = ?.
|
static CommerceCatalog |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce catalog where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceCatalog |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce catalog where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceCatalog |
fetchByPrimaryKey(long commerceCatalogId)
Returns the commerce catalog with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceCatalog> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceCatalog |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCatalog |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCatalog |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where uuid = ?.
|
static CommerceCatalog |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where uuid = ?.
|
static int |
filterCountByC_S(long companyId,
boolean system)
Returns the number of commerce catalogs that the user has permission to view where companyId = ? and system = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce catalogs that the user has permission to view where companyId = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce catalogs that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of commerce catalogs that the user has permission to view where uuid = ?.
|
static CommerceCatalog[] |
filterFindByC_S_PrevAndNext(long commerceCatalogId,
long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set of commerce catalogs that the user has permission to view where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByC_S(long companyId,
boolean system)
Returns all the commerce catalogs that the user has permission to view where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByC_S(long companyId,
boolean system,
int start,
int end)
Returns a range of all the commerce catalogs that the user has permission to view where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByC_S(long companyId,
boolean system,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs that the user has permissions to view where companyId = ? and system = ?.
|
static CommerceCatalog[] |
filterFindByCompanyId_PrevAndNext(long commerceCatalogId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set of commerce catalogs that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByCompanyId(long companyId)
Returns all the commerce catalogs that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce catalogs that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs that the user has permissions to view where companyId = ?.
|
static CommerceCatalog[] |
filterFindByUuid_C_PrevAndNext(long commerceCatalogId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set of commerce catalogs that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce catalogs that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce catalogs that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs that the user has permissions to view where uuid = ? and companyId = ?.
|
static CommerceCatalog[] |
filterFindByUuid_PrevAndNext(long commerceCatalogId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set of commerce catalogs that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid(java.lang.String uuid)
Returns all the commerce catalogs that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce catalogs that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceCatalog> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs that the user has permissions to view where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findAll()
Returns all the commerce catalogs.
|
static java.util.List<CommerceCatalog> |
findAll(int start,
int end)
Returns a range of all the commerce catalogs.
|
static java.util.List<CommerceCatalog> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs.
|
static java.util.List<CommerceCatalog> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce catalogs.
|
static CommerceCatalog |
findByC_S_First(long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where companyId = ? and system = ?.
|
static CommerceCatalog |
findByC_S_Last(long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where companyId = ? and system = ?.
|
static CommerceCatalog[] |
findByC_S_PrevAndNext(long commerceCatalogId,
long companyId,
boolean system,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
findByC_S(long companyId,
boolean system)
Returns all the commerce catalogs where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
findByC_S(long companyId,
boolean system,
int start,
int end)
Returns a range of all the commerce catalogs where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
findByC_S(long companyId,
boolean system,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs where companyId = ? and system = ?.
|
static java.util.List<CommerceCatalog> |
findByC_S(long companyId,
boolean system,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce catalogs where companyId = ? and system = ?.
|
static CommerceCatalog |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where companyId = ?.
|
static CommerceCatalog |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where companyId = ?.
|
static CommerceCatalog[] |
findByCompanyId_PrevAndNext(long commerceCatalogId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set where companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByCompanyId(long companyId)
Returns all the commerce catalogs where companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce catalogs where companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs where companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce catalogs where companyId = ?.
|
static CommerceCatalog |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce catalog where externalReferenceCode = ? and companyId = ? or throws a
NoSuchCatalogException if it could not be found. |
static CommerceCatalog |
findByPrimaryKey(long commerceCatalogId)
Returns the commerce catalog with the primary key or throws a
NoSuchCatalogException if it could not be found. |
static CommerceCatalog |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCatalog |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCatalog[] |
findByUuid_C_PrevAndNext(long commerceCatalogId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce catalogs where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce catalogs where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce catalogs where uuid = ? and companyId = ?.
|
static CommerceCatalog |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the first commerce catalog in the ordered set where uuid = ?.
|
static CommerceCatalog |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the last commerce catalog in the ordered set where uuid = ?.
|
static CommerceCatalog[] |
findByUuid_PrevAndNext(long commerceCatalogId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns the commerce catalogs before and after the current commerce catalog in the ordered set where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid(java.lang.String uuid)
Returns all the commerce catalogs where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce catalogs where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
Returns an ordered range of all the commerce catalogs where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce catalogs where uuid = ?.
|
static java.util.List<CommerceCatalog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceCatalog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceCatalog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) |
static CommerceCatalogPersistence |
getPersistence() |
static CommerceCatalog |
remove(long commerceCatalogId)
Removes the commerce catalog with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce catalogs from the database.
|
static void |
removeByC_S(long companyId,
boolean system)
Removes all the commerce catalogs where companyId = ? and system = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce catalogs where companyId = ? from the database.
|
static CommerceCatalog |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce catalog where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce catalogs where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce catalogs where uuid = ? from the database.
|
static void |
setPersistence(CommerceCatalogPersistence persistence) |
static CommerceCatalog |
update(CommerceCatalog commerceCatalog) |
static CommerceCatalog |
update(CommerceCatalog commerceCatalog,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceCatalog |
updateImpl(CommerceCatalog commerceCatalog) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceCatalog commerceCatalog)
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,CommerceCatalog> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceCatalog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceCatalog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceCatalog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceCatalog update(CommerceCatalog commerceCatalog)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceCatalog update(CommerceCatalog commerceCatalog, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceCatalog> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCatalog> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCatalog findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog[] findByUuid_PrevAndNext(long commerceCatalogId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce cataloguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static java.util.List<CommerceCatalog> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceCatalog> filterFindByUuid(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 CommerceCatalogModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceCatalog[] filterFindByUuid_PrevAndNext(long commerceCatalogId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce cataloguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog 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 int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceCatalog> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCatalog> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCatalog findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog[] findByUuid_C_PrevAndNext(long commerceCatalogId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce cataloguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static java.util.List<CommerceCatalog> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceCatalog> filterFindByUuid_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 CommerceCatalogModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceCatalog[] filterFindByUuid_C_PrevAndNext(long commerceCatalogId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce cataloguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog 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 int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceCatalog> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCatalog> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCatalog findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog[] findByCompanyId_PrevAndNext(long commerceCatalogId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce catalogcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static java.util.List<CommerceCatalog> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceCatalog[] filterFindByCompanyId_PrevAndNext(long commerceCatalogId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce catalogcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog 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<CommerceCatalog> findByC_S(long companyId, boolean system)
companyId
- the company IDsystem
- the systempublic static java.util.List<CommerceCatalog> findByC_S(long companyId, boolean system, 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 CommerceCatalogModelImpl
.
companyId
- the company IDsystem
- the systemstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> findByC_S(long companyId, boolean system, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDsystem
- the systemstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCatalog> findByC_S(long companyId, boolean system, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDsystem
- the systemstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceCatalog findByC_S_First(long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
companyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByC_S_First(long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
companyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog findByC_S_Last(long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
companyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByC_S_Last(long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator)
companyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce catalog could not be foundpublic static CommerceCatalog[] findByC_S_PrevAndNext(long commerceCatalogId, long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce catalogcompanyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static java.util.List<CommerceCatalog> filterFindByC_S(long companyId, boolean system)
companyId
- the company IDsystem
- the systempublic static java.util.List<CommerceCatalog> filterFindByC_S(long companyId, boolean system, 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 CommerceCatalogModelImpl
.
companyId
- the company IDsystem
- the systemstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> filterFindByC_S(long companyId, boolean system, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
companyId
- the company IDsystem
- the systemstart
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceCatalog[] filterFindByC_S_PrevAndNext(long commerceCatalogId, long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> orderByComparator) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the current commerce catalogcompanyId
- the company IDsystem
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static void removeByC_S(long companyId, boolean system)
companyId
- the company IDsystem
- the systempublic static int countByC_S(long companyId, boolean system)
companyId
- the company IDsystem
- the systempublic static int filterCountByC_S(long companyId, boolean system)
companyId
- the company IDsystem
- the systempublic static CommerceCatalog findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchCatalogException
NoSuchCatalogException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchCatalogException
- if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching commerce catalog could not be foundpublic static CommerceCatalog fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce catalog could not be foundpublic static CommerceCatalog removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchCatalogException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchCatalogException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(CommerceCatalog commerceCatalog)
commerceCatalog
- the commerce catalogpublic static void cacheResult(java.util.List<CommerceCatalog> commerceCatalogs)
commerceCatalogs
- the commerce catalogspublic static CommerceCatalog create(long commerceCatalogId)
commerceCatalogId
- the primary key for the new commerce catalogpublic static CommerceCatalog remove(long commerceCatalogId) throws NoSuchCatalogException
commerceCatalogId
- the primary key of the commerce catalogNoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static CommerceCatalog updateImpl(CommerceCatalog commerceCatalog)
public static CommerceCatalog findByPrimaryKey(long commerceCatalogId) throws NoSuchCatalogException
NoSuchCatalogException
if it could not be found.commerceCatalogId
- the primary key of the commerce catalogNoSuchCatalogException
- if a commerce catalog with the primary key could not be foundpublic static CommerceCatalog fetchByPrimaryKey(long commerceCatalogId)
null
if it could not be found.commerceCatalogId
- the primary key of the commerce catalognull
if a commerce catalog with the primary key could not be foundpublic static java.util.List<CommerceCatalog> findAll()
public static java.util.List<CommerceCatalog> 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 CommerceCatalogModelImpl
.
start
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public static java.util.List<CommerceCatalog> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
start
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceCatalog> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCatalog> 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 CommerceCatalogModelImpl
.
start
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (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 CommerceCatalogPersistence getPersistence()
public static void setPersistence(CommerceCatalogPersistence persistence)