@ProviderType public interface CampaignPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Campaign>
Caching information and settings can be found in portal.properties
com.liferay.content.targeting.service.persistence.impl.CampaignPersistenceImpl
,
CampaignUtil
Modifier and Type | Method and Description |
---|---|
void |
addUserSegment(long pk,
long userSegmentPK)
Adds an association between the campaign and the user segment.
|
void |
addUserSegment(long pk,
UserSegment userSegment)
Adds an association between the campaign and the user segment.
|
void |
addUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Adds an association between the campaign and the user segments.
|
void |
addUserSegments(long pk,
long[] userSegmentPKs)
Adds an association between the campaign and the user segments.
|
void |
cacheResult(Campaign campaign)
Caches the campaign in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Campaign> campaigns)
Caches the campaigns in the entity cache if it is enabled.
|
void |
clearUserSegments(long pk)
Clears all associations between the campaign and its user segments.
|
boolean |
containsUserSegment(long pk,
long userSegmentPK)
Returns
true if the user segment is associated with the campaign. |
boolean |
containsUserSegments(long pk)
Returns
true if the campaign has any user segments associated with it. |
int |
countAll()
Returns the number of campaigns.
|
int |
countByG_U(long[] groupIds,
long userId)
Returns the number of campaigns where groupId = any ? and userId = ?.
|
int |
countByG_U(long groupId,
long userId)
Returns the number of campaigns where groupId = ? and userId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of campaigns where groupId = ?.
|
int |
countByGroupId(long[] groupIds)
Returns the number of campaigns where groupId = any ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of campaigns where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of campaigns where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of campaigns where uuid = ?.
|
Campaign |
create(long campaignId)
Creates a new campaign with the primary key.
|
Campaign |
fetchByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ? and userId = ?.
|
Campaign |
fetchByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ? and userId = ?.
|
Campaign |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ?.
|
Campaign |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ?.
|
Campaign |
fetchByPrimaryKey(long campaignId)
Returns the campaign with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,Campaign> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
Campaign |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where uuid = ? and companyId = ?.
|
Campaign |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where uuid = ? and companyId = ?.
|
Campaign |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where uuid = ?.
|
Campaign |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the campaign where uuid = ? and groupId = ? or returns
null if it could not be found. |
Campaign |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the campaign where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
Campaign |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where uuid = ?.
|
int |
filterCountByG_U(long[] groupIds,
long userId)
Returns the number of campaigns that the user has permission to view where groupId = any ? and userId = ?.
|
int |
filterCountByG_U(long groupId,
long userId)
Returns the number of campaigns that the user has permission to view where groupId = ? and userId = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of campaigns that the user has permission to view where groupId = ?.
|
int |
filterCountByGroupId(long[] groupIds)
Returns the number of campaigns that the user has permission to view where groupId = any ?.
|
Campaign[] |
filterFindByG_U_PrevAndNext(long campaignId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set of campaigns that the user has permission to view where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long[] groupIds,
long userId)
Returns all the campaigns that the user has permission to view where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long[] groupIds,
long userId,
int start,
int end)
Returns a range of all the campaigns that the user has permission to view where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns that the user has permission to view where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long groupId,
long userId)
Returns all the campaigns that the user has permission to view where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the campaigns that the user has permission to view where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
filterFindByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns that the user has permissions to view where groupId = ? and userId = ?.
|
Campaign[] |
filterFindByGroupId_PrevAndNext(long campaignId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set of campaigns that the user has permission to view where groupId = ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long groupId)
Returns all the campaigns that the user has permission to view where groupId = ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long[] groupIds)
Returns all the campaigns that the user has permission to view where groupId = any ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the campaigns that the user has permission to view where groupId = any ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns that the user has permission to view where groupId = any ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the campaigns that the user has permission to view where groupId = ?.
|
java.util.List<Campaign> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns that the user has permissions to view where groupId = ?.
|
java.util.List<Campaign> |
findAll()
Returns all the campaigns.
|
java.util.List<Campaign> |
findAll(int start,
int end)
Returns a range of all the campaigns.
|
java.util.List<Campaign> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns.
|
java.util.List<Campaign> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns.
|
Campaign |
findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ? and userId = ?.
|
Campaign |
findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ? and userId = ?.
|
Campaign[] |
findByG_U_PrevAndNext(long campaignId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long[] groupIds,
long userId)
Returns all the campaigns where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long[] groupIds,
long userId,
int start,
int end)
Returns a range of all the campaigns where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where groupId = any ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where groupId = ? and userId = ?, optionally using the finder cache.
|
java.util.List<Campaign> |
findByG_U(long groupId,
long userId)
Returns all the campaigns where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the campaigns where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where groupId = ? and userId = ?.
|
java.util.List<Campaign> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where groupId = ? and userId = ?.
|
Campaign |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ?.
|
Campaign |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ?.
|
Campaign[] |
findByGroupId_PrevAndNext(long campaignId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set where groupId = ?.
|
java.util.List<Campaign> |
findByGroupId(long groupId)
Returns all the campaigns where groupId = ?.
|
java.util.List<Campaign> |
findByGroupId(long[] groupIds)
Returns all the campaigns where groupId = any ?.
|
java.util.List<Campaign> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the campaigns where groupId = any ?.
|
java.util.List<Campaign> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where groupId = any ?.
|
java.util.List<Campaign> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where groupId = ?, optionally using the finder cache.
|
java.util.List<Campaign> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the campaigns where groupId = ?.
|
java.util.List<Campaign> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where groupId = ?.
|
java.util.List<Campaign> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where groupId = ?.
|
Campaign |
findByPrimaryKey(long campaignId)
Returns the campaign with the primary key or throws a
NoSuchCampaignException if it could not be found. |
Campaign |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where uuid = ? and companyId = ?.
|
Campaign |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where uuid = ? and companyId = ?.
|
Campaign[] |
findByUuid_C_PrevAndNext(long campaignId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<Campaign> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the campaigns where uuid = ? and companyId = ?.
|
java.util.List<Campaign> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the campaigns where uuid = ? and companyId = ?.
|
java.util.List<Campaign> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where uuid = ? and companyId = ?.
|
java.util.List<Campaign> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where uuid = ? and companyId = ?.
|
Campaign |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where uuid = ?.
|
Campaign |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the campaign where uuid = ? and groupId = ? or throws a
NoSuchCampaignException if it could not be found. |
Campaign |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where uuid = ?.
|
Campaign[] |
findByUuid_PrevAndNext(long campaignId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the campaigns before and after the current campaign in the ordered set where uuid = ?.
|
java.util.List<Campaign> |
findByUuid(java.lang.String uuid)
Returns all the campaigns where uuid = ?.
|
java.util.List<Campaign> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the campaigns where uuid = ?.
|
java.util.List<Campaign> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns where uuid = ?.
|
java.util.List<Campaign> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the campaigns where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
long[] |
getUserSegmentPrimaryKeys(long pk)
Returns the primaryKeys of user segments associated with the campaign.
|
java.util.List<UserSegment> |
getUserSegments(long pk)
Returns all the user segments associated with the campaign.
|
java.util.List<UserSegment> |
getUserSegments(long pk,
int start,
int end)
Returns a range of all the user segments associated with the campaign.
|
java.util.List<UserSegment> |
getUserSegments(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments associated with the campaign.
|
int |
getUserSegmentsSize(long pk)
Returns the number of user segments associated with the campaign.
|
Campaign |
remove(long campaignId)
Removes the campaign with the primary key from the database.
|
void |
removeAll()
Removes all the campaigns from the database.
|
void |
removeByG_U(long groupId,
long userId)
Removes all the campaigns where groupId = ? and userId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the campaigns where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the campaigns where uuid = ? and companyId = ? from the database.
|
Campaign |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the campaign where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the campaigns where uuid = ? from the database.
|
void |
removeUserSegment(long pk,
long userSegmentPK)
Removes the association between the campaign and the user segment.
|
void |
removeUserSegment(long pk,
UserSegment userSegment)
Removes the association between the campaign and the user segment.
|
void |
removeUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Removes the association between the campaign and the user segments.
|
void |
removeUserSegments(long pk,
long[] userSegmentPKs)
Removes the association between the campaign and the user segments.
|
void |
setUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Sets the user segments associated with the campaign, removing and adding associations as necessary.
|
void |
setUserSegments(long pk,
long[] userSegmentPKs)
Sets the user segments associated with the campaign, removing and adding associations as necessary.
|
Campaign |
updateImpl(Campaign campaign) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<Campaign> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCampaign findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign[] findByUuid_PrevAndNext(long campaignId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaignuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidCampaign findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCampaignException
NoSuchCampaignException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching campaign could not be foundCampaign fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching campaign could not be foundCampaign removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCampaignException
uuid
- the uuidgroupId
- the group IDNoSuchCampaignException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<Campaign> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCampaign findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign[] findByUuid_C_PrevAndNext(long campaignId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaignuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<Campaign> findByGroupId(long groupId)
groupId
- the group IDjava.util.List<Campaign> findByGroupId(long groupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCampaign findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign[] findByGroupId_PrevAndNext(long campaignId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaigngroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundjava.util.List<Campaign> filterFindByGroupId(long groupId)
groupId
- the group IDjava.util.List<Campaign> filterFindByGroupId(long groupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)Campaign[] filterFindByGroupId_PrevAndNext(long campaignId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaigngroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundjava.util.List<Campaign> filterFindByGroupId(long[] groupIds)
groupIds
- the group IDsjava.util.List<Campaign> filterFindByGroupId(long[] groupIds, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> filterFindByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByGroupId(long[] groupIds)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsjava.util.List<Campaign> findByGroupId(long[] groupIds, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long[] groupIds)
groupIds
- the group IDsint filterCountByGroupId(long groupId)
groupId
- the group IDint filterCountByGroupId(long[] groupIds)
groupIds
- the group IDsjava.util.List<Campaign> findByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDjava.util.List<Campaign> findByG_U(long groupId, long userId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCampaign findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a matching campaign could not be foundCampaign fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching campaign could not be foundCampaign[] findByG_U_PrevAndNext(long campaignId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaigngroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundjava.util.List<Campaign> filterFindByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDjava.util.List<Campaign> filterFindByG_U(long groupId, long userId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> filterFindByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)Campaign[] filterFindByG_U_PrevAndNext(long campaignId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) throws NoSuchCampaignException
campaignId
- the primary key of the current campaigngroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCampaignException
- if a campaign with the primary key could not be foundjava.util.List<Campaign> filterFindByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDjava.util.List<Campaign> filterFindByG_U(long[] groupIds, long userId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> filterFindByG_U(long[] groupIds, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByG_U(long[] groupIds, long userId)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsuserId
- the user IDjava.util.List<Campaign> findByG_U(long[] groupIds, long userId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findByG_U(long[] groupIds, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupIds
- the group IDsuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findByG_U(long[] groupIds, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint countByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint countByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDint filterCountByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint filterCountByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDvoid cacheResult(Campaign campaign)
campaign
- the campaignvoid cacheResult(java.util.List<Campaign> campaigns)
campaigns
- the campaignsCampaign create(long campaignId)
campaignId
- the primary key for the new campaignCampaign remove(long campaignId) throws NoSuchCampaignException
campaignId
- the primary key of the campaignNoSuchCampaignException
- if a campaign with the primary key could not be foundCampaign findByPrimaryKey(long campaignId) throws NoSuchCampaignException
NoSuchCampaignException
if it could not be found.campaignId
- the primary key of the campaignNoSuchCampaignException
- if a campaign with the primary key could not be foundCampaign fetchByPrimaryKey(long campaignId)
null
if it could not be found.campaignId
- the primary key of the campaignnull
if a campaign with the primary key could not be foundjava.util.Map<java.io.Serializable,Campaign> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<Campaign>
java.util.List<Campaign> findAll()
java.util.List<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<Campaign> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Campaign> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
long[] getUserSegmentPrimaryKeys(long pk)
pk
- the primary key of the campaignjava.util.List<UserSegment> getUserSegments(long pk)
pk
- the primary key of the campaignjava.util.List<UserSegment> getUserSegments(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the campaignstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)java.util.List<UserSegment> getUserSegments(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CampaignModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the campaignstart
- the lower bound of the range of campaignsend
- the upper bound of the range of campaigns (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)int getUserSegmentsSize(long pk)
pk
- the primary key of the campaignboolean containsUserSegment(long pk, long userSegmentPK)
true
if the user segment is associated with the campaign.pk
- the primary key of the campaignuserSegmentPK
- the primary key of the user segmenttrue
if the user segment is associated with the campaign; false
otherwiseboolean containsUserSegments(long pk)
true
if the campaign has any user segments associated with it.pk
- the primary key of the campaign to check for associations with user segmentstrue
if the campaign has any user segments associated with it; false
otherwisevoid addUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the campaignuserSegmentPK
- the primary key of the user segmentvoid addUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the campaignuserSegment
- the user segmentvoid addUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segmentsvoid addUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segmentsvoid clearUserSegments(long pk)
pk
- the primary key of the campaign to clear the associated user segments fromvoid removeUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the campaignuserSegmentPK
- the primary key of the user segmentvoid removeUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the campaignuserSegment
- the user segmentvoid removeUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segmentsvoid removeUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segmentsvoid setUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segments to be associated with the campaignvoid setUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segments to be associated with the campaignjava.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<Campaign>