@ProviderType
public class TacticUtil
extends java.lang.Object
com.liferay.content.targeting.service.persistence.impl.TacticPersistenceImpl
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
TacticPersistence
,
com.liferay.content.targeting.service.persistence.impl.TacticPersistenceImpl
Constructor and Description |
---|
TacticUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addUserSegment(long pk,
long userSegmentPK)
Adds an association between the tactic and the user segment.
|
static void |
addUserSegment(long pk,
UserSegment userSegment)
Adds an association between the tactic and the user segment.
|
static void |
addUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Adds an association between the tactic and the user segments.
|
static void |
addUserSegments(long pk,
long[] userSegmentPKs)
Adds an association between the tactic and the user segments.
|
static void |
cacheResult(java.util.List<Tactic> tactics)
Caches the tactics in the entity cache if it is enabled.
|
static void |
cacheResult(Tactic tactic)
Caches the tactic in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Tactic tactic) |
static void |
clearUserSegments(long pk)
Clears all associations between the tactic and its user segments.
|
static boolean |
containsUserSegment(long pk,
long userSegmentPK)
Returns
true if the user segment is associated with the tactic. |
static boolean |
containsUserSegments(long pk)
Returns
true if the tactic has any user segments associated with it. |
static int |
countAll()
Returns the number of tactics.
|
static int |
countByCampaignId(long campaignId)
Returns the number of tactics where campaignId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of tactics where groupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of tactics where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of tactics where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of tactics where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Tactic |
create(long tacticId)
Creates a new tactic with the primary key.
|
static Tactic |
fetchByCampaignId_First(long campaignId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where campaignId = ?.
|
static Tactic |
fetchByCampaignId_Last(long campaignId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where campaignId = ?.
|
static Tactic |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where groupId = ?.
|
static Tactic |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where groupId = ?.
|
static Tactic |
fetchByPrimaryKey(long tacticId)
Returns the tactic with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Tactic> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Tactic |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where uuid = ? and companyId = ?.
|
static Tactic |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where uuid = ? and companyId = ?.
|
static Tactic |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where uuid = ?.
|
static Tactic |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the tactic where uuid = ? and groupId = ? or returns
null if it could not be found. |
static Tactic |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the tactic where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static Tactic |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where uuid = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of tactics that the user has permission to view where groupId = ?.
|
static Tactic[] |
filterFindByGroupId_PrevAndNext(long tacticId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the tactics before and after the current tactic in the ordered set of tactics that the user has permission to view where groupId = ?.
|
static java.util.List<Tactic> |
filterFindByGroupId(long groupId)
Returns all the tactics that the user has permission to view where groupId = ?.
|
static java.util.List<Tactic> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the tactics that the user has permission to view where groupId = ?.
|
static java.util.List<Tactic> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics that the user has permissions to view where groupId = ?.
|
static java.util.List<Tactic> |
findAll()
Returns all the tactics.
|
static java.util.List<Tactic> |
findAll(int start,
int end)
Returns a range of all the tactics.
|
static java.util.List<Tactic> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics.
|
static java.util.List<Tactic> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the tactics.
|
static Tactic |
findByCampaignId_First(long campaignId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where campaignId = ?.
|
static Tactic |
findByCampaignId_Last(long campaignId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where campaignId = ?.
|
static Tactic[] |
findByCampaignId_PrevAndNext(long tacticId,
long campaignId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the tactics before and after the current tactic in the ordered set where campaignId = ?.
|
static java.util.List<Tactic> |
findByCampaignId(long campaignId)
Returns all the tactics where campaignId = ?.
|
static java.util.List<Tactic> |
findByCampaignId(long campaignId,
int start,
int end)
Returns a range of all the tactics where campaignId = ?.
|
static java.util.List<Tactic> |
findByCampaignId(long campaignId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics where campaignId = ?.
|
static java.util.List<Tactic> |
findByCampaignId(long campaignId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the tactics where campaignId = ?.
|
static Tactic |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where groupId = ?.
|
static Tactic |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where groupId = ?.
|
static Tactic[] |
findByGroupId_PrevAndNext(long tacticId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the tactics before and after the current tactic in the ordered set where groupId = ?.
|
static java.util.List<Tactic> |
findByGroupId(long groupId)
Returns all the tactics where groupId = ?.
|
static java.util.List<Tactic> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the tactics where groupId = ?.
|
static java.util.List<Tactic> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics where groupId = ?.
|
static java.util.List<Tactic> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the tactics where groupId = ?.
|
static Tactic |
findByPrimaryKey(long tacticId)
Returns the tactic with the primary key or throws a
NoSuchTacticException if it could not be found. |
static Tactic |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where uuid = ? and companyId = ?.
|
static Tactic |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where uuid = ? and companyId = ?.
|
static Tactic[] |
findByUuid_C_PrevAndNext(long tacticId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the tactics before and after the current tactic in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<Tactic> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the tactics where uuid = ? and companyId = ?.
|
static java.util.List<Tactic> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the tactics where uuid = ? and companyId = ?.
|
static java.util.List<Tactic> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics where uuid = ? and companyId = ?.
|
static java.util.List<Tactic> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the tactics where uuid = ? and companyId = ?.
|
static Tactic |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the first tactic in the ordered set where uuid = ?.
|
static Tactic |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the tactic where uuid = ? and groupId = ? or throws a
NoSuchTacticException if it could not be found. |
static Tactic |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the last tactic in the ordered set where uuid = ?.
|
static Tactic[] |
findByUuid_PrevAndNext(long tacticId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns the tactics before and after the current tactic in the ordered set where uuid = ?.
|
static java.util.List<Tactic> |
findByUuid(java.lang.String uuid)
Returns all the tactics where uuid = ?.
|
static java.util.List<Tactic> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the tactics where uuid = ?.
|
static java.util.List<Tactic> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns an ordered range of all the tactics where uuid = ?.
|
static java.util.List<Tactic> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the tactics where uuid = ?.
|
static java.util.List<Tactic> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Tactic> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Tactic> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static TacticPersistence |
getPersistence() |
static long[] |
getUserSegmentPrimaryKeys(long pk)
Returns the primaryKeys of user segments associated with the tactic.
|
static java.util.List<UserSegment> |
getUserSegments(long pk)
Returns all the user segments associated with the tactic.
|
static java.util.List<UserSegment> |
getUserSegments(long pk,
int start,
int end)
Returns a range of all the user segments associated with the tactic.
|
static java.util.List<UserSegment> |
getUserSegments(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Returns an ordered range of all the user segments associated with the tactic.
|
static int |
getUserSegmentsSize(long pk)
Returns the number of user segments associated with the tactic.
|
static Tactic |
remove(long tacticId)
Removes the tactic with the primary key from the database.
|
static void |
removeAll()
Removes all the tactics from the database.
|
static void |
removeByCampaignId(long campaignId)
Removes all the tactics where campaignId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the tactics where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the tactics where uuid = ? and companyId = ? from the database.
|
static Tactic |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the tactic where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the tactics where uuid = ? from the database.
|
static void |
removeUserSegment(long pk,
long userSegmentPK)
Removes the association between the tactic and the user segment.
|
static void |
removeUserSegment(long pk,
UserSegment userSegment)
Removes the association between the tactic and the user segment.
|
static void |
removeUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Removes the association between the tactic and the user segments.
|
static void |
removeUserSegments(long pk,
long[] userSegmentPKs)
Removes the association between the tactic and the user segments.
|
static void |
setUserSegments(long pk,
java.util.List<UserSegment> userSegments)
Sets the user segments associated with the tactic, removing and adding associations as necessary.
|
static void |
setUserSegments(long pk,
long[] userSegmentPKs)
Sets the user segments associated with the tactic, removing and adding associations as necessary.
|
static Tactic |
update(Tactic tactic) |
static Tactic |
update(Tactic tactic,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Tactic |
updateImpl(Tactic tactic) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Tactic tactic)
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<Tactic> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Tactic> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Tactic> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Tactic update(Tactic tactic)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Tactic update(Tactic tactic, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Tactic> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> findByUuid(java.lang.String uuid, 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Tactic> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Tactic findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic[] findByUuid_PrevAndNext(long tacticId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
tacticId
- the primary key of the current tacticuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a tactic 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 Tactic findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTacticException
NoSuchTacticException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic 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 tactic could not be foundpublic static Tactic 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 tactic could not be foundpublic static Tactic removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTacticException
uuid
- the uuidgroupId
- the group IDNoSuchTacticException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<Tactic> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> findByUuid_C(java.lang.String uuid, long companyId, 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Tactic> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Tactic findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic[] findByUuid_C_PrevAndNext(long tacticId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
tacticId
- the primary key of the current tacticuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a tactic 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<Tactic> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> findByGroupId(long groupId, 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Tactic> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Tactic findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic[] findByGroupId_PrevAndNext(long tacticId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
tacticId
- the primary key of the current tacticgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a tactic with the primary key could not be foundpublic static java.util.List<Tactic> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> filterFindByGroupId(long groupId, 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static Tactic[] filterFindByGroupId_PrevAndNext(long tacticId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
tacticId
- the primary key of the current tacticgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a tactic with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Tactic> findByCampaignId(long campaignId)
campaignId
- the campaign IDpublic static java.util.List<Tactic> findByCampaignId(long campaignId, 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 TacticModelImpl
. 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.
campaignId
- the campaign IDstart
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> findByCampaignId(long campaignId, 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 TacticModelImpl
. 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.
campaignId
- the campaign IDstart
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Tactic> findByCampaignId(long campaignId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 TacticModelImpl
. 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.
campaignId
- the campaign IDstart
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Tactic findByCampaignId_First(long campaignId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
campaignId
- the campaign IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByCampaignId_First(long campaignId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
campaignId
- the campaign IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic findByCampaignId_Last(long campaignId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
campaignId
- the campaign IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a matching tactic could not be foundpublic static Tactic fetchByCampaignId_Last(long campaignId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
campaignId
- the campaign IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching tactic could not be foundpublic static Tactic[] findByCampaignId_PrevAndNext(long tacticId, long campaignId, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) throws NoSuchTacticException
tacticId
- the primary key of the current tacticcampaignId
- the campaign IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTacticException
- if a tactic with the primary key could not be foundpublic static void removeByCampaignId(long campaignId)
campaignId
- the campaign IDpublic static int countByCampaignId(long campaignId)
campaignId
- the campaign IDpublic static void cacheResult(Tactic tactic)
tactic
- the tacticpublic static void cacheResult(java.util.List<Tactic> tactics)
tactics
- the tacticspublic static Tactic create(long tacticId)
tacticId
- the primary key for the new tacticpublic static Tactic remove(long tacticId) throws NoSuchTacticException
tacticId
- the primary key of the tacticNoSuchTacticException
- if a tactic with the primary key could not be foundpublic static Tactic findByPrimaryKey(long tacticId) throws NoSuchTacticException
NoSuchTacticException
if it could not be found.tacticId
- the primary key of the tacticNoSuchTacticException
- if a tactic with the primary key could not be foundpublic static Tactic fetchByPrimaryKey(long tacticId)
null
if it could not be found.tacticId
- the primary key of the tacticnull
if a tactic with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,Tactic> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<Tactic> findAll()
public static java.util.List<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> findAll(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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Tactic> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> 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 TacticModelImpl
. 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 tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getUserSegmentPrimaryKeys(long pk)
pk
- the primary key of the tacticpublic static java.util.List<UserSegment> getUserSegments(long pk)
pk
- the primary key of the tacticpublic static java.util.List<UserSegment> getUserSegments(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from TacticModelImpl
. 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 tacticstart
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)public static java.util.List<UserSegment> getUserSegments(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<UserSegment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from TacticModelImpl
. 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 tacticstart
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getUserSegmentsSize(long pk)
pk
- the primary key of the tacticpublic static boolean containsUserSegment(long pk, long userSegmentPK)
true
if the user segment is associated with the tactic.pk
- the primary key of the tacticuserSegmentPK
- the primary key of the user segmenttrue
if the user segment is associated with the tactic; false
otherwisepublic static boolean containsUserSegments(long pk)
true
if the tactic has any user segments associated with it.pk
- the primary key of the tactic to check for associations with user segmentstrue
if the tactic has any user segments associated with it; false
otherwisepublic static void addUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the tacticuserSegmentPK
- the primary key of the user segmentpublic static void addUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the tacticuserSegment
- the user segmentpublic static void addUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the tacticuserSegmentPKs
- the primary keys of the user segmentspublic static void addUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the tacticuserSegments
- the user segmentspublic static void clearUserSegments(long pk)
pk
- the primary key of the tactic to clear the associated user segments frompublic static void removeUserSegment(long pk, long userSegmentPK)
pk
- the primary key of the tacticuserSegmentPK
- the primary key of the user segmentpublic static void removeUserSegment(long pk, UserSegment userSegment)
pk
- the primary key of the tacticuserSegment
- the user segmentpublic static void removeUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the tacticuserSegmentPKs
- the primary keys of the user segmentspublic static void removeUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the tacticuserSegments
- the user segmentspublic static void setUserSegments(long pk, long[] userSegmentPKs)
pk
- the primary key of the tacticuserSegmentPKs
- the primary keys of the user segments to be associated with the tacticpublic static void setUserSegments(long pk, java.util.List<UserSegment> userSegments)
pk
- the primary key of the tacticuserSegments
- the user segments to be associated with the tacticpublic static java.util.Set<java.lang.String> getBadColumnNames()
public static TacticPersistence getPersistence()