public class SegmentsEntryRelUtil
extends java.lang.Object
com.liferay.segments.service.persistence.impl.SegmentsEntryRelPersistenceImpl
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
SegmentsEntryRelPersistence
Constructor and Description |
---|
SegmentsEntryRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SegmentsEntryRel> segmentsEntryRels)
Caches the segments entry rels in the entity cache if it is enabled.
|
static void |
cacheResult(SegmentsEntryRel segmentsEntryRel)
Caches the segments entry rel in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SegmentsEntryRel segmentsEntryRel) |
static int |
countAll()
Returns the number of segments entry rels.
|
static int |
countByCN_CPK(long classNameId,
long classPK)
Returns the number of segments entry rels where classNameId = ? and classPK = ?.
|
static int |
countByG_CN_CPK(long groupId,
long classNameId,
long classPK)
Returns the number of segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
|
static int |
countByS_CN_CPK(long segmentsEntryId,
long classNameId,
long classPK)
Returns the number of segments entry rels where segmentsEntryId = ? and classNameId = ? and classPK = ?.
|
static int |
countBySegmentsEntryId(long segmentsEntryId)
Returns the number of segments entry rels where segmentsEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SegmentsEntryRel |
create(long segmentsEntryRelId)
Creates a new segments entry rel with the primary key.
|
static SegmentsEntryRel |
fetchByCN_CPK_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
fetchByCN_CPK_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
fetchByG_CN_CPK_First(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
fetchByG_CN_CPK_Last(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
fetchByPrimaryKey(long segmentsEntryRelId)
Returns the segments entry rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SegmentsEntryRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SegmentsEntryRel |
fetchByS_CN_CPK(long segmentsEntryId,
long classNameId,
long classPK)
Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
static SegmentsEntryRel |
fetchByS_CN_CPK(long segmentsEntryId,
long classNameId,
long classPK,
boolean useFinderCache)
Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static SegmentsEntryRel |
fetchBySegmentsEntryId_First(long segmentsEntryId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where segmentsEntryId = ?.
|
static SegmentsEntryRel |
fetchBySegmentsEntryId_Last(long segmentsEntryId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findAll()
Returns all the segments entry rels.
|
static java.util.List<SegmentsEntryRel> |
findAll(int start,
int end)
Returns a range of all the segments entry rels.
|
static java.util.List<SegmentsEntryRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns an ordered range of all the segments entry rels.
|
static java.util.List<SegmentsEntryRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments entry rels.
|
static SegmentsEntryRel |
findByCN_CPK_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
findByCN_CPK_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
|
static SegmentsEntryRel[] |
findByCN_CPK_PrevAndNext(long segmentsEntryRelId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the segments entry rels before and after the current segments entry rel in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByCN_CPK(long classNameId,
long classPK)
Returns all the segments entry rels where classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the segments entry rels where classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns an ordered range of all the segments entry rels where classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments entry rels where classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
findByG_CN_CPK_First(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
findByG_CN_CPK_Last(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SegmentsEntryRel[] |
findByG_CN_CPK_PrevAndNext(long segmentsEntryRelId,
long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the segments entry rels before and after the current segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByG_CN_CPK(long groupId,
long classNameId,
long classPK)
Returns all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByG_CN_CPK(long groupId,
long classNameId,
long classPK,
int start,
int end)
Returns a range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByG_CN_CPK(long groupId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns an ordered range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<SegmentsEntryRel> |
findByG_CN_CPK(long groupId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
|
static SegmentsEntryRel |
findByPrimaryKey(long segmentsEntryRelId)
Returns the segments entry rel with the primary key or throws a
NoSuchEntryRelException if it could not be found. |
static SegmentsEntryRel |
findByS_CN_CPK(long segmentsEntryId,
long classNameId,
long classPK)
Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or throws a
NoSuchEntryRelException if it could not be found. |
static SegmentsEntryRel |
findBySegmentsEntryId_First(long segmentsEntryId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the first segments entry rel in the ordered set where segmentsEntryId = ?.
|
static SegmentsEntryRel |
findBySegmentsEntryId_Last(long segmentsEntryId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the last segments entry rel in the ordered set where segmentsEntryId = ?.
|
static SegmentsEntryRel[] |
findBySegmentsEntryId_PrevAndNext(long segmentsEntryRelId,
long segmentsEntryId,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns the segments entry rels before and after the current segments entry rel in the ordered set where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findBySegmentsEntryId(long segmentsEntryId)
Returns all the segments entry rels where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findBySegmentsEntryId(long segmentsEntryId,
int start,
int end)
Returns a range of all the segments entry rels where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findBySegmentsEntryId(long segmentsEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
Returns an ordered range of all the segments entry rels where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findBySegmentsEntryId(long segmentsEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the segments entry rels where segmentsEntryId = ?.
|
static java.util.List<SegmentsEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SegmentsEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SegmentsEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) |
static SegmentsEntryRelPersistence |
getPersistence() |
static SegmentsEntryRel |
remove(long segmentsEntryRelId)
Removes the segments entry rel with the primary key from the database.
|
static void |
removeAll()
Removes all the segments entry rels from the database.
|
static void |
removeByCN_CPK(long classNameId,
long classPK)
Removes all the segments entry rels where classNameId = ? and classPK = ? from the database.
|
static void |
removeByG_CN_CPK(long groupId,
long classNameId,
long classPK)
Removes all the segments entry rels where groupId = ? and classNameId = ? and classPK = ? from the database.
|
static SegmentsEntryRel |
removeByS_CN_CPK(long segmentsEntryId,
long classNameId,
long classPK)
Removes the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeBySegmentsEntryId(long segmentsEntryId)
Removes all the segments entry rels where segmentsEntryId = ? from the database.
|
static SegmentsEntryRel |
update(SegmentsEntryRel segmentsEntryRel) |
static SegmentsEntryRel |
update(SegmentsEntryRel segmentsEntryRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SegmentsEntryRel |
updateImpl(SegmentsEntryRel segmentsEntryRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SegmentsEntryRel segmentsEntryRel)
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,SegmentsEntryRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SegmentsEntryRel update(SegmentsEntryRel segmentsEntryRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SegmentsEntryRel update(SegmentsEntryRel segmentsEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDpublic static java.util.List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, 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 SegmentsEntryRelModelImpl
. 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.
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)public static java.util.List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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.
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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.
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SegmentsEntryRel findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel[] findBySegmentsEntryId_PrevAndNext(long segmentsEntryRelId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
segmentsEntryRelId
- the primary key of the current segments entry relsegmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundpublic static void removeBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDpublic static int countBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDpublic static java.util.List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, 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 SegmentsEntryRelModelImpl
. 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.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)public static java.util.List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SegmentsEntryRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel[] findByCN_CPK_PrevAndNext(long segmentsEntryRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
segmentsEntryRelId
- the primary key of the current segments entry relclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundpublic static void removeByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, 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 SegmentsEntryRelModelImpl
. 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 IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)public static java.util.List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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 IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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 IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SegmentsEntryRel findByG_CN_CPK_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByG_CN_CPK_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel findByG_CN_CPK_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByG_CN_CPK_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel[] findByG_CN_CPK_PrevAndNext(long segmentsEntryRelId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
segmentsEntryRelId
- the primary key of the current segments entry relgroupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundpublic static void removeByG_CN_CPK(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static int countByG_CN_CPK(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static SegmentsEntryRel findByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException
NoSuchEntryRelException
if it could not be found.segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryRelException
- if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel fetchByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching segments entry rel could not be foundpublic static SegmentsEntryRel removeByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryRelException
public static int countByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK)
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(SegmentsEntryRel segmentsEntryRel)
segmentsEntryRel
- the segments entry relpublic static void cacheResult(java.util.List<SegmentsEntryRel> segmentsEntryRels)
segmentsEntryRels
- the segments entry relspublic static SegmentsEntryRel create(long segmentsEntryRelId)
segmentsEntryRelId
- the primary key for the new segments entry relpublic static SegmentsEntryRel remove(long segmentsEntryRelId) throws NoSuchEntryRelException
segmentsEntryRelId
- the primary key of the segments entry relNoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundpublic static SegmentsEntryRel updateImpl(SegmentsEntryRel segmentsEntryRel)
public static SegmentsEntryRel findByPrimaryKey(long segmentsEntryRelId) throws NoSuchEntryRelException
NoSuchEntryRelException
if it could not be found.segmentsEntryRelId
- the primary key of the segments entry relNoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundpublic static SegmentsEntryRel fetchByPrimaryKey(long segmentsEntryRelId)
null
if it could not be found.segmentsEntryRelId
- the primary key of the segments entry relnull
if a segments entry rel with the primary key could not be foundpublic static java.util.List<SegmentsEntryRel> findAll()
public static java.util.List<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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 entry relsend
- the upper bound of the range of segments entry rels (not inclusive)public static java.util.List<SegmentsEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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 entry relsend
- the upper bound of the range of segments entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SegmentsEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> 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 SegmentsEntryRelModelImpl
. 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 entry relsend
- the upper bound of the range of segments entry 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 SegmentsEntryRelPersistence getPersistence()