public class CommerceChannelUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CommerceChannelPersistenceImpl
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
CommerceChannelPersistence
Constructor and Description |
---|
CommerceChannelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceChannel commerceChannel)
Caches the commerce channel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceChannel> commerceChannels)
Caches the commerce channels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceChannel commerceChannel) |
static int |
countAll()
Returns the number of commerce channels.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce channels where companyId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce channels where externalReferenceCode = ? and companyId = ?.
|
static int |
countBySiteGroupId(long siteGroupId)
Returns the number of commerce channels where siteGroupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce channels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce channels where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceChannel |
create(long commerceChannelId)
Creates a new commerce channel with the primary key.
|
static CommerceChannel |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where companyId = ?.
|
static CommerceChannel |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where companyId = ?.
|
static CommerceChannel |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceChannel |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceChannel |
fetchByPrimaryKey(long commerceChannelId)
Returns the commerce channel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceChannel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceChannel |
fetchBySiteGroupId(long siteGroupId)
Returns the commerce channel where siteGroupId = ? or returns
null if it could not be found. |
static CommerceChannel |
fetchBySiteGroupId(long siteGroupId,
boolean useFinderCache)
Returns the commerce channel where siteGroupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceChannel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceChannel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceChannel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where uuid = ?.
|
static CommerceChannel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where uuid = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce channels that the user has permission to view where companyId = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce channels that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of commerce channels that the user has permission to view where uuid = ?.
|
static CommerceChannel[] |
filterFindByCompanyId_PrevAndNext(long commerceChannelId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set of commerce channels that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByCompanyId(long companyId)
Returns all the commerce channels that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce channels that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels that the user has permissions to view where companyId = ?.
|
static CommerceChannel[] |
filterFindByUuid_C_PrevAndNext(long commerceChannelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set of commerce channels that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce channels that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce channels that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels that the user has permissions to view where uuid = ? and companyId = ?.
|
static CommerceChannel[] |
filterFindByUuid_PrevAndNext(long commerceChannelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set of commerce channels that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid(java.lang.String uuid)
Returns all the commerce channels that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce channels that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceChannel> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels that the user has permissions to view where uuid = ?.
|
static java.util.List<CommerceChannel> |
findAll()
Returns all the commerce channels.
|
static java.util.List<CommerceChannel> |
findAll(int start,
int end)
Returns a range of all the commerce channels.
|
static java.util.List<CommerceChannel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels.
|
static java.util.List<CommerceChannel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channels.
|
static CommerceChannel |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where companyId = ?.
|
static CommerceChannel |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where companyId = ?.
|
static CommerceChannel[] |
findByCompanyId_PrevAndNext(long commerceChannelId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set where companyId = ?.
|
static java.util.List<CommerceChannel> |
findByCompanyId(long companyId)
Returns all the commerce channels where companyId = ?.
|
static java.util.List<CommerceChannel> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce channels where companyId = ?.
|
static java.util.List<CommerceChannel> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels where companyId = ?.
|
static java.util.List<CommerceChannel> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channels where companyId = ?.
|
static CommerceChannel |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce channel where externalReferenceCode = ? and companyId = ? or throws a
NoSuchChannelException if it could not be found. |
static CommerceChannel |
findByPrimaryKey(long commerceChannelId)
Returns the commerce channel with the primary key or throws a
NoSuchChannelException if it could not be found. |
static CommerceChannel |
findBySiteGroupId(long siteGroupId)
Returns the commerce channel where siteGroupId = ? or throws a
NoSuchChannelException if it could not be found. |
static CommerceChannel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceChannel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceChannel[] |
findByUuid_C_PrevAndNext(long commerceChannelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce channels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce channels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceChannel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channels where uuid = ? and companyId = ?.
|
static CommerceChannel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where uuid = ?.
|
static CommerceChannel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where uuid = ?.
|
static CommerceChannel[] |
findByUuid_PrevAndNext(long commerceChannelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the commerce channels before and after the current commerce channel in the ordered set where uuid = ?.
|
static java.util.List<CommerceChannel> |
findByUuid(java.lang.String uuid)
Returns all the commerce channels where uuid = ?.
|
static java.util.List<CommerceChannel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce channels where uuid = ?.
|
static java.util.List<CommerceChannel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns an ordered range of all the commerce channels where uuid = ?.
|
static java.util.List<CommerceChannel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce channels where uuid = ?.
|
static java.util.List<CommerceChannel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceChannel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceChannel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) |
static CommerceChannelPersistence |
getPersistence() |
static CommerceChannel |
remove(long commerceChannelId)
Removes the commerce channel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce channels from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce channels where companyId = ? from the database.
|
static CommerceChannel |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce channel where externalReferenceCode = ? and companyId = ? from the database.
|
static CommerceChannel |
removeBySiteGroupId(long siteGroupId)
Removes the commerce channel where siteGroupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce channels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce channels where uuid = ? from the database.
|
static void |
setPersistence(CommerceChannelPersistence persistence) |
static CommerceChannel |
update(CommerceChannel commerceChannel) |
static CommerceChannel |
update(CommerceChannel commerceChannel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceChannel |
updateImpl(CommerceChannel commerceChannel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceChannel commerceChannel)
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,CommerceChannel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceChannel update(CommerceChannel commerceChannel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceChannel update(CommerceChannel commerceChannel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceChannel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceChannel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceChannel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel[] findByUuid_PrevAndNext(long commerceChannelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel with the primary key could not be foundpublic static java.util.List<CommerceChannel> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceChannel[] filterFindByUuid_PrevAndNext(long commerceChannelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel 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<CommerceChannel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceChannel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceChannel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel[] findByUuid_C_PrevAndNext(long commerceChannelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel with the primary key could not be foundpublic static java.util.List<CommerceChannel> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceChannel[] filterFindByUuid_C_PrevAndNext(long commerceChannelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel 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<CommerceChannel> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceChannel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceChannel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce channel could not be foundpublic static CommerceChannel[] findByCompanyId_PrevAndNext(long commerceChannelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channelcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel with the primary key could not be foundpublic static java.util.List<CommerceChannel> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceChannel[] filterFindByCompanyId_PrevAndNext(long commerceChannelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException
commerceChannelId
- the primary key of the current commerce channelcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchChannelException
- if a commerce channel 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 CommerceChannel findBySiteGroupId(long siteGroupId) throws NoSuchChannelException
NoSuchChannelException
if it could not be found.siteGroupId
- the site group IDNoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel fetchBySiteGroupId(long siteGroupId)
null
if it could not be found. Uses the finder cache.siteGroupId
- the site group IDnull
if a matching commerce channel could not be foundpublic static CommerceChannel fetchBySiteGroupId(long siteGroupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.siteGroupId
- the site group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce channel could not be foundpublic static CommerceChannel removeBySiteGroupId(long siteGroupId) throws NoSuchChannelException
siteGroupId
- the site group IDNoSuchChannelException
public static int countBySiteGroupId(long siteGroupId)
siteGroupId
- the site group IDpublic static CommerceChannel findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchChannelException
NoSuchChannelException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchChannelException
- if a matching commerce channel could not be foundpublic static CommerceChannel 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 channel could not be foundpublic static CommerceChannel 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 channel could not be foundpublic static CommerceChannel removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchChannelException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchChannelException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(CommerceChannel commerceChannel)
commerceChannel
- the commerce channelpublic static void cacheResult(java.util.List<CommerceChannel> commerceChannels)
commerceChannels
- the commerce channelspublic static CommerceChannel create(long commerceChannelId)
commerceChannelId
- the primary key for the new commerce channelpublic static CommerceChannel remove(long commerceChannelId) throws NoSuchChannelException
commerceChannelId
- the primary key of the commerce channelNoSuchChannelException
- if a commerce channel with the primary key could not be foundpublic static CommerceChannel updateImpl(CommerceChannel commerceChannel)
public static CommerceChannel findByPrimaryKey(long commerceChannelId) throws NoSuchChannelException
NoSuchChannelException
if it could not be found.commerceChannelId
- the primary key of the commerce channelNoSuchChannelException
- if a commerce channel with the primary key could not be foundpublic static CommerceChannel fetchByPrimaryKey(long commerceChannelId)
null
if it could not be found.commerceChannelId
- the primary key of the commerce channelnull
if a commerce channel with the primary key could not be foundpublic static java.util.List<CommerceChannel> findAll()
public static java.util.List<CommerceChannel> 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 CommerceChannelModelImpl
.
start
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public static java.util.List<CommerceChannel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
start
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceChannel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> 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 CommerceChannelModelImpl
.
start
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (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 CommerceChannelPersistence getPersistence()
public static void setPersistence(CommerceChannelPersistence persistence)