Class CommerceChannelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceChannel commerceChannel) Caches the commerce channel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceChannel> commerceChannels) Caches the commerce channels in the entity cache if it is enabled.static void
static void
clearCache
(CommerceChannel commerceChannel) static int
countAll()
Returns the number of commerce channels.static int
countByAccountEntryId
(long accountEntryId) Returns the number of commerce channels where accountEntryId = ?.static int
countByCompanyId
(long companyId) Returns the number of commerce channels where companyId = ?.static int
countByERC_C
(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
(String uuid) Returns the number of commerce channels where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce channels where uuid = ? and companyId = ?.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
fetchByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the first commerce channel in the ordered set where accountEntryId = ?.static CommerceChannel
fetchByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the last commerce channel in the ordered set where accountEntryId = ?.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
(String externalReferenceCode, long companyId) Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceChannel
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
CommerceChannel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceChannel
fetchBySiteGroupId
(long siteGroupId) Returns the commerce channel where siteGroupId = ? or returnsnull
if it could not be found.static CommerceChannel
fetchBySiteGroupId
(long siteGroupId, boolean useFinderCache) Returns the commerce channel where siteGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceChannel
fetchByUuid_C_First
(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
(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
(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
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the last commerce channel in the ordered set where uuid = ?.static int
filterCountByAccountEntryId
(long accountEntryId) Returns the number of commerce channels that the user has permission to view where accountEntryId = ?.static int
filterCountByCompanyId
(long companyId) Returns the number of commerce channels that the user has permission to view where companyId = ?.static int
filterCountByUuid
(String uuid) Returns the number of commerce channels that the user has permission to view where uuid = ?.static int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of commerce channels that the user has permission to view where uuid = ? and companyId = ?.static List<CommerceChannel>
filterFindByAccountEntryId
(long accountEntryId) Returns all the commerce channels that the user has permission to view where accountEntryId = ?.static List<CommerceChannel>
filterFindByAccountEntryId
(long accountEntryId, int start, int end) Returns a range of all the commerce channels that the user has permission to view where accountEntryId = ?.static List<CommerceChannel>
filterFindByAccountEntryId
(long accountEntryId, 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 accountEntryId = ?.static CommerceChannel[]
filterFindByAccountEntryId_PrevAndNext
(long commerceChannelId, long accountEntryId, 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 accountEntryId = ?.static List<CommerceChannel>
filterFindByCompanyId
(long companyId) Returns all the commerce channels that the user has permission to view where companyId = ?.static 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 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[]
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 List<CommerceChannel>
filterFindByUuid
(String uuid) Returns all the commerce channels that the user has permission to view where uuid = ?.static List<CommerceChannel>
filterFindByUuid
(String uuid, int start, int end) Returns a range of all the commerce channels that the user has permission to view where uuid = ?.static List<CommerceChannel>
filterFindByUuid
(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 List<CommerceChannel>
filterFindByUuid_C
(String uuid, long companyId) Returns all the commerce channels that the user has permission to view where uuid = ? and companyId = ?.static List<CommerceChannel>
filterFindByUuid_C
(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 List<CommerceChannel>
filterFindByUuid_C
(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_C_PrevAndNext
(long commerceChannelId, 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 CommerceChannel[]
filterFindByUuid_PrevAndNext
(long commerceChannelId, 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 List<CommerceChannel>
findAll()
Returns all the commerce channels.static List<CommerceChannel>
findAll
(int start, int end) Returns a range of all the commerce channels.static 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 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 List<CommerceChannel>
findByAccountEntryId
(long accountEntryId) Returns all the commerce channels where accountEntryId = ?.static List<CommerceChannel>
findByAccountEntryId
(long accountEntryId, int start, int end) Returns a range of all the commerce channels where accountEntryId = ?.static List<CommerceChannel>
findByAccountEntryId
(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns an ordered range of all the commerce channels where accountEntryId = ?.static List<CommerceChannel>
findByAccountEntryId
(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce channels where accountEntryId = ?.static CommerceChannel
findByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the first commerce channel in the ordered set where accountEntryId = ?.static CommerceChannel
findByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the last commerce channel in the ordered set where accountEntryId = ?.static CommerceChannel[]
findByAccountEntryId_PrevAndNext
(long commerceChannelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the commerce channels before and after the current commerce channel in the ordered set where accountEntryId = ?.static List<CommerceChannel>
findByCompanyId
(long companyId) Returns all the commerce channels where companyId = ?.static List<CommerceChannel>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce channels where companyId = ?.static 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 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
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 CommerceChannel
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce channel where externalReferenceCode = ? and companyId = ? or throws aNoSuchChannelException
if it could not be found.static CommerceChannel
findByPrimaryKey
(long commerceChannelId) Returns the commerce channel with the primary key or throws aNoSuchChannelException
if it could not be found.static CommerceChannel
findBySiteGroupId
(long siteGroupId) Returns the commerce channel where siteGroupId = ? or throws aNoSuchChannelException
if it could not be found.static List<CommerceChannel>
findByUuid
(String uuid) Returns all the commerce channels where uuid = ?.static List<CommerceChannel>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce channels where uuid = ?.static List<CommerceChannel>
findByUuid
(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 List<CommerceChannel>
findByUuid
(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 List<CommerceChannel>
findByUuid_C
(String uuid, long companyId) Returns all the commerce channels where uuid = ? and companyId = ?.static List<CommerceChannel>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce channels where uuid = ? and companyId = ?.static List<CommerceChannel>
findByUuid_C
(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 List<CommerceChannel>
findByUuid_C
(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_C_First
(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
(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, 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 CommerceChannel
findByUuid_First
(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
(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, 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 List<CommerceChannel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceChannel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CommerceChannel
remove
(long commerceChannelId) Removes the commerce channel with the primary key from the database.static void
Removes all the commerce channels from the database.static void
removeByAccountEntryId
(long accountEntryId) Removes all the commerce channels where accountEntryId = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce channels where companyId = ? from the database.static CommerceChannel
removeByERC_C
(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
(String uuid) Removes all the commerce channels where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce channels where uuid = ? and companyId = ? 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)
-
Constructor Details
-
CommerceChannelUtil
public CommerceChannelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceChannel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceChannel update(CommerceChannel commerceChannel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce channels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce channels
-
findByUuid
Returns a range of all the commerce channels where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels
-
findByUuid
public static List<CommerceChannel> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels
-
findByUuid
public static List<CommerceChannel> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channels
-
findByUuid_First
public static CommerceChannel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the first commerce channel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByUuid_First
public static CommerceChannel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the first commerce channel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByUuid_Last
public static CommerceChannel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the last commerce channel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByUuid_Last
public static CommerceChannel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the last commerce channel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByUuid_PrevAndNext
public static CommerceChannel[] findByUuid_PrevAndNext(long commerceChannelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the commerce channels before and after the current commerce channel in the ordered set where uuid = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
filterFindByUuid
Returns all the commerce channels that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce channels that the user has permission to view
-
filterFindByUuid
Returns a range of all the commerce channels that the user has permission to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels that the user has permission to view
-
filterFindByUuid
public static List<CommerceChannel> filterFindByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static CommerceChannel[] filterFindByUuid_PrevAndNext(long commerceChannelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException 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 = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
removeByUuid
Removes all the commerce channels where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce channels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce channels
-
filterCountByUuid
Returns the number of commerce channels that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce channels that the user has permission to view
-
findByUuid_C
Returns all the commerce channels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce channels
-
findByUuid_C
Returns a range of all the commerce channels where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce channels
-
findByUuid_C
public static List<CommerceChannel> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels
-
findByUuid_C
public static List<CommerceChannel> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channels
-
findByUuid_C_First
public static CommerceChannel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the first commerce channel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByUuid_C_First
public static CommerceChannel fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByUuid_C_Last
public static CommerceChannel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the last commerce channel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByUuid_C_Last
public static CommerceChannel fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByUuid_C_PrevAndNext
public static CommerceChannel[] findByUuid_C_PrevAndNext(long commerceChannelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the commerce channels before and after the current commerce channel in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
filterFindByUuid_C
Returns all the commerce channels that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce channels that the user has permission to view
-
filterFindByUuid_C
public static List<CommerceChannel> filterFindByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce channels that the user has permission to view
-
filterFindByUuid_C
public static List<CommerceChannel> filterFindByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static CommerceChannel[] filterFindByUuid_C_PrevAndNext(long commerceChannelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException 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 = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channeluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
removeByUuid_C
Removes all the commerce channels where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce channels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce channels
-
filterCountByUuid_C
Returns the number of commerce channels that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce channels that the user has permission to view
-
findByCompanyId
Returns all the commerce channels where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce channels
-
findByCompanyId
Returns a range of all the commerce channels where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channels
-
findByCompanyId_First
public static CommerceChannel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the first commerce channel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByCompanyId_Last
public static CommerceChannel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the last commerce channel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByCompanyId_Last
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByCompanyId_PrevAndNext
public static CommerceChannel[] findByCompanyId_PrevAndNext(long commerceChannelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the commerce channels before and after the current commerce channel in the ordered set where companyId = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channelcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
filterFindByCompanyId
Returns all the commerce channels that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce channels that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the commerce channels that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels that the user has permission to view
-
filterFindByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static CommerceChannel[] filterFindByCompanyId_PrevAndNext(long commerceChannelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException 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 = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channelcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce channels where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of commerce channels where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce channels
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of commerce channels that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce channels that the user has permission to view
-
findByAccountEntryId
Returns all the commerce channels where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the matching commerce channels
-
findByAccountEntryId
Returns a range of all the commerce channels where accountEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels
-
findByAccountEntryId
public static List<CommerceChannel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns an ordered range of all the commerce channels where accountEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
accountEntryId
- the account entry 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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels
-
findByAccountEntryId
public static List<CommerceChannel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce channels where accountEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
accountEntryId
- the account entry 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce channels
-
findByAccountEntryId_First
public static CommerceChannel findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the first commerce channel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByAccountEntryId_First
public static CommerceChannel fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the first commerce channel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByAccountEntryId_Last
public static CommerceChannel findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the last commerce channel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByAccountEntryId_Last
public static CommerceChannel fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns the last commerce channel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce channel, or
null
if a matching commerce channel could not be found
-
findByAccountEntryId_PrevAndNext
public static CommerceChannel[] findByAccountEntryId_PrevAndNext(long commerceChannelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException Returns the commerce channels before and after the current commerce channel in the ordered set where accountEntryId = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channelaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
filterFindByAccountEntryId
Returns all the commerce channels that the user has permission to view where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the matching commerce channels that the user has permission to view
-
filterFindByAccountEntryId
public static List<CommerceChannel> filterFindByAccountEntryId(long accountEntryId, int start, int end) Returns a range of all the commerce channels that the user has permission to view where accountEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of matching commerce channels that the user has permission to view
-
filterFindByAccountEntryId
public static List<CommerceChannel> filterFindByAccountEntryId(long accountEntryId, 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 accountEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
accountEntryId
- the account entry 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 (optionallynull
)- Returns:
- the ordered range of matching commerce channels that the user has permission to view
-
filterFindByAccountEntryId_PrevAndNext
public static CommerceChannel[] filterFindByAccountEntryId_PrevAndNext(long commerceChannelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) throws NoSuchChannelException 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 accountEntryId = ?.- Parameters:
commerceChannelId
- the primary key of the current commerce channelaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
removeByAccountEntryId
public static void removeByAccountEntryId(long accountEntryId) Removes all the commerce channels where accountEntryId = ? from the database.- Parameters:
accountEntryId
- the account entry ID
-
countByAccountEntryId
public static int countByAccountEntryId(long accountEntryId) Returns the number of commerce channels where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the number of matching commerce channels
-
filterCountByAccountEntryId
public static int filterCountByAccountEntryId(long accountEntryId) Returns the number of commerce channels that the user has permission to view where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the number of matching commerce channels that the user has permission to view
-
findBySiteGroupId
Returns the commerce channel where siteGroupId = ? or throws aNoSuchChannelException
if it could not be found.- Parameters:
siteGroupId
- the site group ID- Returns:
- the matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchBySiteGroupId
Returns the commerce channel where siteGroupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
siteGroupId
- the site group ID- Returns:
- the matching commerce channel, or
null
if a matching commerce channel could not be found
-
fetchBySiteGroupId
Returns the commerce channel where siteGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
siteGroupId
- the site group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce channel, or
null
if a matching commerce channel could not be found
-
removeBySiteGroupId
Removes the commerce channel where siteGroupId = ? from the database.- Parameters:
siteGroupId
- the site group ID- Returns:
- the commerce channel that was removed
- Throws:
NoSuchChannelException
-
countBySiteGroupId
public static int countBySiteGroupId(long siteGroupId) Returns the number of commerce channels where siteGroupId = ?.- Parameters:
siteGroupId
- the site group ID- Returns:
- the number of matching commerce channels
-
findByERC_C
public static CommerceChannel findByERC_C(String externalReferenceCode, long companyId) throws NoSuchChannelException Returns the commerce channel where externalReferenceCode = ? and companyId = ? or throws aNoSuchChannelException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce channel
- Throws:
NoSuchChannelException
- if a matching commerce channel could not be foundNoSuchChannelException
-
fetchByERC_C
Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce channel, or
null
if a matching commerce channel could not be found
-
fetchByERC_C
public static CommerceChannel fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce channel where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce channel, or
null
if a matching commerce channel could not be found
-
removeByERC_C
public static CommerceChannel removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchChannelException Removes the commerce channel where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce channel that was removed
- Throws:
NoSuchChannelException
-
countByERC_C
Returns the number of commerce channels where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce channels
-
cacheResult
Caches the commerce channel in the entity cache if it is enabled.- Parameters:
commerceChannel
- the commerce channel
-
cacheResult
Caches the commerce channels in the entity cache if it is enabled.- Parameters:
commerceChannels
- the commerce channels
-
create
Creates a new commerce channel with the primary key. Does not add the commerce channel to the database.- Parameters:
commerceChannelId
- the primary key for the new commerce channel- Returns:
- the new commerce channel
-
remove
Removes the commerce channel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceChannelId
- the primary key of the commerce channel- Returns:
- the commerce channel that was removed
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
updateImpl
-
findByPrimaryKey
public static CommerceChannel findByPrimaryKey(long commerceChannelId) throws NoSuchChannelException Returns the commerce channel with the primary key or throws aNoSuchChannelException
if it could not be found.- Parameters:
commerceChannelId
- the primary key of the commerce channel- Returns:
- the commerce channel
- Throws:
NoSuchChannelException
- if a commerce channel with the primary key could not be foundNoSuchChannelException
-
fetchByPrimaryKey
Returns the commerce channel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceChannelId
- the primary key of the commerce channel- Returns:
- the commerce channel, or
null
if a commerce channel with the primary key could not be found
-
findAll
Returns all the commerce channels.- Returns:
- the commerce channels
-
findAll
Returns a range of all the commerce channels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)- Returns:
- the range of commerce channels
-
findAll
public static List<CommerceChannel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator) Returns an ordered range of all the commerce channels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce channels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceChannelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce channels
-
removeAll
public static void removeAll()Removes all the commerce channels from the database. -
countAll
public static int countAll()Returns the number of commerce channels.- Returns:
- the number of commerce channels
-
getPersistence
-
setPersistence
-