com.liferay.segments.service.persistence.SegmentsExperimentRelPersistence 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.service.persistence.BasePersistence;
import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence;
import com.liferay.segments.exception.NoSuchExperimentRelException;
import com.liferay.segments.model.SegmentsExperimentRel;
import org.osgi.annotation.versioning.ProviderType;
/**
* The persistence interface for the segments experiment rel service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Eduardo Garcia
* @see SegmentsExperimentRelUtil
* @generated
*/
@ProviderType
public interface SegmentsExperimentRelPersistence
extends BasePersistence,
CTPersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link SegmentsExperimentRelUtil} to access the segments experiment rel persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the segments experiment rels where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @return the matching segments experiment rels
*/
public java.util.List findBySegmentsExperimentId(
long segmentsExperimentId);
/**
* Returns a range of all the segments experiment rels where segmentsExperimentId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperimentId the segments experiment ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @return the range of matching segments experiment rels
*/
public java.util.List findBySegmentsExperimentId(
long segmentsExperimentId, int start, int end);
/**
* Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperimentId the segments experiment ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching segments experiment rels
*/
public java.util.List findBySegmentsExperimentId(
long segmentsExperimentId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperimentId the segments experiment ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment 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 experiment rels
*/
public java.util.List findBySegmentsExperimentId(
long segmentsExperimentId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments experiment rel
* @throws NoSuchExperimentRelException if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel findBySegmentsExperimentId_First(
long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchBySegmentsExperimentId_First(
long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments experiment rel
* @throws NoSuchExperimentRelException if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel findBySegmentsExperimentId_Last(
long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchBySegmentsExperimentId_Last(
long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the segments experiment rels before and after the current segments experiment rel in the ordered set where segmentsExperimentId = ?.
*
* @param segmentsExperimentRelId the primary key of the current segments experiment rel
* @param segmentsExperimentId the segments experiment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next segments experiment rel
* @throws NoSuchExperimentRelException if a segments experiment rel with the primary key could not be found
*/
public SegmentsExperimentRel[] findBySegmentsExperimentId_PrevAndNext(
long segmentsExperimentRelId, long segmentsExperimentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Removes all the segments experiment rels where segmentsExperimentId = ? from the database.
*
* @param segmentsExperimentId the segments experiment ID
*/
public void removeBySegmentsExperimentId(long segmentsExperimentId);
/**
* Returns the number of segments experiment rels where segmentsExperimentId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @return the number of matching segments experiment rels
*/
public int countBySegmentsExperimentId(long segmentsExperimentId);
/**
* Returns all the segments experiment rels where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @return the matching segments experiment rels
*/
public java.util.List findBySegmentsExperienceId(
long segmentsExperienceId);
/**
* Returns a range of all the segments experiment rels where segmentsExperienceId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperienceId the segments experience ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @return the range of matching segments experiment rels
*/
public java.util.List findBySegmentsExperienceId(
long segmentsExperienceId, int start, int end);
/**
* Returns an ordered range of all the segments experiment rels where segmentsExperienceId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperienceId the segments experience ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching segments experiment rels
*/
public java.util.List findBySegmentsExperienceId(
long segmentsExperienceId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the segments experiment rels where segmentsExperienceId = ?.
*
*
* 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 SegmentsExperimentRelModelImpl
.
*
*
* @param segmentsExperienceId the segments experience ID
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment 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 experiment rels
*/
public java.util.List findBySegmentsExperienceId(
long segmentsExperienceId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first segments experiment rel in the ordered set where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments experiment rel
* @throws NoSuchExperimentRelException if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel findBySegmentsExperienceId_First(
long segmentsExperienceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Returns the first segments experiment rel in the ordered set where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchBySegmentsExperienceId_First(
long segmentsExperienceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last segments experiment rel in the ordered set where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments experiment rel
* @throws NoSuchExperimentRelException if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel findBySegmentsExperienceId_Last(
long segmentsExperienceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Returns the last segments experiment rel in the ordered set where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchBySegmentsExperienceId_Last(
long segmentsExperienceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the segments experiment rels before and after the current segments experiment rel in the ordered set where segmentsExperienceId = ?.
*
* @param segmentsExperimentRelId the primary key of the current segments experiment rel
* @param segmentsExperienceId the segments experience ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next segments experiment rel
* @throws NoSuchExperimentRelException if a segments experiment rel with the primary key could not be found
*/
public SegmentsExperimentRel[] findBySegmentsExperienceId_PrevAndNext(
long segmentsExperimentRelId, long segmentsExperienceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchExperimentRelException;
/**
* Removes all the segments experiment rels where segmentsExperienceId = ? from the database.
*
* @param segmentsExperienceId the segments experience ID
*/
public void removeBySegmentsExperienceId(long segmentsExperienceId);
/**
* Returns the number of segments experiment rels where segmentsExperienceId = ?.
*
* @param segmentsExperienceId the segments experience ID
* @return the number of matching segments experiment rels
*/
public int countBySegmentsExperienceId(long segmentsExperienceId);
/**
* Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or throws a NoSuchExperimentRelException
if it could not be found.
*
* @param segmentsExperimentId the segments experiment ID
* @param segmentsExperienceId the segments experience ID
* @return the matching segments experiment rel
* @throws NoSuchExperimentRelException if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel findByS_S(
long segmentsExperimentId, long segmentsExperienceId)
throws NoSuchExperimentRelException;
/**
* Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param segmentsExperimentId the segments experiment ID
* @param segmentsExperienceId the segments experience ID
* @return the matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchByS_S(
long segmentsExperimentId, long segmentsExperienceId);
/**
* Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param segmentsExperimentId the segments experiment ID
* @param segmentsExperienceId the segments experience ID
* @param useFinderCache whether to use the finder cache
* @return the matching segments experiment rel, or null
if a matching segments experiment rel could not be found
*/
public SegmentsExperimentRel fetchByS_S(
long segmentsExperimentId, long segmentsExperienceId,
boolean useFinderCache);
/**
* Removes the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? from the database.
*
* @param segmentsExperimentId the segments experiment ID
* @param segmentsExperienceId the segments experience ID
* @return the segments experiment rel that was removed
*/
public SegmentsExperimentRel removeByS_S(
long segmentsExperimentId, long segmentsExperienceId)
throws NoSuchExperimentRelException;
/**
* Returns the number of segments experiment rels where segmentsExperimentId = ? and segmentsExperienceId = ?.
*
* @param segmentsExperimentId the segments experiment ID
* @param segmentsExperienceId the segments experience ID
* @return the number of matching segments experiment rels
*/
public int countByS_S(long segmentsExperimentId, long segmentsExperienceId);
/**
* Caches the segments experiment rel in the entity cache if it is enabled.
*
* @param segmentsExperimentRel the segments experiment rel
*/
public void cacheResult(SegmentsExperimentRel segmentsExperimentRel);
/**
* Caches the segments experiment rels in the entity cache if it is enabled.
*
* @param segmentsExperimentRels the segments experiment rels
*/
public void cacheResult(
java.util.List segmentsExperimentRels);
/**
* Creates a new segments experiment rel with the primary key. Does not add the segments experiment rel to the database.
*
* @param segmentsExperimentRelId the primary key for the new segments experiment rel
* @return the new segments experiment rel
*/
public SegmentsExperimentRel create(long segmentsExperimentRelId);
/**
* Removes the segments experiment rel with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param segmentsExperimentRelId the primary key of the segments experiment rel
* @return the segments experiment rel that was removed
* @throws NoSuchExperimentRelException if a segments experiment rel with the primary key could not be found
*/
public SegmentsExperimentRel remove(long segmentsExperimentRelId)
throws NoSuchExperimentRelException;
public SegmentsExperimentRel updateImpl(
SegmentsExperimentRel segmentsExperimentRel);
/**
* Returns the segments experiment rel with the primary key or throws a NoSuchExperimentRelException
if it could not be found.
*
* @param segmentsExperimentRelId the primary key of the segments experiment rel
* @return the segments experiment rel
* @throws NoSuchExperimentRelException if a segments experiment rel with the primary key could not be found
*/
public SegmentsExperimentRel findByPrimaryKey(long segmentsExperimentRelId)
throws NoSuchExperimentRelException;
/**
* Returns the segments experiment rel with the primary key or returns null
if it could not be found.
*
* @param segmentsExperimentRelId the primary key of the segments experiment rel
* @return the segments experiment rel, or null
if a segments experiment rel with the primary key could not be found
*/
public SegmentsExperimentRel fetchByPrimaryKey(
long segmentsExperimentRelId);
/**
* Returns all the segments experiment rels.
*
* @return the segments experiment rels
*/
public java.util.List findAll();
/**
* Returns a range of all the segments experiment 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 SegmentsExperimentRelModelImpl
.
*
*
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @return the range of segments experiment rels
*/
public java.util.List findAll(int start, int end);
/**
* Returns an ordered range of all the segments experiment 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 SegmentsExperimentRelModelImpl
.
*
*
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment rels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of segments experiment rels
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the segments experiment 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 SegmentsExperimentRelModelImpl
.
*
*
* @param start the lower bound of the range of segments experiment rels
* @param end the upper bound of the range of segments experiment 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 experiment rels
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Removes all the segments experiment rels from the database.
*/
public void removeAll();
/**
* Returns the number of segments experiment rels.
*
* @return the number of segments experiment rels
*/
public int countAll();
}