Class SegmentsEntryRelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(SegmentsEntryRel segmentsEntryRel) Caches the segments entry rel in the entity cache if it is enabled.static void
cacheResult
(List<SegmentsEntryRel> segmentsEntryRels) Caches the segments entry rels in the entity cache if it is enabled.static void
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 returnsnull
if it could not be found.static Map<Serializable,
SegmentsEntryRel> fetchByPrimaryKeys
(Set<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 returnsnull
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 returnsnull
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 List<SegmentsEntryRel>
findAll()
Returns all the segments entry rels.static List<SegmentsEntryRel>
findAll
(int start, int end) Returns a range of all the segments entry rels.static 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 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 List<SegmentsEntryRel>
findByCN_CPK
(long classNameId, long classPK) Returns all the segments entry rels where classNameId = ? and classPK = ?.static 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 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 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
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 List<SegmentsEntryRel>
findByG_CN_CPK
(long groupId, long classNameId, long classPK) Returns all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.static 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 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 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
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 SegmentsEntryRel
findByPrimaryKey
(long segmentsEntryRelId) Returns the segments entry rel with the primary key or throws aNoSuchEntryRelException
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 aNoSuchEntryRelException
if it could not be found.static List<SegmentsEntryRel>
findBySegmentsEntryId
(long segmentsEntryId) Returns all the segments entry rels where segmentsEntryId = ?.static List<SegmentsEntryRel>
findBySegmentsEntryId
(long segmentsEntryId, int start, int end) Returns a range of all the segments entry rels where segmentsEntryId = ?.static 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 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 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 List<SegmentsEntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SegmentsEntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static SegmentsEntryRel
remove
(long segmentsEntryRelId) Removes the segments entry rel with the primary key from the database.static void
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 void
setPersistence
(SegmentsEntryRelPersistence persistence) static SegmentsEntryRel
update
(SegmentsEntryRel segmentsEntryRel) static SegmentsEntryRel
update
(SegmentsEntryRel segmentsEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SegmentsEntryRel
updateImpl
(SegmentsEntryRel segmentsEntryRel)
-
Constructor Details
-
SegmentsEntryRelUtil
public SegmentsEntryRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SegmentsEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SegmentsEntryRel update(SegmentsEntryRel segmentsEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findBySegmentsEntryId
Returns all the segments entry rels where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry ID- Returns:
- the matching segments entry rels
-
findBySegmentsEntryId
public static List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end) Returns a range of all the segments entry rels where segmentsEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching segments entry rels
-
findBySegmentsEntryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching segments entry rels
-
findBySegmentsEntryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching segments entry rels
-
findBySegmentsEntryId_First
public static SegmentsEntryRel findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the first segments entry rel in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchBySegmentsEntryId_First
public 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 = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findBySegmentsEntryId_Last
public static SegmentsEntryRel findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the last segments entry rel in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchBySegmentsEntryId_Last
public 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 = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findBySegmentsEntryId_PrevAndNext
public static SegmentsEntryRel[] findBySegmentsEntryId_PrevAndNext(long segmentsEntryRelId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the segments entry rels before and after the current segments entry rel in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryRelId
- the primary key of the current segments entry relsegmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next segments entry rel
- Throws:
NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundNoSuchEntryRelException
-
removeBySegmentsEntryId
public static void removeBySegmentsEntryId(long segmentsEntryId) Removes all the segments entry rels where segmentsEntryId = ? from the database.- Parameters:
segmentsEntryId
- the segments entry ID
-
countBySegmentsEntryId
public static int countBySegmentsEntryId(long segmentsEntryId) Returns the number of segments entry rels where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry ID- Returns:
- the number of matching segments entry rels
-
findByCN_CPK
Returns all the segments entry rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching segments entry rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching segments entry rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching segments entry rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching segments entry rels
-
findByCN_CPK_First
public static SegmentsEntryRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchByCN_CPK_First
public 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findByCN_CPK_Last
public static SegmentsEntryRel findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchByCN_CPK_Last
public 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findByCN_CPK_PrevAndNext
public static SegmentsEntryRel[] findByCN_CPK_PrevAndNext(long segmentsEntryRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the segments entry rels before and after the current segments entry rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
segmentsEntryRelId
- the primary key of the current segments entry relclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next segments entry rel
- Throws:
NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundNoSuchEntryRelException
-
removeByCN_CPK
public static void removeByCN_CPK(long classNameId, long classPK) Removes all the segments entry rels where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByCN_CPK
public static int countByCN_CPK(long classNameId, long classPK) Returns the number of segments entry rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching segments entry rels
-
findByG_CN_CPK
Returns all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching segments entry rels
-
findByG_CN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching segments entry rels
-
findByG_CN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching segments entry rels
-
findByG_CN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching segments entry rels
-
findByG_CN_CPK_First
public static SegmentsEntryRel findByG_CN_CPK_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchByG_CN_CPK_First
public 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 = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findByG_CN_CPK_Last
public static SegmentsEntryRel findByG_CN_CPK_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchByG_CN_CPK_Last
public 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 = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
findByG_CN_CPK_PrevAndNext
public static SegmentsEntryRel[] findByG_CN_CPK_PrevAndNext(long segmentsEntryRelId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException Returns the segments entry rels before and after the current segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next segments entry rel
- Throws:
NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundNoSuchEntryRelException
-
removeByG_CN_CPK
public 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.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pk
-
countByG_CN_CPK
public static int countByG_CN_CPK(long groupId, long classNameId, long classPK) Returns the number of segments entry rels where groupId = ? and classNameId = ? and classPK = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching segments entry rels
-
findByS_CN_CPK
public static SegmentsEntryRel findByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or throws aNoSuchEntryRelException
if it could not be found.- Parameters:
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching segments entry rel
- Throws:
NoSuchEntryRelException
- if a matching segments entry rel could not be foundNoSuchEntryRelException
-
fetchByS_CN_CPK
public static SegmentsEntryRel fetchByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
fetchByS_CN_CPK
public 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching segments entry rel, or
null
if a matching segments entry rel could not be found
-
removeByS_CN_CPK
public static SegmentsEntryRel removeByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException Removes the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? from the database.- Parameters:
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the segments entry rel that was removed
- Throws:
NoSuchEntryRelException
-
countByS_CN_CPK
public static int countByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) Returns the number of segments entry rels where segmentsEntryId = ? and classNameId = ? and classPK = ?.- Parameters:
segmentsEntryId
- the segments entry IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching segments entry rels
-
cacheResult
Caches the segments entry rel in the entity cache if it is enabled.- Parameters:
segmentsEntryRel
- the segments entry rel
-
cacheResult
Caches the segments entry rels in the entity cache if it is enabled.- Parameters:
segmentsEntryRels
- the segments entry rels
-
create
Creates a new segments entry rel with the primary key. Does not add the segments entry rel to the database.- Parameters:
segmentsEntryRelId
- the primary key for the new segments entry rel- Returns:
- the new segments entry rel
-
remove
Removes the segments entry rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
segmentsEntryRelId
- the primary key of the segments entry rel- Returns:
- the segments entry rel that was removed
- Throws:
NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundNoSuchEntryRelException
-
updateImpl
-
findByPrimaryKey
public static SegmentsEntryRel findByPrimaryKey(long segmentsEntryRelId) throws NoSuchEntryRelException Returns the segments entry rel with the primary key or throws aNoSuchEntryRelException
if it could not be found.- Parameters:
segmentsEntryRelId
- the primary key of the segments entry rel- Returns:
- the segments entry rel
- Throws:
NoSuchEntryRelException
- if a segments entry rel with the primary key could not be foundNoSuchEntryRelException
-
fetchByPrimaryKey
Returns the segments entry rel with the primary key or returnsnull
if it could not be found.- Parameters:
segmentsEntryRelId
- the primary key of the segments entry rel- Returns:
- the segments entry rel, or
null
if a segments entry rel with the primary key could not be found
-
findAll
Returns all the segments entry rels.- Returns:
- the segments entry rels
-
findAll
Returns a range of all the segments entry rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of segments entry relsend
- the upper bound of the range of segments entry rels (not inclusive)- Returns:
- the range of segments entry rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of segments entry rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of segments entry rels
-
removeAll
public static void removeAll()Removes all the segments entry rels from the database. -
countAll
public static int countAll()Returns the number of segments entry rels.- Returns:
- the number of segments entry rels
-
getPersistence
-
setPersistence
-