com.liferay.segments.service.persistence.SegmentsEntryRelUtil Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.segments.service.persistence;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.segments.model.SegmentsEntryRel;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* The persistence utility for the segments entry rel service. This utility wraps 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
*
*
* @author Eduardo Garcia
* @see SegmentsEntryRelPersistence
* @generated
*/
public class SegmentsEntryRelUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(SegmentsEntryRel segmentsEntryRel) {
getPersistence().clearCache(segmentsEntryRel);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set)
*/
public static Map fetchByPrimaryKeys(
Set primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findWithDynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static SegmentsEntryRel update(SegmentsEntryRel segmentsEntryRel) {
return getPersistence().update(segmentsEntryRel);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static SegmentsEntryRel update(
SegmentsEntryRel segmentsEntryRel, ServiceContext serviceContext) {
return getPersistence().update(segmentsEntryRel, serviceContext);
}
/**
* Returns all the segments entry rels where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @return the matching segments entry rels
*/
public static List findBySegmentsEntryId(
long segmentsEntryId) {
return getPersistence().findBySegmentsEntryId(segmentsEntryId);
}
/**
* Returns a range of all the segments entry rels where segmentsEntryId = ?.
*
*
* 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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param segmentsEntryId the segments entry ID
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @return the range of matching segments entry rels
*/
public static List findBySegmentsEntryId(
long segmentsEntryId, int start, int end) {
return getPersistence().findBySegmentsEntryId(
segmentsEntryId, start, end);
}
/**
* Returns an ordered range of all the segments entry rels where segmentsEntryId = ?.
*
*
* 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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param segmentsEntryId the segments entry ID
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching segments entry rels
*/
public static List findBySegmentsEntryId(
long segmentsEntryId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findBySegmentsEntryId(
segmentsEntryId, start, end, 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param segmentsEntryId the segments entry ID
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching segments entry rels
*/
public static List findBySegmentsEntryId(
long segmentsEntryId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findBySegmentsEntryId(
segmentsEntryId, start, end, orderByComparator, useFinderCache);
}
/**
* Returns the first segments entry rel in the ordered set where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findBySegmentsEntryId_First(
long segmentsEntryId,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findBySegmentsEntryId_First(
segmentsEntryId, orderByComparator);
}
/**
* Returns the first segments entry rel in the ordered set where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchBySegmentsEntryId_First(
long segmentsEntryId,
OrderByComparator orderByComparator) {
return getPersistence().fetchBySegmentsEntryId_First(
segmentsEntryId, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findBySegmentsEntryId_Last(
long segmentsEntryId,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findBySegmentsEntryId_Last(
segmentsEntryId, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchBySegmentsEntryId_Last(
long segmentsEntryId,
OrderByComparator orderByComparator) {
return getPersistence().fetchBySegmentsEntryId_Last(
segmentsEntryId, orderByComparator);
}
/**
* Returns the segments entry rels before and after the current segments entry rel in the ordered set where segmentsEntryId = ?.
*
* @param segmentsEntryRelId the primary key of the current segments entry rel
* @param segmentsEntryId the segments entry ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next segments entry rel
* @throws NoSuchEntryRelException if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel[] findBySegmentsEntryId_PrevAndNext(
long segmentsEntryRelId, long segmentsEntryId,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findBySegmentsEntryId_PrevAndNext(
segmentsEntryRelId, segmentsEntryId, orderByComparator);
}
/**
* Removes all the segments entry rels where segmentsEntryId = ? from the database.
*
* @param segmentsEntryId the segments entry ID
*/
public static void removeBySegmentsEntryId(long segmentsEntryId) {
getPersistence().removeBySegmentsEntryId(segmentsEntryId);
}
/**
* Returns the number of segments entry rels where segmentsEntryId = ?.
*
* @param segmentsEntryId the segments entry ID
* @return the number of matching segments entry rels
*/
public static int countBySegmentsEntryId(long segmentsEntryId) {
return getPersistence().countBySegmentsEntryId(segmentsEntryId);
}
/**
* Returns all the segments entry rels where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching segments entry rels
*/
public static List findByCN_CPK(
long classNameId, long classPK) {
return getPersistence().findByCN_CPK(classNameId, classPK);
}
/**
* 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @return the range of matching segments entry rels
*/
public static List findByCN_CPK(
long classNameId, long classPK, int start, int end) {
return getPersistence().findByCN_CPK(classNameId, classPK, start, end);
}
/**
* 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching segments entry rels
*/
public static List findByCN_CPK(
long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByCN_CPK(
classNameId, classPK, start, end, 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching segments entry rels
*/
public static List findByCN_CPK(
long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByCN_CPK(
classNameId, classPK, start, end, orderByComparator,
useFinderCache);
}
/**
* Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findByCN_CPK_First(
long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByCN_CPK_First(
classNameId, classPK, orderByComparator);
}
/**
* Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByCN_CPK_First(
long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByCN_CPK_First(
classNameId, classPK, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findByCN_CPK_Last(
long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByCN_CPK_Last(
classNameId, classPK, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByCN_CPK_Last(
long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByCN_CPK_Last(
classNameId, classPK, orderByComparator);
}
/**
* Returns the segments entry rels before and after the current segments entry rel in the ordered set where classNameId = ? and classPK = ?.
*
* @param segmentsEntryRelId the primary key of the current segments entry rel
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next segments entry rel
* @throws NoSuchEntryRelException if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel[] findByCN_CPK_PrevAndNext(
long segmentsEntryRelId, long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByCN_CPK_PrevAndNext(
segmentsEntryRelId, classNameId, classPK, orderByComparator);
}
/**
* Removes all the segments entry rels where classNameId = ? and classPK = ? from the database.
*
* @param classNameId the class name ID
* @param classPK the class pk
*/
public static void removeByCN_CPK(long classNameId, long classPK) {
getPersistence().removeByCN_CPK(classNameId, classPK);
}
/**
* Returns the number of segments entry rels where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the number of matching segments entry rels
*/
public static int countByCN_CPK(long classNameId, long classPK) {
return getPersistence().countByCN_CPK(classNameId, classPK);
}
/**
* Returns all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching segments entry rels
*/
public static List findByG_CN_CPK(
long groupId, long classNameId, long classPK) {
return getPersistence().findByG_CN_CPK(groupId, classNameId, classPK);
}
/**
* 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @return the range of matching segments entry rels
*/
public static List findByG_CN_CPK(
long groupId, long classNameId, long classPK, int start, int end) {
return getPersistence().findByG_CN_CPK(
groupId, classNameId, classPK, start, end);
}
/**
* 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching segments entry rels
*/
public static List findByG_CN_CPK(
long groupId, long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_CN_CPK(
groupId, classNameId, classPK, start, end, 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
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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching segments entry rels
*/
public static List findByG_CN_CPK(
long groupId, long classNameId, long classPK, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_CN_CPK(
groupId, classNameId, classPK, start, end, orderByComparator,
useFinderCache);
}
/**
* Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findByG_CN_CPK_First(
long groupId, long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByG_CN_CPK_First(
groupId, classNameId, classPK, orderByComparator);
}
/**
* Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByG_CN_CPK_First(
long groupId, long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_CN_CPK_First(
groupId, classNameId, classPK, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findByG_CN_CPK_Last(
long groupId, long classNameId, long classPK,
OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByG_CN_CPK_Last(
groupId, classNameId, classPK, orderByComparator);
}
/**
* Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByG_CN_CPK_Last(
long groupId, long classNameId, long classPK,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_CN_CPK_Last(
groupId, classNameId, classPK, orderByComparator);
}
/**
* Returns the segments entry rels before and after the current segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
*
* @param segmentsEntryRelId the primary key of the current segments entry rel
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next segments entry rel
* @throws NoSuchEntryRelException if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel[] findByG_CN_CPK_PrevAndNext(
long segmentsEntryRelId, long groupId, long classNameId,
long classPK, OrderByComparator orderByComparator)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByG_CN_CPK_PrevAndNext(
segmentsEntryRelId, groupId, classNameId, classPK,
orderByComparator);
}
/**
* Removes all the segments entry rels where groupId = ? and classNameId = ? and classPK = ? from the database.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
*/
public static void removeByG_CN_CPK(
long groupId, long classNameId, long classPK) {
getPersistence().removeByG_CN_CPK(groupId, classNameId, classPK);
}
/**
* Returns the number of segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the number of matching segments entry rels
*/
public static int countByG_CN_CPK(
long groupId, long classNameId, long classPK) {
return getPersistence().countByG_CN_CPK(groupId, classNameId, classPK);
}
/**
* Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryRelException
if it could not be found.
*
* @param segmentsEntryId the segments entry ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching segments entry rel
* @throws NoSuchEntryRelException if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel findByS_CN_CPK(
long segmentsEntryId, long classNameId, long classPK)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByS_CN_CPK(
segmentsEntryId, classNameId, classPK);
}
/**
* Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param segmentsEntryId the segments entry ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByS_CN_CPK(
long segmentsEntryId, long classNameId, long classPK) {
return getPersistence().fetchByS_CN_CPK(
segmentsEntryId, classNameId, classPK);
}
/**
* 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.
*
* @param segmentsEntryId the segments entry ID
* @param classNameId the class name ID
* @param classPK the class pk
* @param useFinderCache whether to use the finder cache
* @return the matching segments entry rel, or null
if a matching segments entry rel could not be found
*/
public static SegmentsEntryRel fetchByS_CN_CPK(
long segmentsEntryId, long classNameId, long classPK,
boolean useFinderCache) {
return getPersistence().fetchByS_CN_CPK(
segmentsEntryId, classNameId, classPK, useFinderCache);
}
/**
* Removes the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? from the database.
*
* @param segmentsEntryId the segments entry ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the segments entry rel that was removed
*/
public static SegmentsEntryRel removeByS_CN_CPK(
long segmentsEntryId, long classNameId, long classPK)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().removeByS_CN_CPK(
segmentsEntryId, classNameId, classPK);
}
/**
* Returns the number of segments entry rels where segmentsEntryId = ? and classNameId = ? and classPK = ?.
*
* @param segmentsEntryId the segments entry ID
* @param classNameId the class name ID
* @param classPK the class pk
* @return the number of matching segments entry rels
*/
public static int countByS_CN_CPK(
long segmentsEntryId, long classNameId, long classPK) {
return getPersistence().countByS_CN_CPK(
segmentsEntryId, classNameId, classPK);
}
/**
* Caches the segments entry rel in the entity cache if it is enabled.
*
* @param segmentsEntryRel the segments entry rel
*/
public static void cacheResult(SegmentsEntryRel segmentsEntryRel) {
getPersistence().cacheResult(segmentsEntryRel);
}
/**
* Caches the segments entry rels in the entity cache if it is enabled.
*
* @param segmentsEntryRels the segments entry rels
*/
public static void cacheResult(List segmentsEntryRels) {
getPersistence().cacheResult(segmentsEntryRels);
}
/**
* Creates a new segments entry rel with the primary key. Does not add the segments entry rel to the database.
*
* @param segmentsEntryRelId the primary key for the new segments entry rel
* @return the new segments entry rel
*/
public static SegmentsEntryRel create(long segmentsEntryRelId) {
return getPersistence().create(segmentsEntryRelId);
}
/**
* Removes the segments entry rel with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param segmentsEntryRelId the primary key of the segments entry rel
* @return the segments entry rel that was removed
* @throws NoSuchEntryRelException if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel remove(long segmentsEntryRelId)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().remove(segmentsEntryRelId);
}
public static SegmentsEntryRel updateImpl(
SegmentsEntryRel segmentsEntryRel) {
return getPersistence().updateImpl(segmentsEntryRel);
}
/**
* Returns the segments entry rel with the primary key or throws a NoSuchEntryRelException
if it could not be found.
*
* @param segmentsEntryRelId the primary key of the segments entry rel
* @return the segments entry rel
* @throws NoSuchEntryRelException if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel findByPrimaryKey(long segmentsEntryRelId)
throws com.liferay.segments.exception.NoSuchEntryRelException {
return getPersistence().findByPrimaryKey(segmentsEntryRelId);
}
/**
* Returns the segments entry rel with the primary key or returns null
if it could not be found.
*
* @param segmentsEntryRelId the primary key of the segments entry rel
* @return the segments entry rel, or null
if a segments entry rel with the primary key could not be found
*/
public static SegmentsEntryRel fetchByPrimaryKey(long segmentsEntryRelId) {
return getPersistence().fetchByPrimaryKey(segmentsEntryRelId);
}
/**
* Returns all the segments entry rels.
*
* @return the segments entry rels
*/
public static List findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the segments entry rels.
*
*
* 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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @return the range of segments entry rels
*/
public static List findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the segments entry rels.
*
*
* 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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of segments entry rels
*/
public static List findAll(
int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the segments entry rels.
*
*
* 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, then the query will include the default ORDER BY logic from SegmentsEntryRelModelImpl
.
*
*
* @param start the lower bound of the range of segments entry rels
* @param end the upper bound of the range of segments entry rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of segments entry rels
*/
public static List findAll(
int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the segments entry rels from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of segments entry rels.
*
* @return the number of segments entry rels
*/
public static int countAll() {
return getPersistence().countAll();
}
public static SegmentsEntryRelPersistence getPersistence() {
return _persistence;
}
public static void setPersistence(SegmentsEntryRelPersistence persistence) {
_persistence = persistence;
}
private static volatile SegmentsEntryRelPersistence _persistence;
}