com.liferay.object.service.persistence.ObjectStateFlowPersistence 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.object.service.persistence;
import com.liferay.object.exception.NoSuchObjectStateFlowException;
import com.liferay.object.model.ObjectStateFlow;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
import org.osgi.annotation.versioning.ProviderType;
/**
* The persistence interface for the object state flow service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Marco Leo
* @see ObjectStateFlowUtil
* @generated
*/
@ProviderType
public interface ObjectStateFlowPersistence
extends BasePersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link ObjectStateFlowUtil} to access the object state flow persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the object state flows where uuid = ?.
*
* @param uuid the uuid
* @return the matching object state flows
*/
public java.util.List findByUuid(String uuid);
/**
* Returns a range of all the object state flows where uuid = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @return the range of matching object state flows
*/
public java.util.List findByUuid(
String uuid, int start, int end);
/**
* Returns an ordered range of all the object state flows where uuid = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching object state flows
*/
public java.util.List findByUuid(
String uuid, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the object state flows where uuid = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (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 object state flows
*/
public java.util.List findByUuid(
String uuid, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first object state flow in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching object state flow
* @throws NoSuchObjectStateFlowException if a matching object state flow could not be found
*/
public ObjectStateFlow findByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Returns the first object state flow in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last object state flow in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching object state flow
* @throws NoSuchObjectStateFlowException if a matching object state flow could not be found
*/
public ObjectStateFlow findByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Returns the last object state flow in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the object state flows before and after the current object state flow in the ordered set where uuid = ?.
*
* @param objectStateFlowId the primary key of the current object state flow
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next object state flow
* @throws NoSuchObjectStateFlowException if a object state flow with the primary key could not be found
*/
public ObjectStateFlow[] findByUuid_PrevAndNext(
long objectStateFlowId, String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Removes all the object state flows where uuid = ? from the database.
*
* @param uuid the uuid
*/
public void removeByUuid(String uuid);
/**
* Returns the number of object state flows where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching object state flows
*/
public int countByUuid(String uuid);
/**
* Returns all the object state flows where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the matching object state flows
*/
public java.util.List findByUuid_C(
String uuid, long companyId);
/**
* Returns a range of all the object state flows where uuid = ? and companyId = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @return the range of matching object state flows
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end);
/**
* Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching object state flows
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (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 object state flows
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching object state flow
* @throws NoSuchObjectStateFlowException if a matching object state flow could not be found
*/
public ObjectStateFlow findByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching object state flow
* @throws NoSuchObjectStateFlowException if a matching object state flow could not be found
*/
public ObjectStateFlow findByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the object state flows before and after the current object state flow in the ordered set where uuid = ? and companyId = ?.
*
* @param objectStateFlowId the primary key of the current object state flow
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next object state flow
* @throws NoSuchObjectStateFlowException if a object state flow with the primary key could not be found
*/
public ObjectStateFlow[] findByUuid_C_PrevAndNext(
long objectStateFlowId, String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchObjectStateFlowException;
/**
* Removes all the object state flows where uuid = ? and companyId = ? from the database.
*
* @param uuid the uuid
* @param companyId the company ID
*/
public void removeByUuid_C(String uuid, long companyId);
/**
* Returns the number of object state flows where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the number of matching object state flows
*/
public int countByUuid_C(String uuid, long companyId);
/**
* Returns the object state flow where objectFieldId = ? or throws a NoSuchObjectStateFlowException
if it could not be found.
*
* @param objectFieldId the object field ID
* @return the matching object state flow
* @throws NoSuchObjectStateFlowException if a matching object state flow could not be found
*/
public ObjectStateFlow findByObjectFieldId(long objectFieldId)
throws NoSuchObjectStateFlowException;
/**
* Returns the object state flow where objectFieldId = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param objectFieldId the object field ID
* @return the matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByObjectFieldId(long objectFieldId);
/**
* Returns the object state flow where objectFieldId = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param objectFieldId the object field ID
* @param useFinderCache whether to use the finder cache
* @return the matching object state flow, or null
if a matching object state flow could not be found
*/
public ObjectStateFlow fetchByObjectFieldId(
long objectFieldId, boolean useFinderCache);
/**
* Removes the object state flow where objectFieldId = ? from the database.
*
* @param objectFieldId the object field ID
* @return the object state flow that was removed
*/
public ObjectStateFlow removeByObjectFieldId(long objectFieldId)
throws NoSuchObjectStateFlowException;
/**
* Returns the number of object state flows where objectFieldId = ?.
*
* @param objectFieldId the object field ID
* @return the number of matching object state flows
*/
public int countByObjectFieldId(long objectFieldId);
/**
* Caches the object state flow in the entity cache if it is enabled.
*
* @param objectStateFlow the object state flow
*/
public void cacheResult(ObjectStateFlow objectStateFlow);
/**
* Caches the object state flows in the entity cache if it is enabled.
*
* @param objectStateFlows the object state flows
*/
public void cacheResult(java.util.List objectStateFlows);
/**
* Creates a new object state flow with the primary key. Does not add the object state flow to the database.
*
* @param objectStateFlowId the primary key for the new object state flow
* @return the new object state flow
*/
public ObjectStateFlow create(long objectStateFlowId);
/**
* Removes the object state flow with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param objectStateFlowId the primary key of the object state flow
* @return the object state flow that was removed
* @throws NoSuchObjectStateFlowException if a object state flow with the primary key could not be found
*/
public ObjectStateFlow remove(long objectStateFlowId)
throws NoSuchObjectStateFlowException;
public ObjectStateFlow updateImpl(ObjectStateFlow objectStateFlow);
/**
* Returns the object state flow with the primary key or throws a NoSuchObjectStateFlowException
if it could not be found.
*
* @param objectStateFlowId the primary key of the object state flow
* @return the object state flow
* @throws NoSuchObjectStateFlowException if a object state flow with the primary key could not be found
*/
public ObjectStateFlow findByPrimaryKey(long objectStateFlowId)
throws NoSuchObjectStateFlowException;
/**
* Returns the object state flow with the primary key or returns null
if it could not be found.
*
* @param objectStateFlowId the primary key of the object state flow
* @return the object state flow, or null
if a object state flow with the primary key could not be found
*/
public ObjectStateFlow fetchByPrimaryKey(long objectStateFlowId);
/**
* Returns all the object state flows.
*
* @return the object state flows
*/
public java.util.List findAll();
/**
* Returns a range of all the object state flows.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @return the range of object state flows
*/
public java.util.List findAll(int start, int end);
/**
* Returns an ordered range of all the object state flows.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of object state flows
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the object state flows.
*
*
* 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 ObjectStateFlowModelImpl
.
*
*
* @param start the lower bound of the range of object state flows
* @param end the upper bound of the range of object state flows (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 object state flows
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Removes all the object state flows from the database.
*/
public void removeAll();
/**
* Returns the number of object state flows.
*
* @return the number of object state flows
*/
public int countAll();
}