@ProviderType
public class UserSegmentUtil
extends java.lang.Object
com.liferay.content.targeting.service.persistence.impl.UserSegmentPersistenceImpl 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
UserSegmentPersistence,
com.liferay.content.targeting.service.persistence.impl.UserSegmentPersistenceImpl| Constructor and Description |
|---|
UserSegmentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCampaign(long pk,
Campaign campaign)
Adds an association between the user segment and the campaign.
|
static void |
addCampaign(long pk,
long campaignPK)
Adds an association between the user segment and the campaign.
|
static void |
addCampaigns(long pk,
java.util.List<Campaign> campaigns)
Adds an association between the user segment and the campaigns.
|
static void |
addCampaigns(long pk,
long[] campaignPKs)
Adds an association between the user segment and the campaigns.
|
static void |
addTactic(long pk,
long tacticPK)
Adds an association between the user segment and the tactic.
|
static void |
addTactic(long pk,
Tactic tactic)
Adds an association between the user segment and the tactic.
|
static void |
addTactics(long pk,
java.util.List<Tactic> tactics)
Adds an association between the user segment and the tactics.
|
static void |
addTactics(long pk,
long[] tacticPKs)
Adds an association between the user segment and the tactics.
|
static void |
cacheResult(java.util.List<UserSegment> userSegments)
Caches the user segments in the entity cache if it is enabled.
|
static void |
cacheResult(UserSegment userSegment)
Caches the user segment in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(UserSegment userSegment) |
static void |
clearCampaigns(long pk)
Clears all associations between the user segment and its campaigns.
|
static void |
clearTactics(long pk)
Clears all associations between the user segment and its tactics.
|
static boolean |
containsCampaign(long pk,
long campaignPK)
Returns
true if the campaign is associated with the user segment. |
static boolean |
containsCampaigns(long pk)
Returns
true if the user segment has any campaigns associated with it. |
static boolean |
containsTactic(long pk,
long tacticPK)
Returns
true if the tactic is associated with the user segment. |
static boolean |
containsTactics(long pk)
Returns
true if the user segment has any tactics associated with it. |
static int |
countAll()
Returns the number of user segments.
|
static int |
countByAssetCategoryId(long assetCategoryId)
Returns the number of user segments where assetCategoryId = ?.
|
static int |
countByG_U(long[] groupIds,
long userId)
Returns the number of user segments where groupId = any ? and userId = ?.
|
static int |
countByG_U(long groupId,
long userId)
Returns the number of user segments where groupId = ? and userId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of user segments where groupId = ?.
|
static int |
countByGroupId(long[] groupIds)
Returns the number of user segments where groupId = any ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of user segments where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of user segments where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of user segments where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static UserSegment |
create(long userSegmentId)
Creates a new user segment with the primary key.
|
static UserSegment |
fetchByAssetCategoryId(long assetCategoryId)
Returns the user segment where assetCategoryId = ? or returns
null if it could not be found. |
static UserSegment |
fetchByAssetCategoryId(long assetCategoryId,
boolean retrieveFromCache)
Returns the user segment where assetCategoryId = ? or returns
null if it could not be found, optionally using the finder cache. |
static UserSegment |
fetchByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ? and userId = ?.
|
static UserSegment |
fetchByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ? and userId = ?.
|
static UserSegment |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ?.
|
static UserSegment |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ?.
|
static UserSegment |
fetchByPrimaryKey(long userSegmentId)
Returns the user segment with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,UserSegment> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static UserSegment |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where uuid = ? and companyId = ?.
|
static UserSegment |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where uuid = ? and companyId = ?.
|
static UserSegment |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where uuid = ?.
|
static UserSegment |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the user segment where uuid = ? and groupId = ? or returns
null if it could not be found. |
static UserSegment |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the user segment where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static UserSegment |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where uuid = ?.
|
static int |
filterCountByG_U(long[] groupIds,
long userId)
Returns the number of user segments that the user has permission to view where groupId = any ? and userId = ?.
|
static int |
filterCountByG_U(long groupId,
long userId)
Returns the number of user segments that the user has permission to view where groupId = ? and userId = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of user segments that the user has permission to view where groupId = ?.
|
static int |
filterCountByGroupId(long[] groupIds)
Returns the number of user segments that the user has permission to view where groupId = any ?.
|
static UserSegment[] |
filterFindByG_U_PrevAndNext(long userSegmentId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set of user segments that the user has permission to view where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long[] groupIds,
long userId)
Returns all the user segments that the user has permission to view where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long[] groupIds,
long userId,
int start,
int end)
Returns a range of all the user segments that the user has permission to view where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments that the user has permission to view where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long groupId,
long userId)
Returns all the user segments that the user has permission to view where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the user segments that the user has permission to view where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
filterFindByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments that the user has permissions to view where groupId = ? and userId = ?.
|
static UserSegment[] |
filterFindByGroupId_PrevAndNext(long userSegmentId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set of user segments that the user has permission to view where groupId = ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long groupId)
Returns all the user segments that the user has permission to view where groupId = ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long[] groupIds)
Returns all the user segments that the user has permission to view where groupId = any ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the user segments that the user has permission to view where groupId = any ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments that the user has permission to view where groupId = any ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the user segments that the user has permission to view where groupId = ?.
|
static java.util.List<UserSegment> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments that the user has permissions to view where groupId = ?.
|
static java.util.List<UserSegment> |
findAll()
Returns all the user segments.
|
static java.util.List<UserSegment> |
findAll(int start,
int end)
Returns a range of all the user segments.
|
static java.util.List<UserSegment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments.
|
static java.util.List<UserSegment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments.
|
static UserSegment |
findByAssetCategoryId(long assetCategoryId)
Returns the user segment where assetCategoryId = ? or throws a
NoSuchUserSegmentException if it could not be found. |
static UserSegment |
findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ? and userId = ?.
|
static UserSegment |
findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ? and userId = ?.
|
static UserSegment[] |
findByG_U_PrevAndNext(long userSegmentId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long[] groupIds,
long userId)
Returns all the user segments where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long[] groupIds,
long userId,
int start,
int end)
Returns a range of all the user segments where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where groupId = any ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long[] groupIds,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where groupId = ? and userId = ?, optionally using the finder cache.
|
static java.util.List<UserSegment> |
findByG_U(long groupId,
long userId)
Returns all the user segments where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the user segments where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where groupId = ? and userId = ?.
|
static java.util.List<UserSegment> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where groupId = ? and userId = ?.
|
static UserSegment |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ?.
|
static UserSegment |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ?.
|
static UserSegment[] |
findByGroupId_PrevAndNext(long userSegmentId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set where groupId = ?.
|
static java.util.List<UserSegment> |
findByGroupId(long groupId)
Returns all the user segments where groupId = ?.
|
static java.util.List<UserSegment> |
findByGroupId(long[] groupIds)
Returns all the user segments where groupId = any ?.
|
static java.util.List<UserSegment> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the user segments where groupId = any ?.
|
static java.util.List<UserSegment> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where groupId = any ?.
|
static java.util.List<UserSegment> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where groupId = ?, optionally using the finder cache.
|
static java.util.List<UserSegment> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the user segments where groupId = ?.
|
static java.util.List<UserSegment> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where groupId = ?.
|
static java.util.List<UserSegment> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where groupId = ?.
|
static UserSegment |
findByPrimaryKey(long userSegmentId)
Returns the user segment with the primary key or throws a
NoSuchUserSegmentException if it could not be found. |
static UserSegment |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where uuid = ? and companyId = ?.
|
static UserSegment |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where uuid = ? and companyId = ?.
|
static UserSegment[] |
findByUuid_C_PrevAndNext(long userSegmentId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<UserSegment> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the user segments where uuid = ? and companyId = ?.
|
static java.util.List<UserSegment> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the user segments where uuid = ? and companyId = ?.
|
static java.util.List<UserSegment> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where uuid = ? and companyId = ?.
|
static java.util.List<UserSegment> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where uuid = ? and companyId = ?.
|
static UserSegment |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where uuid = ?.
|
static UserSegment |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the user segment where uuid = ? and groupId = ? or throws a
NoSuchUserSegmentException if it could not be found. |
static UserSegment |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where uuid = ?.
|
static UserSegment[] |
findByUuid_PrevAndNext(long userSegmentId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the user segments before and after the current user segment in the ordered set where uuid = ?.
|
static java.util.List<UserSegment> |
findByUuid(java.lang.String uuid)
Returns all the user segments where uuid = ?.
|
static java.util.List<UserSegment> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the user segments where uuid = ?.
|
static java.util.List<UserSegment> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments where uuid = ?.
|
static java.util.List<UserSegment> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user segments where uuid = ?.
|
static java.util.List<UserSegment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<UserSegment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<UserSegment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static long[] |
getCampaignPrimaryKeys(long pk)
Returns the primaryKeys of campaigns associated with the user segment.
|
static java.util.List<Campaign> |
getCampaigns(long pk)
Returns all the campaigns associated with the user segment.
|
static java.util.List<Campaign> |
getCampaigns(long pk,
int start,
int end)
Returns a range of all the campaigns associated with the user segment.
|
static java.util.List<Campaign> |
getCampaigns(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Campaign> orderByComparator)
Returns an ordered range of all the campaigns associated with the user segment.
|
static int |
getCampaignsSize(long pk)
Returns the number of campaigns associated with the user segment.
|
static UserSegmentPersistence |
getPersistence() |
static long[] |
getTacticPrimaryKeys(long pk)
Returns the primaryKeys of tactics associated with the user segment.
|
static java.util.List<Tactic> |
getTactics(long pk)
Returns all the tactics associated with the user segment.
|
static java.util.List<Tactic> |
getTactics(long pk,
int start,
int end)
Returns a range of all the tactics associated with the user segment.
|
static java.util.List<Tactic> |
getTactics(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics associated with the user segment.
|
static int |
getTacticsSize(long pk)
Returns the number of tactics associated with the user segment.
|
static UserSegment |
remove(long userSegmentId)
Removes the user segment with the primary key from the database.
|
static void |
removeAll()
Removes all the user segments from the database.
|
static UserSegment |
removeByAssetCategoryId(long assetCategoryId)
Removes the user segment where assetCategoryId = ? from the database.
|
static void |
removeByG_U(long groupId,
long userId)
Removes all the user segments where groupId = ? and userId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the user segments where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the user segments where uuid = ? and companyId = ? from the database.
|
static UserSegment |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the user segment where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the user segments where uuid = ? from the database.
|
static void |
removeCampaign(long pk,
Campaign campaign)
Removes the association between the user segment and the campaign.
|
static void |
removeCampaign(long pk,
long campaignPK)
Removes the association between the user segment and the campaign.
|
static void |
removeCampaigns(long pk,
java.util.List<Campaign> campaigns)
Removes the association between the user segment and the campaigns.
|
static void |
removeCampaigns(long pk,
long[] campaignPKs)
Removes the association between the user segment and the campaigns.
|
static void |
removeTactic(long pk,
long tacticPK)
Removes the association between the user segment and the tactic.
|
static void |
removeTactic(long pk,
Tactic tactic)
Removes the association between the user segment and the tactic.
|
static void |
removeTactics(long pk,
java.util.List<Tactic> tactics)
Removes the association between the user segment and the tactics.
|
static void |
removeTactics(long pk,
long[] tacticPKs)
Removes the association between the user segment and the tactics.
|
static void |
setCampaigns(long pk,
java.util.List<Campaign> campaigns)
Sets the campaigns associated with the user segment, removing and adding associations as necessary.
|
static void |
setCampaigns(long pk,
long[] campaignPKs)
Sets the campaigns associated with the user segment, removing and adding associations as necessary.
|
static void |
setTactics(long pk,
java.util.List<Tactic> tactics)
Sets the tactics associated with the user segment, removing and adding associations as necessary.
|
static void |
setTactics(long pk,
long[] tacticPKs)
Sets the tactics associated with the user segment, removing and adding associations as necessary.
|
static UserSegment |
update(UserSegment userSegment) |
static UserSegment |
update(UserSegment userSegment,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static UserSegment |
updateImpl(UserSegment userSegment) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(UserSegment userSegment)
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<UserSegment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<UserSegment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<UserSegment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static UserSegment update(UserSegment userSegment)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static UserSegment update(UserSegment userSegment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<UserSegment> findByUuid(java.lang.String uuid)
uuid - the uuidpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByUuid(java.lang.String uuid, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserSegment findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment[] findByUuid_PrevAndNext(long userSegmentId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment 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 UserSegment findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchUserSegmentException
NoSuchUserSegmentException if it could not be found.uuid - the uuidgroupId - the group IDNoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment 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 user segment could not be foundpublic static UserSegment 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 user segment could not be foundpublic static UserSegment removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchUserSegmentException
uuid - the uuidgroupId - the group IDNoSuchUserSegmentExceptionpublic static int countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDpublic static java.util.List<UserSegment> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByUuid_C(java.lang.String uuid, long companyId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserSegment findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment[] findByUuid_C_PrevAndNext(long userSegmentId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment 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<UserSegment> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByGroupId(long groupId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserSegment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment[] findByGroupId_PrevAndNext(long userSegmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static java.util.List<UserSegment> filterFindByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> filterFindByGroupId(long groupId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static UserSegment[] filterFindByGroupId_PrevAndNext(long userSegmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static java.util.List<UserSegment> filterFindByGroupId(long[] groupIds)
groupIds - the group IDspublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> filterFindByGroupId(long[] groupIds, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByGroupId(long[] groupIds, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (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 UserSegment findByAssetCategoryId(long assetCategoryId) throws NoSuchUserSegmentException
NoSuchUserSegmentException if it could not be found.assetCategoryId - the asset category IDNoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByAssetCategoryId(long assetCategoryId)
null if it could not be found. Uses the finder cache.assetCategoryId - the asset category IDnull if a matching user segment could not be foundpublic static UserSegment fetchByAssetCategoryId(long assetCategoryId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.assetCategoryId - the asset category IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching user segment could not be foundpublic static UserSegment removeByAssetCategoryId(long assetCategoryId) throws NoSuchUserSegmentException
assetCategoryId - the asset category IDNoSuchUserSegmentExceptionpublic static int countByAssetCategoryId(long assetCategoryId)
assetCategoryId - the asset category IDpublic static java.util.List<UserSegment> findByG_U(long groupId, long userId)
groupId - the group IDuserId - the user IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByG_U(long groupId, long userId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static UserSegment findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a matching user segment could not be foundpublic static UserSegment fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user segment could not be foundpublic static UserSegment[] findByG_U_PrevAndNext(long userSegmentId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentgroupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static java.util.List<UserSegment> filterFindByG_U(long groupId, long userId)
groupId - the group IDuserId - the user IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> filterFindByG_U(long groupId, long userId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static UserSegment[] filterFindByG_U_PrevAndNext(long userSegmentId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator) throws NoSuchUserSegmentException
userSegmentId - the primary key of the current user segmentgroupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static java.util.List<UserSegment> filterFindByG_U(long[] groupIds, long userId)
groupIds - the group IDsuserId - the user IDpublic static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> filterFindByG_U(long[] groupIds, long userId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findByG_U(long[] groupIds, long userId, 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findByG_U(long[] groupIds, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (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(UserSegment userSegment)
userSegment - the user segmentpublic static void cacheResult(java.util.List<UserSegment> userSegments)
userSegments - the user segmentspublic static UserSegment create(long userSegmentId)
userSegmentId - the primary key for the new user segmentpublic static UserSegment remove(long userSegmentId) throws NoSuchUserSegmentException
userSegmentId - the primary key of the user segmentNoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static UserSegment updateImpl(UserSegment userSegment)
public static UserSegment findByPrimaryKey(long userSegmentId) throws NoSuchUserSegmentException
NoSuchUserSegmentException if it could not be found.userSegmentId - the primary key of the user segmentNoSuchUserSegmentException - if a user segment with the primary key could not be foundpublic static UserSegment fetchByPrimaryKey(long userSegmentId)
null if it could not be found.userSegmentId - the primary key of the user segmentnull if a user segment with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,UserSegment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<UserSegment> findAll()
public static java.util.List<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<UserSegment> findAll(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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<UserSegment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> 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 UserSegmentModelImpl. 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 user segmentsend - the upper bound of the range of user segments (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[] getCampaignPrimaryKeys(long pk)
pk - the primary key of the user segmentpublic static java.util.List<Campaign> getCampaigns(long pk)
pk - the primary key of the user segmentpublic static java.util.List<Campaign> getCampaigns(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 UserSegmentModelImpl. 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 user segmentstart - the lower bound of the range of user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<Campaign> getCampaigns(long pk, 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 UserSegmentModelImpl. 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 user segmentstart - the lower bound of the range of user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static int getCampaignsSize(long pk)
pk - the primary key of the user segmentpublic static boolean containsCampaign(long pk,
long campaignPK)
true if the campaign is associated with the user segment.pk - the primary key of the user segmentcampaignPK - the primary key of the campaigntrue if the campaign is associated with the user segment; false otherwisepublic static boolean containsCampaigns(long pk)
true if the user segment has any campaigns associated with it.pk - the primary key of the user segment to check for associations with campaignstrue if the user segment has any campaigns associated with it; false otherwisepublic static void addCampaign(long pk,
long campaignPK)
pk - the primary key of the user segmentcampaignPK - the primary key of the campaignpublic static void addCampaign(long pk,
Campaign campaign)
pk - the primary key of the user segmentcampaign - the campaignpublic static void addCampaigns(long pk,
long[] campaignPKs)
pk - the primary key of the user segmentcampaignPKs - the primary keys of the campaignspublic static void addCampaigns(long pk,
java.util.List<Campaign> campaigns)
pk - the primary key of the user segmentcampaigns - the campaignspublic static void clearCampaigns(long pk)
pk - the primary key of the user segment to clear the associated campaigns frompublic static void removeCampaign(long pk,
long campaignPK)
pk - the primary key of the user segmentcampaignPK - the primary key of the campaignpublic static void removeCampaign(long pk,
Campaign campaign)
pk - the primary key of the user segmentcampaign - the campaignpublic static void removeCampaigns(long pk,
long[] campaignPKs)
pk - the primary key of the user segmentcampaignPKs - the primary keys of the campaignspublic static void removeCampaigns(long pk,
java.util.List<Campaign> campaigns)
pk - the primary key of the user segmentcampaigns - the campaignspublic static void setCampaigns(long pk,
long[] campaignPKs)
pk - the primary key of the user segmentcampaignPKs - the primary keys of the campaigns to be associated with the user segmentpublic static void setCampaigns(long pk,
java.util.List<Campaign> campaigns)
pk - the primary key of the user segmentcampaigns - the campaigns to be associated with the user segmentpublic static long[] getTacticPrimaryKeys(long pk)
pk - the primary key of the user segmentpublic static java.util.List<Tactic> getTactics(long pk)
pk - the primary key of the user segmentpublic static java.util.List<Tactic> getTactics(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 UserSegmentModelImpl. 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 user segmentstart - the lower bound of the range of user segmentsend - the upper bound of the range of user segments (not inclusive)public static java.util.List<Tactic> getTactics(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 UserSegmentModelImpl. 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 user segmentstart - the lower bound of the range of user segmentsend - the upper bound of the range of user segments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static int getTacticsSize(long pk)
pk - the primary key of the user segmentpublic static boolean containsTactic(long pk,
long tacticPK)
true if the tactic is associated with the user segment.pk - the primary key of the user segmenttacticPK - the primary key of the tactictrue if the tactic is associated with the user segment; false otherwisepublic static boolean containsTactics(long pk)
true if the user segment has any tactics associated with it.pk - the primary key of the user segment to check for associations with tacticstrue if the user segment has any tactics associated with it; false otherwisepublic static void addTactic(long pk,
long tacticPK)
pk - the primary key of the user segmenttacticPK - the primary key of the tacticpublic static void addTactic(long pk,
Tactic tactic)
pk - the primary key of the user segmenttactic - the tacticpublic static void addTactics(long pk,
long[] tacticPKs)
pk - the primary key of the user segmenttacticPKs - the primary keys of the tacticspublic static void addTactics(long pk,
java.util.List<Tactic> tactics)
pk - the primary key of the user segmenttactics - the tacticspublic static void clearTactics(long pk)
pk - the primary key of the user segment to clear the associated tactics frompublic static void removeTactic(long pk,
long tacticPK)
pk - the primary key of the user segmenttacticPK - the primary key of the tacticpublic static void removeTactic(long pk,
Tactic tactic)
pk - the primary key of the user segmenttactic - the tacticpublic static void removeTactics(long pk,
long[] tacticPKs)
pk - the primary key of the user segmenttacticPKs - the primary keys of the tacticspublic static void removeTactics(long pk,
java.util.List<Tactic> tactics)
pk - the primary key of the user segmenttactics - the tacticspublic static void setTactics(long pk,
long[] tacticPKs)
pk - the primary key of the user segmenttacticPKs - the primary keys of the tactics to be associated with the user segmentpublic static void setTactics(long pk,
java.util.List<Tactic> tactics)
pk - the primary key of the user segmenttactics - the tactics to be associated with the user segmentpublic static java.util.Set<java.lang.String> getBadColumnNames()
public static UserSegmentPersistence getPersistence()