@ProviderType public interface CommerceChannelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceChannel>
Caching information and settings can be found in portal.properties
CommerceChannelUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceChannel commerceChannel)
Caches the commerce channel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceChannel> commerceChannels)
Caches the commerce channels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce channels.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce channels where companyId = ? and externalReferenceCode = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of commerce channels where companyId = ?.
|
int |
countBySiteGroupId(long siteGroupId)
Returns the number of commerce channels where siteGroupId = ?.
|
CommerceChannel |
create(long commerceChannelId)
Creates a new commerce channel with the primary key.
|
CommerceChannel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce channel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
CommerceChannel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce channel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceChannel |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where companyId = ?.
|
CommerceChannel |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where companyId = ?.
|
CommerceChannel |
fetchByPrimaryKey(long commerceChannelId)
Returns the commerce channel with the primary key or returns
null if it could not be found. |
CommerceChannel |
fetchBySiteGroupId(long siteGroupId)
Returns the commerce channel where siteGroupId = ? or returns
null if it could not be found. |
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. |
int |
filterCountByCompanyId(long companyId)
Returns the number of commerce channels that the user has permission to view where companyId = ?.
|
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 = ?.
|
java.util.List<CommerceChannel> |
filterFindByCompanyId(long companyId)
Returns all the commerce channels that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceChannel> |
findAll()
Returns all the commerce channels.
|
java.util.List<CommerceChannel> |
findAll(int start,
int end)
Returns a range of all the commerce channels.
|
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.
|
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.
|
CommerceChannel |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce channel where companyId = ? and externalReferenceCode = ? or throws a
NoSuchChannelException if it could not be found. |
CommerceChannel |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the first commerce channel in the ordered set where companyId = ?.
|
CommerceChannel |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceChannel> orderByComparator)
Returns the last commerce channel in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<CommerceChannel> |
findByCompanyId(long companyId)
Returns all the commerce channels where companyId = ?.
|
java.util.List<CommerceChannel> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce channels where companyId = ?.
|
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 = ?.
|
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 = ?.
|
CommerceChannel |
findByPrimaryKey(long commerceChannelId)
Returns the commerce channel with the primary key or throws a
NoSuchChannelException if it could not be found. |
CommerceChannel |
findBySiteGroupId(long siteGroupId)
Returns the commerce channel where siteGroupId = ? or throws a
NoSuchChannelException if it could not be found. |
CommerceChannel |
remove(long commerceChannelId)
Removes the commerce channel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce channels from the database.
|
CommerceChannel |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce channel where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the commerce channels where companyId = ? from the database.
|
CommerceChannel |
removeBySiteGroupId(long siteGroupId)
Removes the commerce channel where siteGroupId = ? from the database.
|
CommerceChannel |
updateImpl(CommerceChannel commerceChannel) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceChannel> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCommerceChannel 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 foundCommerceChannel 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 foundCommerceChannel 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 foundCommerceChannel 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 foundCommerceChannel[] 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 foundjava.util.List<CommerceChannel> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDCommerceChannel 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 foundCommerceChannel 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 foundCommerceChannel 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 foundCommerceChannel removeBySiteGroupId(long siteGroupId) throws NoSuchChannelException
siteGroupId
- the site group IDNoSuchChannelException
int countBySiteGroupId(long siteGroupId)
siteGroupId
- the site group IDCommerceChannel findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchChannelException
NoSuchChannelException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchChannelException
- if a matching commerce channel could not be foundCommerceChannel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce channel could not be foundCommerceChannel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce channel could not be foundCommerceChannel removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchChannelException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchChannelException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CommerceChannel commerceChannel)
commerceChannel
- the commerce channelvoid cacheResult(java.util.List<CommerceChannel> commerceChannels)
commerceChannels
- the commerce channelsCommerceChannel create(long commerceChannelId)
commerceChannelId
- the primary key for the new commerce channelCommerceChannel remove(long commerceChannelId) throws NoSuchChannelException
commerceChannelId
- the primary key of the commerce channelNoSuchChannelException
- if a commerce channel with the primary key could not be foundCommerceChannel updateImpl(CommerceChannel commerceChannel)
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 foundCommerceChannel 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 foundjava.util.List<CommerceChannel> findAll()
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)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
)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 cachevoid removeAll()
int countAll()