@ProviderType public interface UserSegmentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<UserSegment>
Caching information and settings can be found in portal.properties
com.liferay.content.targeting.service.persistence.impl.UserSegmentPersistenceImpl
,
UserSegmentUtil
Modifier and Type | Method and Description |
---|---|
void |
addCampaign(long pk,
Campaign campaign)
Adds an association between the user segment and the campaign.
|
void |
addCampaign(long pk,
long campaignPK)
Adds an association between the user segment and the campaign.
|
void |
addCampaigns(long pk,
java.util.List<Campaign> campaigns)
Adds an association between the user segment and the campaigns.
|
void |
addCampaigns(long pk,
long[] campaignPKs)
Adds an association between the user segment and the campaigns.
|
void |
addTactic(long pk,
long tacticPK)
Adds an association between the user segment and the tactic.
|
void |
addTactic(long pk,
Tactic tactic)
Adds an association between the user segment and the tactic.
|
void |
addTactics(long pk,
java.util.List<Tactic> tactics)
Adds an association between the user segment and the tactics.
|
void |
addTactics(long pk,
long[] tacticPKs)
Adds an association between the user segment and the tactics.
|
void |
cacheResult(java.util.List<UserSegment> userSegments)
Caches the user segments in the entity cache if it is enabled.
|
void |
cacheResult(UserSegment userSegment)
Caches the user segment in the entity cache if it is enabled.
|
void |
clearCampaigns(long pk)
Clears all associations between the user segment and its campaigns.
|
void |
clearTactics(long pk)
Clears all associations between the user segment and its tactics.
|
boolean |
containsCampaign(long pk,
long campaignPK)
Returns
true if the campaign is associated with the user segment. |
boolean |
containsCampaigns(long pk)
Returns
true if the user segment has any campaigns associated with it. |
boolean |
containsTactic(long pk,
long tacticPK)
Returns
true if the tactic is associated with the user segment. |
boolean |
containsTactics(long pk)
Returns
true if the user segment has any tactics associated with it. |
int |
countAll()
Returns the number of user segments.
|
int |
countByAssetCategoryId(long assetCategoryId)
Returns the number of user segments where assetCategoryId = ?.
|
int |
countByG_U(long[] groupIds,
long userId)
Returns the number of user segments where groupId = any ? and userId = ?.
|
int |
countByG_U(long groupId,
long userId)
Returns the number of user segments where groupId = ? and userId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of user segments where groupId = ?.
|
int |
countByGroupId(long[] groupIds)
Returns the number of user segments where groupId = any ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of user segments where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of user segments where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of user segments where uuid = ?.
|
UserSegment |
create(long userSegmentId)
Creates a new user segment with the primary key.
|
UserSegment |
fetchByAssetCategoryId(long assetCategoryId)
Returns the user segment where assetCategoryId = ? or returns
null if it could not be found. |
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. |
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 = ?.
|
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 = ?.
|
UserSegment |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ?.
|
UserSegment |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ?.
|
UserSegment |
fetchByPrimaryKey(long userSegmentId)
Returns the user segment with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,UserSegment> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
int |
filterCountByG_U(long groupId,
long userId)
Returns the number of user segments that the user has permission to view where groupId = ? and userId = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of user segments that the user has permission to view where groupId = ?.
|
int |
filterCountByGroupId(long[] groupIds)
Returns the number of user segments that the user has permission to view where groupId = any ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
filterFindByGroupId(long groupId)
Returns all the user segments that the user has permission to view where groupId = ?.
|
java.util.List<UserSegment> |
filterFindByGroupId(long[] groupIds)
Returns all the user segments that the user has permission to view where groupId = any ?.
|
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 ?.
|
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 ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
findAll()
Returns all the user segments.
|
java.util.List<UserSegment> |
findAll(int start,
int end)
Returns a range of all the user segments.
|
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.
|
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.
|
UserSegment |
findByAssetCategoryId(long assetCategoryId)
Returns the user segment where assetCategoryId = ? or throws a
NoSuchUserSegmentException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
findByG_U(long[] groupIds,
long userId)
Returns all the user segments where groupId = any ? and userId = ?.
|
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 = ?.
|
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 = ?.
|
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.
|
java.util.List<UserSegment> |
findByG_U(long groupId,
long userId)
Returns all the user segments where groupId = ? and userId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
UserSegment |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the first user segment in the ordered set where groupId = ?.
|
UserSegment |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns the last user segment in the ordered set where groupId = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
findByGroupId(long groupId)
Returns all the user segments where groupId = ?.
|
java.util.List<UserSegment> |
findByGroupId(long[] groupIds)
Returns all the user segments where groupId = any ?.
|
java.util.List<UserSegment> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the user segments where groupId = any ?.
|
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 ?.
|
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.
|
java.util.List<UserSegment> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the user segments where groupId = ?.
|
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 = ?.
|
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 = ?.
|
UserSegment |
findByPrimaryKey(long userSegmentId)
Returns the user segment with the primary key or throws a
NoSuchUserSegmentException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the user segments where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
java.util.List<UserSegment> |
findByUuid(java.lang.String uuid)
Returns all the user segments where uuid = ?.
|
java.util.List<UserSegment> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the user segments where uuid = ?.
|
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 = ?.
|
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 = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
long[] |
getCampaignPrimaryKeys(long pk)
Returns the primaryKeys of campaigns associated with the user segment.
|
java.util.List<Campaign> |
getCampaigns(long pk)
Returns all the campaigns associated with the user segment.
|
java.util.List<Campaign> |
getCampaigns(long pk,
int start,
int end)
Returns a range of all the campaigns associated with the user segment.
|
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.
|
int |
getCampaignsSize(long pk)
Returns the number of campaigns associated with the user segment.
|
long[] |
getTacticPrimaryKeys(long pk)
Returns the primaryKeys of tactics associated with the user segment.
|
java.util.List<Tactic> |
getTactics(long pk)
Returns all the tactics associated with the user segment.
|
java.util.List<Tactic> |
getTactics(long pk,
int start,
int end)
Returns a range of all the tactics associated with the user segment.
|
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.
|
int |
getTacticsSize(long pk)
Returns the number of tactics associated with the user segment.
|
UserSegment |
remove(long userSegmentId)
Removes the user segment with the primary key from the database.
|
void |
removeAll()
Removes all the user segments from the database.
|
UserSegment |
removeByAssetCategoryId(long assetCategoryId)
Removes the user segment where assetCategoryId = ? from the database.
|
void |
removeByG_U(long groupId,
long userId)
Removes all the user segments where groupId = ? and userId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the user segments where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the user segments where uuid = ? and companyId = ? from the database.
|
UserSegment |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the user segment where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the user segments where uuid = ? from the database.
|
void |
removeCampaign(long pk,
Campaign campaign)
Removes the association between the user segment and the campaign.
|
void |
removeCampaign(long pk,
long campaignPK)
Removes the association between the user segment and the campaign.
|
void |
removeCampaigns(long pk,
java.util.List<Campaign> campaigns)
Removes the association between the user segment and the campaigns.
|
void |
removeCampaigns(long pk,
long[] campaignPKs)
Removes the association between the user segment and the campaigns.
|
void |
removeTactic(long pk,
long tacticPK)
Removes the association between the user segment and the tactic.
|
void |
removeTactic(long pk,
Tactic tactic)
Removes the association between the user segment and the tactic.
|
void |
removeTactics(long pk,
java.util.List<Tactic> tactics)
Removes the association between the user segment and the tactics.
|
void |
removeTactics(long pk,
long[] tacticPKs)
Removes the association between the user segment and the tactics.
|
void |
setCampaigns(long pk,
java.util.List<Campaign> campaigns)
Sets the campaigns associated with the user segment, removing and adding associations as necessary.
|
void |
setCampaigns(long pk,
long[] campaignPKs)
Sets the campaigns associated with the user segment, removing and adding associations as necessary.
|
void |
setTactics(long pk,
java.util.List<Tactic> tactics)
Sets the tactics associated with the user segment, removing and adding associations as necessary.
|
void |
setTactics(long pk,
long[] tacticPKs)
Sets the tactics associated with the user segment, removing and adding associations as necessary.
|
UserSegment |
updateImpl(UserSegment userSegment) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<UserSegment> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchUserSegmentException
uuid
- the uuidgroupId
- the group IDNoSuchUserSegmentException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<UserSegment> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<UserSegment> findByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 cacheUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment[] 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 foundjava.util.List<UserSegment> filterFindByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 foundjava.util.List<UserSegment> filterFindByGroupId(long[] groupIds)
groupIds
- the group IDsjava.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)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
)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 IDsjava.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)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
)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 cachevoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long[] groupIds)
groupIds
- the group IDsint filterCountByGroupId(long groupId)
groupId
- the group IDint filterCountByGroupId(long[] groupIds)
groupIds
- the group IDsUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment removeByAssetCategoryId(long assetCategoryId) throws NoSuchUserSegmentException
assetCategoryId
- the asset category IDNoSuchUserSegmentException
int countByAssetCategoryId(long assetCategoryId)
assetCategoryId
- the asset category IDjava.util.List<UserSegment> findByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDjava.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)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
)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 cacheUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment 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 foundUserSegment[] 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 foundjava.util.List<UserSegment> filterFindByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDjava.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)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
)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 foundjava.util.List<UserSegment> filterFindByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDjava.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)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
)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 IDjava.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)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
)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 cachevoid removeByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint countByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint countByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDint filterCountByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint filterCountByG_U(long[] groupIds, long userId)
groupIds
- the group IDsuserId
- the user IDvoid cacheResult(UserSegment userSegment)
userSegment
- the user segmentvoid cacheResult(java.util.List<UserSegment> userSegments)
userSegments
- the user segmentsUserSegment create(long userSegmentId)
userSegmentId
- the primary key for the new user segmentUserSegment remove(long userSegmentId) throws NoSuchUserSegmentException
userSegmentId
- the primary key of the user segmentNoSuchUserSegmentException
- if a user segment with the primary key could not be foundUserSegment updateImpl(UserSegment userSegment)
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 foundUserSegment 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 foundjava.util.Map<java.io.Serializable,UserSegment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<UserSegment>
java.util.List<UserSegment> findAll()
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)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
)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 cachevoid removeAll()
int countAll()
long[] getCampaignPrimaryKeys(long pk)
pk
- the primary key of the user segmentjava.util.List<Campaign> getCampaigns(long pk)
pk
- the primary key of the user segmentjava.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)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
)int getCampaignsSize(long pk)
pk
- the primary key of the user segmentboolean 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
otherwiseboolean 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
otherwisevoid addCampaign(long pk, long campaignPK)
pk
- the primary key of the user segmentcampaignPK
- the primary key of the campaignvoid addCampaign(long pk, Campaign campaign)
pk
- the primary key of the user segmentcampaign
- the campaignvoid addCampaigns(long pk, long[] campaignPKs)
pk
- the primary key of the user segmentcampaignPKs
- the primary keys of the campaignsvoid addCampaigns(long pk, java.util.List<Campaign> campaigns)
pk
- the primary key of the user segmentcampaigns
- the campaignsvoid clearCampaigns(long pk)
pk
- the primary key of the user segment to clear the associated campaigns fromvoid removeCampaign(long pk, long campaignPK)
pk
- the primary key of the user segmentcampaignPK
- the primary key of the campaignvoid removeCampaign(long pk, Campaign campaign)
pk
- the primary key of the user segmentcampaign
- the campaignvoid removeCampaigns(long pk, long[] campaignPKs)
pk
- the primary key of the user segmentcampaignPKs
- the primary keys of the campaignsvoid removeCampaigns(long pk, java.util.List<Campaign> campaigns)
pk
- the primary key of the user segmentcampaigns
- the campaignsvoid 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 segmentvoid setCampaigns(long pk, java.util.List<Campaign> campaigns)
pk
- the primary key of the user segmentcampaigns
- the campaigns to be associated with the user segmentlong[] getTacticPrimaryKeys(long pk)
pk
- the primary key of the user segmentjava.util.List<Tactic> getTactics(long pk)
pk
- the primary key of the user segmentjava.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)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
)int getTacticsSize(long pk)
pk
- the primary key of the user segmentboolean 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
otherwiseboolean 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
otherwisevoid addTactic(long pk, long tacticPK)
pk
- the primary key of the user segmenttacticPK
- the primary key of the tacticvoid addTactic(long pk, Tactic tactic)
pk
- the primary key of the user segmenttactic
- the tacticvoid addTactics(long pk, long[] tacticPKs)
pk
- the primary key of the user segmenttacticPKs
- the primary keys of the tacticsvoid addTactics(long pk, java.util.List<Tactic> tactics)
pk
- the primary key of the user segmenttactics
- the tacticsvoid clearTactics(long pk)
pk
- the primary key of the user segment to clear the associated tactics fromvoid removeTactic(long pk, long tacticPK)
pk
- the primary key of the user segmenttacticPK
- the primary key of the tacticvoid removeTactic(long pk, Tactic tactic)
pk
- the primary key of the user segmenttactic
- the tacticvoid removeTactics(long pk, long[] tacticPKs)
pk
- the primary key of the user segmenttacticPKs
- the primary keys of the tacticsvoid removeTactics(long pk, java.util.List<Tactic> tactics)
pk
- the primary key of the user segmenttactics
- the tacticsvoid 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 segmentvoid setTactics(long pk, java.util.List<Tactic> tactics)
pk
- the primary key of the user segmenttactics
- the tactics to be associated with the user segmentjava.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<UserSegment>