Class ObjectStateFlowUtil

java.lang.Object
com.liferay.object.service.persistence.ObjectStateFlowUtil

public class ObjectStateFlowUtil extends Object
The persistence utility for the object state flow service. This utility wraps com.liferay.object.service.persistence.impl.ObjectStateFlowPersistenceImpl 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 Details

    • ObjectStateFlowUtil

      public ObjectStateFlowUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(ObjectStateFlow objectStateFlow)
      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

      public static Map<Serializable,ObjectStateFlow> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static ObjectStateFlow update(ObjectStateFlow objectStateFlow)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static ObjectStateFlow update(ObjectStateFlow objectStateFlow, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<ObjectStateFlow> findByUuid(String uuid)
      Returns all the object state flows where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching object state flows
    • findByUuid

      public static List<ObjectStateFlow> findByUuid(String uuid, int start, int end)
      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      Returns:
      the range of matching object state flows
    • findByUuid

      public static List<ObjectStateFlow> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object state flows
    • findByUuid

      public static List<ObjectStateFlow> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching object state flows
    • findByUuid_First

      public static ObjectStateFlow findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the first object state flow in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state flow
      Throws:
      NoSuchObjectStateFlowException - if a matching object state flow could not be found
      NoSuchObjectStateFlowException
    • fetchByUuid_First

      public static ObjectStateFlow fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
      Returns the first object state flow in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state flow, or null if a matching object state flow could not be found
    • findByUuid_Last

      public static ObjectStateFlow findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the last object state flow in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state flow
      Throws:
      NoSuchObjectStateFlowException - if a matching object state flow could not be found
      NoSuchObjectStateFlowException
    • fetchByUuid_Last

      public static ObjectStateFlow fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
      Returns the last object state flow in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state flow, or null if a matching object state flow could not be found
    • findByUuid_PrevAndNext

      public static ObjectStateFlow[] findByUuid_PrevAndNext(long objectStateFlowId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the object state flows before and after the current object state flow in the ordered set where uuid = ?.
      Parameters:
      objectStateFlowId - the primary key of the current object state flow
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state flow
      Throws:
      NoSuchObjectStateFlowException - if a object state flow with the primary key could not be found
      NoSuchObjectStateFlowException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the object state flows where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of object state flows where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching object state flows
    • findByUuid_C

      public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId)
      Returns all the object state flows where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching object state flows
    • findByUuid_C

      public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId, int start, int end)
      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      Returns:
      the range of matching object state flows
    • findByUuid_C

      public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object state flows
    • findByUuid_C

      public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching object state flows
    • findByUuid_C_First

      public static ObjectStateFlow findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state flow
      Throws:
      NoSuchObjectStateFlowException - if a matching object state flow could not be found
      NoSuchObjectStateFlowException
    • fetchByUuid_C_First

      public static ObjectStateFlow fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
      Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state flow, or null if a matching object state flow could not be found
    • findByUuid_C_Last

      public static ObjectStateFlow findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state flow
      Throws:
      NoSuchObjectStateFlowException - if a matching object state flow could not be found
      NoSuchObjectStateFlowException
    • fetchByUuid_C_Last

      public static ObjectStateFlow fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
      Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state flow, or null if a matching object state flow could not be found
    • findByUuid_C_PrevAndNext

      public static ObjectStateFlow[] findByUuid_C_PrevAndNext(long objectStateFlowId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
      Returns the object state flows before and after the current object state flow in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      objectStateFlowId - the primary key of the current object state flow
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state flow
      Throws:
      NoSuchObjectStateFlowException - if a object state flow with the primary key could not be found
      NoSuchObjectStateFlowException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the object state flows where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of object state flows where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching object state flows
    • findByObjectFieldId

      public static ObjectStateFlow findByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException
      Returns the object state flow where objectFieldId = ? or throws a NoSuchObjectStateFlowException if it could not be found.
      Parameters:
      objectFieldId - the object field ID
      Returns:
      the matching object state flow
      Throws:
      NoSuchObjectStateFlowException - if a matching object state flow could not be found
      NoSuchObjectStateFlowException
    • fetchByObjectFieldId

      public static ObjectStateFlow fetchByObjectFieldId(long objectFieldId)
      Returns the object state flow where objectFieldId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      objectFieldId - the object field ID
      Returns:
      the matching object state flow, or null if a matching object state flow could not be found
    • fetchByObjectFieldId

      public static ObjectStateFlow fetchByObjectFieldId(long objectFieldId, boolean useFinderCache)
      Returns the object state flow where objectFieldId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      objectFieldId - the object field ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object state flow, or null if a matching object state flow could not be found
    • removeByObjectFieldId

      public static ObjectStateFlow removeByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException
      Removes the object state flow where objectFieldId = ? from the database.
      Parameters:
      objectFieldId - the object field ID
      Returns:
      the object state flow that was removed
      Throws:
      NoSuchObjectStateFlowException
    • countByObjectFieldId

      public static int countByObjectFieldId(long objectFieldId)
      Returns the number of object state flows where objectFieldId = ?.
      Parameters:
      objectFieldId - the object field ID
      Returns:
      the number of matching object state flows
    • cacheResult

      public static void cacheResult(ObjectStateFlow objectStateFlow)
      Caches the object state flow in the entity cache if it is enabled.
      Parameters:
      objectStateFlow - the object state flow
    • cacheResult

      public static void cacheResult(List<ObjectStateFlow> objectStateFlows)
      Caches the object state flows in the entity cache if it is enabled.
      Parameters:
      objectStateFlows - the object state flows
    • create

      public static ObjectStateFlow create(long objectStateFlowId)
      Creates a new object state flow with the primary key. Does not add the object state flow to the database.
      Parameters:
      objectStateFlowId - the primary key for the new object state flow
      Returns:
      the new object state flow
    • remove

      public static ObjectStateFlow remove(long objectStateFlowId) throws NoSuchObjectStateFlowException
      Removes the object state flow with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      objectStateFlowId - the primary key of the object state flow
      Returns:
      the object state flow that was removed
      Throws:
      NoSuchObjectStateFlowException - if a object state flow with the primary key could not be found
      NoSuchObjectStateFlowException
    • updateImpl

      public static ObjectStateFlow updateImpl(ObjectStateFlow objectStateFlow)
    • findByPrimaryKey

      public static ObjectStateFlow findByPrimaryKey(long objectStateFlowId) throws NoSuchObjectStateFlowException
      Returns the object state flow with the primary key or throws a NoSuchObjectStateFlowException if it could not be found.
      Parameters:
      objectStateFlowId - the primary key of the object state flow
      Returns:
      the object state flow
      Throws:
      NoSuchObjectStateFlowException - if a object state flow with the primary key could not be found
      NoSuchObjectStateFlowException
    • fetchByPrimaryKey

      public static ObjectStateFlow fetchByPrimaryKey(long objectStateFlowId)
      Returns the object state flow with the primary key or returns null if it could not be found.
      Parameters:
      objectStateFlowId - the primary key of the object state flow
      Returns:
      the object state flow, or null if a object state flow with the primary key could not be found
    • findAll

      public static List<ObjectStateFlow> findAll()
      Returns all the object state flows.
      Returns:
      the object state flows
    • findAll

      public static List<ObjectStateFlow> findAll(int start, int end)
      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.

      Parameters:
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      Returns:
      the range of object state flows
    • findAll

      public static List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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.

      Parameters:
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of object state flows
    • findAll

      public static List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      start - the lower bound of the range of object state flows
      end - the upper bound of the range of object state flows (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of object state flows
    • removeAll

      public static void removeAll()
      Removes all the object state flows from the database.
    • countAll

      public static int countAll()
      Returns the number of object state flows.
      Returns:
      the number of object state flows
    • getPersistence

      public static ObjectStateFlowPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectStateFlowPersistence persistence)