public class SegmentsExperimentRelUtil
extends java.lang.Object
com.liferay.segments.service.persistence.impl.SegmentsExperimentRelPersistenceImpl
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
SegmentsExperimentRelPersistence
Constructor and Description |
---|
SegmentsExperimentRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SegmentsExperimentRel> segmentsExperimentRels)
Caches the segments experiment rels in the entity cache if it is enabled.
|
static void |
cacheResult(SegmentsExperimentRel segmentsExperimentRel)
Caches the segments experiment rel in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SegmentsExperimentRel segmentsExperimentRel) |
static int |
countAll()
Returns the number of segments experiment rels.
|
static int |
countByS_S(long segmentsExperimentId,
long segmentsExperienceId)
Returns the number of segments experiment rels where segmentsExperimentId = ? and segmentsExperienceId = ?.
|
static int |
countBySegmentsExperimentId(long segmentsExperimentId)
Returns the number of segments experiment rels where segmentsExperimentId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SegmentsExperimentRel |
create(long segmentsExperimentRelId)
Creates a new segments experiment rel with the primary key.
|
static SegmentsExperimentRel |
fetchByPrimaryKey(long segmentsExperimentRelId)
Returns the segments experiment rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SegmentsExperimentRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SegmentsExperimentRel |
fetchByS_S(long segmentsExperimentId,
long segmentsExperienceId)
Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns
null if it could not be found. |
static SegmentsExperimentRel |
fetchByS_S(long segmentsExperimentId,
long segmentsExperienceId,
boolean useFinderCache)
Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns
null if it could not be found, optionally using the finder cache. |
static SegmentsExperimentRel |
fetchBySegmentsExperimentId_First(long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
|
static SegmentsExperimentRel |
fetchBySegmentsExperimentId_Last(long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findAll()
Returns all the segments experiment rels.
|
static java.util.List<SegmentsExperimentRel> |
findAll(int start,
int end)
Returns a range of all the segments experiment rels.
|
static java.util.List<SegmentsExperimentRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns an ordered range of all the segments experiment rels.
|
static java.util.List<SegmentsExperimentRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments experiment rels.
|
static SegmentsExperimentRel |
findByPrimaryKey(long segmentsExperimentRelId)
Returns the segments experiment rel with the primary key or throws a
NoSuchExperimentRelException if it could not be found. |
static SegmentsExperimentRel |
findByS_S(long segmentsExperimentId,
long segmentsExperienceId)
Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or throws a
NoSuchExperimentRelException if it could not be found. |
static SegmentsExperimentRel |
findBySegmentsExperimentId_First(long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
|
static SegmentsExperimentRel |
findBySegmentsExperimentId_Last(long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
|
static SegmentsExperimentRel[] |
findBySegmentsExperimentId_PrevAndNext(long segmentsExperimentRelId,
long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns the segments experiment rels before and after the current segments experiment rel in the ordered set where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findBySegmentsExperimentId(long segmentsExperimentId)
Returns all the segments experiment rels where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findBySegmentsExperimentId(long segmentsExperimentId,
int start,
int end)
Returns a range of all the segments experiment rels where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findBySegmentsExperimentId(long segmentsExperimentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findBySegmentsExperimentId(long segmentsExperimentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.
|
static java.util.List<SegmentsExperimentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SegmentsExperimentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SegmentsExperimentRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) |
static SegmentsExperimentRelPersistence |
getPersistence() |
static SegmentsExperimentRel |
remove(long segmentsExperimentRelId)
Removes the segments experiment rel with the primary key from the database.
|
static void |
removeAll()
Removes all the segments experiment rels from the database.
|
static SegmentsExperimentRel |
removeByS_S(long segmentsExperimentId,
long segmentsExperienceId)
Removes the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? from the database.
|
static void |
removeBySegmentsExperimentId(long segmentsExperimentId)
Removes all the segments experiment rels where segmentsExperimentId = ? from the database.
|
static SegmentsExperimentRel |
update(SegmentsExperimentRel segmentsExperimentRel) |
static SegmentsExperimentRel |
update(SegmentsExperimentRel segmentsExperimentRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SegmentsExperimentRel |
updateImpl(SegmentsExperimentRel segmentsExperimentRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SegmentsExperimentRel segmentsExperimentRel)
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.Map<java.io.Serializable,SegmentsExperimentRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SegmentsExperimentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SegmentsExperimentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SegmentsExperimentRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SegmentsExperimentRel update(SegmentsExperimentRel segmentsExperimentRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SegmentsExperimentRel update(SegmentsExperimentRel segmentsExperimentRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId)
segmentsExperimentId
- the segments experiment IDpublic static java.util.List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, 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 SegmentsExperimentRelModelImpl
. 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.
segmentsExperimentId
- the segments experiment IDstart
- the lower bound of the range of segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)public static java.util.List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> 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 SegmentsExperimentRelModelImpl
. 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.
segmentsExperimentId
- the segments experiment IDstart
- the lower bound of the range of segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator, boolean useFinderCache)
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 SegmentsExperimentRelModelImpl
. 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.
segmentsExperimentId
- the segments experiment IDstart
- the lower bound of the range of segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SegmentsExperimentRel findBySegmentsExperimentId_First(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
segmentsExperimentId
- the segments experiment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchExperimentRelException
- if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel fetchBySegmentsExperimentId_First(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
segmentsExperimentId
- the segments experiment IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel findBySegmentsExperimentId_Last(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
segmentsExperimentId
- the segments experiment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchExperimentRelException
- if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel fetchBySegmentsExperimentId_Last(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
segmentsExperimentId
- the segments experiment IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel[] findBySegmentsExperimentId_PrevAndNext(long segmentsExperimentRelId, long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
segmentsExperimentRelId
- the primary key of the current segments experiment relsegmentsExperimentId
- the segments experiment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchExperimentRelException
- if a segments experiment rel with the primary key could not be foundpublic static void removeBySegmentsExperimentId(long segmentsExperimentId)
segmentsExperimentId
- the segments experiment IDpublic static int countBySegmentsExperimentId(long segmentsExperimentId)
segmentsExperimentId
- the segments experiment IDpublic static SegmentsExperimentRel findByS_S(long segmentsExperimentId, long segmentsExperienceId) throws NoSuchExperimentRelException
NoSuchExperimentRelException
if it could not be found.segmentsExperimentId
- the segments experiment IDsegmentsExperienceId
- the segments experience IDNoSuchExperimentRelException
- if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel fetchByS_S(long segmentsExperimentId, long segmentsExperienceId)
null
if it could not be found. Uses the finder cache.segmentsExperimentId
- the segments experiment IDsegmentsExperienceId
- the segments experience IDnull
if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel fetchByS_S(long segmentsExperimentId, long segmentsExperienceId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.segmentsExperimentId
- the segments experiment IDsegmentsExperienceId
- the segments experience IDuseFinderCache
- whether to use the finder cachenull
if a matching segments experiment rel could not be foundpublic static SegmentsExperimentRel removeByS_S(long segmentsExperimentId, long segmentsExperienceId) throws NoSuchExperimentRelException
segmentsExperimentId
- the segments experiment IDsegmentsExperienceId
- the segments experience IDNoSuchExperimentRelException
public static int countByS_S(long segmentsExperimentId, long segmentsExperienceId)
segmentsExperimentId
- the segments experiment IDsegmentsExperienceId
- the segments experience IDpublic static void cacheResult(SegmentsExperimentRel segmentsExperimentRel)
segmentsExperimentRel
- the segments experiment relpublic static void cacheResult(java.util.List<SegmentsExperimentRel> segmentsExperimentRels)
segmentsExperimentRels
- the segments experiment relspublic static SegmentsExperimentRel create(long segmentsExperimentRelId)
segmentsExperimentRelId
- the primary key for the new segments experiment relpublic static SegmentsExperimentRel remove(long segmentsExperimentRelId) throws NoSuchExperimentRelException
segmentsExperimentRelId
- the primary key of the segments experiment relNoSuchExperimentRelException
- if a segments experiment rel with the primary key could not be foundpublic static SegmentsExperimentRel updateImpl(SegmentsExperimentRel segmentsExperimentRel)
public static SegmentsExperimentRel findByPrimaryKey(long segmentsExperimentRelId) throws NoSuchExperimentRelException
NoSuchExperimentRelException
if it could not be found.segmentsExperimentRelId
- the primary key of the segments experiment relNoSuchExperimentRelException
- if a segments experiment rel with the primary key could not be foundpublic static SegmentsExperimentRel fetchByPrimaryKey(long segmentsExperimentRelId)
null
if it could not be found.segmentsExperimentRelId
- the primary key of the segments experiment relnull
if a segments experiment rel with the primary key could not be foundpublic static java.util.List<SegmentsExperimentRel> findAll()
public static java.util.List<SegmentsExperimentRel> 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 SegmentsExperimentRelModelImpl
. 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 segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)public static java.util.List<SegmentsExperimentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> 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 SegmentsExperimentRelModelImpl
. 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 segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsExperimentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator, boolean useFinderCache)
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 SegmentsExperimentRelModelImpl
. 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 segments experiment relsend
- the upper bound of the range of segments experiment rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SegmentsExperimentRelPersistence getPersistence()