@ProviderType
public class CampaignUtil
extends java.lang.Object
com.liferay.content.targeting.service.persistence.impl.CampaignPersistenceImpl
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
CampaignPersistence
,
com.liferay.content.targeting.service.persistence.impl.CampaignPersistenceImpl
Constructor and Description |
---|
CampaignUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addUserSegment(long pk,
long userSegmentPK)
Adds an association between the campaign and the user segment.
|
static void |
addUserSegment(long pk,
UserSegment userSegment)
Adds an association between the campaign and the user segment.
|
static void |
addUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Adds an association between the campaign and the user segments.
|
static void |
addUserSegments(long pk,
long[] userSegmentPKs)
Adds an association between the campaign and the user segments.
|
static void |
cacheResult(Campaign campaign)
Caches the campaign in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<Campaign> campaigns)
Caches the campaigns in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Campaign campaign) |
static void |
clearUserSegments(long pk)
Clears all associations between the campaign and its user segments.
|
static boolean |
containsUserSegment(long pk,
long userSegmentPK)
Returns
true if the user segment is associated with the campaign. |
static boolean |
containsUserSegments(long pk)
Returns
true if the campaign has any user segments associated with it. |
static int |
countAll()
Returns the number of campaigns.
|
static int |
countByG_U(long[] groupIds,
long userId)
Returns the number of campaigns where groupId = any ? and userId = ?.
|
static int |
countByG_U(long groupId,
long userId)
Returns the number of campaigns where groupId = ? and userId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of campaigns where groupId = ?.
|
static int |
countByGroupId(long[] groupIds)
Returns the number of campaigns where groupId = any ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of campaigns where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of campaigns where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of campaigns where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Campaign |
create(long campaignId)
Creates a new campaign with the primary key.
|
static 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 = ?.
|
static 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 = ?.
|
static Campaign |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ?.
|
static Campaign |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ?.
|
static Campaign |
fetchByPrimaryKey(long campaignId)
Returns the campaign with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Campaign> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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. |
static 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. |
static 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 = ?.
|
static int |
filterCountByG_U(long[] groupIds,
long userId)
Returns the number of campaigns that the user has permission to view where groupId = any ? and userId = ?.
|
static int |
filterCountByG_U(long groupId,
long userId)
Returns the number of campaigns that the user has permission to view where groupId = ? and userId = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of campaigns that the user has permission to view where groupId = ?.
|
static int |
filterCountByGroupId(long[] groupIds)
Returns the number of campaigns that the user has permission to view where groupId = any ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
filterFindByGroupId(long groupId)
Returns all the campaigns that the user has permission to view where groupId = ?.
|
static java.util.List<Campaign> |
filterFindByGroupId(long[] groupIds)
Returns all the campaigns that the user has permission to view where groupId = any ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findAll()
Returns all the campaigns.
|
static java.util.List<Campaign> |
findAll(int start,
int end)
Returns a range of all the campaigns.
|
static 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.
|
static 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.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findByG_U(long[] groupIds,
long userId)
Returns all the campaigns where groupId = any ? and userId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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.
|
static java.util.List<Campaign> |
findByG_U(long groupId,
long userId)
Returns all the campaigns where groupId = ? and userId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static Campaign |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the first campaign in the ordered set where groupId = ?.
|
static Campaign |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns the last campaign in the ordered set where groupId = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findByGroupId(long groupId)
Returns all the campaigns where groupId = ?.
|
static java.util.List<Campaign> |
findByGroupId(long[] groupIds)
Returns all the campaigns where groupId = any ?.
|
static java.util.List<Campaign> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the campaigns where groupId = any ?.
|
static 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 ?.
|
static 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.
|
static java.util.List<Campaign> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the campaigns where groupId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static Campaign |
findByPrimaryKey(long campaignId)
Returns the campaign with the primary key or throws a
NoSuchCampaignException if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the campaigns where uuid = ? and companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findByUuid(java.lang.String uuid)
Returns all the campaigns where uuid = ?.
|
static java.util.List<Campaign> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the campaigns where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<Campaign> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Campaign> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Campaign> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CampaignPersistence |
getPersistence() |
static long[] |
getUserSegmentPrimaryKeys(long pk)
Returns the primaryKeys of user segments associated with the campaign.
|
static java.util.List<UserSegment> |
getUserSegments(long pk)
Returns all the user segments associated with the campaign.
|
static java.util.List<UserSegment> |
getUserSegments(long pk,
int start,
int end)
Returns a range of all the user segments associated with the campaign.
|
static 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.
|
static int |
getUserSegmentsSize(long pk)
Returns the number of user segments associated with the campaign.
|
static Campaign |
remove(long campaignId)
Removes the campaign with the primary key from the database.
|
static void |
removeAll()
Removes all the campaigns from the database.
|
static void |
removeByG_U(long groupId,
long userId)
Removes all the campaigns where groupId = ? and userId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the campaigns where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the campaigns where uuid = ? and companyId = ? from the database.
|
static Campaign |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the campaign where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the campaigns where uuid = ? from the database.
|
static void |
removeUserSegment(long pk,
long userSegmentPK)
Removes the association between the campaign and the user segment.
|
static void |
removeUserSegment(long pk,
UserSegment userSegment)
Removes the association between the campaign and the user segment.
|
static void |
removeUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Removes the association between the campaign and the user segments.
|
static void |
removeUserSegments(long pk,
long[] userSegmentPKs)
Removes the association between the campaign and the user segments.
|
static void |
setUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Sets the user segments associated with the campaign, removing and adding associations as necessary.
|
static void |
setUserSegments(long pk,
long[] userSegmentPKs)
Sets the user segments associated with the campaign, removing and adding associations as necessary.
|
static Campaign |
update(Campaign campaign) |
static Campaign |
update(Campaign campaign,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Campaign |
updateImpl(Campaign campaign) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Campaign campaign)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<Campaign> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Campaign> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Campaign> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Campaign update(Campaign campaign)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Campaign update(Campaign campaign, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Campaign> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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)public static 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
)public static 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 cachepublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign[] 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 foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCampaignException
uuid
- the uuidgroupId
- the group IDNoSuchCampaignException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<Campaign> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign[] 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 foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Campaign> findByGroupId(long groupId)
groupId
- the group IDpublic static java.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)public static 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
)public static 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 cachepublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign[] 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 foundpublic static java.util.List<Campaign> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.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)public static 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
)public static 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 foundpublic static java.util.List<Campaign> filterFindByGroupId(long[] groupIds)
groupIds
- the group IDspublic static java.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)public static 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
)public static 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 IDspublic static java.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)public static 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
)public static 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 cachepublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long[] groupIds)
groupIds
- the group IDspublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long[] groupIds)
groupIds
- the group IDspublic static java.util.List<Campaign> findByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static java.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)public static 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
)public static 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 cachepublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static Campaign[] 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 foundpublic static java.util.List<Campaign> filterFindByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static java.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)public static 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
)public static 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 foundpublic static java.util.List<Campaign> filterFindByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDpublic static java.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)public static 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
)public static 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 IDpublic static java.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)public static 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
)public static 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 cachepublic static void removeByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static int countByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static int countByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDpublic static int filterCountByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static int filterCountByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDpublic static void cacheResult(Campaign campaign)
campaign
- the campaignpublic static void cacheResult(java.util.List<Campaign> campaigns)
campaigns
- the campaignspublic static Campaign create(long campaignId)
campaignId
- the primary key for the new campaignpublic static Campaign remove(long campaignId) throws NoSuchCampaignException
campaignId
- the primary key of the campaignNoSuchCampaignException
- if a campaign with the primary key could not be foundpublic static Campaign 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 foundpublic static Campaign 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 foundpublic static java.util.Map<java.io.Serializable,Campaign> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<Campaign> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static long[] getUserSegmentPrimaryKeys(long pk)
pk
- the primary key of the campaignpublic static java.util.List<UserSegment> getUserSegments(long pk)
pk
- the primary key of the campaignpublic static java.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)public static 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
)public static int getUserSegmentsSize(long pk)
pk
- the primary key of the campaignpublic static boolean 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
otherwisepublic static boolean 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
otherwisepublic static void addUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the campaignuserSegmentPK
- the primary key of the user segmentpublic static void addUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the campaignuserSegment
- the user segmentpublic static void addUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segmentspublic static void addUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segmentspublic static void clearUserSegments(long pk)
pk
- the primary key of the campaign to clear the associated user segments frompublic static void removeUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the campaignuserSegmentPK
- the primary key of the user segmentpublic static void removeUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the campaignuserSegment
- the user segmentpublic static void removeUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segmentspublic static void removeUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segmentspublic static void setUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the campaignuserSegmentPKs
- the primary keys of the user segments to be associated with the campaignpublic static void setUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the campaignuserSegments
- the user segments to be associated with the campaignpublic static java.util.Set<java.lang.String> getBadColumnNames()
public static CampaignPersistence getPersistence()