Class ObjectStateTransitionUtil

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

public class ObjectStateTransitionUtil extends Object
The persistence utility for the object state transition service. This utility wraps com.liferay.object.service.persistence.impl.ObjectStateTransitionPersistenceImpl 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

    • ObjectStateTransitionUtil

      public ObjectStateTransitionUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(ObjectStateTransition objectStateTransition)
      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,ObjectStateTransition> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

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

      public static List<ObjectStateTransition> findByUuid(String uuid, int start, int end)
      Returns a range of all the object state transitions 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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions 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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions 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 ObjectStateTransitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • findByUuid_First

      public static ObjectStateTransition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the first object state transition 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 transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByUuid_First

      public static ObjectStateTransition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the first object state transition 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 transition, or null if a matching object state transition could not be found
    • findByUuid_Last

      public static ObjectStateTransition findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the last object state transition 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 transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByUuid_Last

      public static ObjectStateTransition fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the last object state transition 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 transition, or null if a matching object state transition could not be found
    • findByUuid_PrevAndNext

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

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

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

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

      public static List<ObjectStateTransition> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object state transitions 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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions 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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions 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 ObjectStateTransitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • findByUuid_C_First

      public static ObjectStateTransition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the first object state transition 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 transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByUuid_C_First

      public static ObjectStateTransition fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the first object state transition 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 transition, or null if a matching object state transition could not be found
    • findByUuid_C_Last

      public static ObjectStateTransition findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the last object state transition 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 transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByUuid_C_Last

      public static ObjectStateTransition fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the last object state transition 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 transition, or null if a matching object state transition could not be found
    • findByUuid_C_PrevAndNext

      public static ObjectStateTransition[] findByUuid_C_PrevAndNext(long objectStateTransitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the object state transitions before and after the current object state transition in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      objectStateTransitionId - the primary key of the current object state transition
      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 transition
      Throws:
      NoSuchObjectStateTransitionException - if a object state transition with the primary key could not be found
      NoSuchObjectStateTransitionException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the object state transitions 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 transitions where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching object state transitions
    • findByObjectStateFlowId

      public static List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId)
      Returns all the object state transitions where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      Returns:
      the matching object state transitions
    • findByObjectStateFlowId

      public static List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, int start, int end)
      Returns a range of all the object state transitions where objectStateFlowId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      objectStateFlowId - the object state flow ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      Returns:
      the range of matching object state transitions
    • findByObjectStateFlowId

      public static List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions where objectStateFlowId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      objectStateFlowId - the object state flow ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object state transitions
    • findByObjectStateFlowId

      public static List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions where objectStateFlowId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      objectStateFlowId - the object state flow ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • findByObjectStateFlowId_First

      public static ObjectStateTransition findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the first object state transition in the ordered set where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByObjectStateFlowId_First

      public static ObjectStateTransition fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the first object state transition in the ordered set where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition, or null if a matching object state transition could not be found
    • findByObjectStateFlowId_Last

      public static ObjectStateTransition findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the last object state transition in the ordered set where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByObjectStateFlowId_Last

      public static ObjectStateTransition fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the last object state transition in the ordered set where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition, or null if a matching object state transition could not be found
    • findByObjectStateFlowId_PrevAndNext

      public static ObjectStateTransition[] findByObjectStateFlowId_PrevAndNext(long objectStateTransitionId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the object state transitions before and after the current object state transition in the ordered set where objectStateFlowId = ?.
      Parameters:
      objectStateTransitionId - the primary key of the current object state transition
      objectStateFlowId - the object state flow ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a object state transition with the primary key could not be found
      NoSuchObjectStateTransitionException
    • removeByObjectStateFlowId

      public static void removeByObjectStateFlowId(long objectStateFlowId)
      Removes all the object state transitions where objectStateFlowId = ? from the database.
      Parameters:
      objectStateFlowId - the object state flow ID
    • countByObjectStateFlowId

      public static int countByObjectStateFlowId(long objectStateFlowId)
      Returns the number of object state transitions where objectStateFlowId = ?.
      Parameters:
      objectStateFlowId - the object state flow ID
      Returns:
      the number of matching object state transitions
    • findBySourceObjectStateId

      public static List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId)
      Returns all the object state transitions where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      Returns:
      the matching object state transitions
    • findBySourceObjectStateId

      public static List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, int start, int end)
      Returns a range of all the object state transitions where sourceObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      sourceObjectStateId - the source object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      Returns:
      the range of matching object state transitions
    • findBySourceObjectStateId

      public static List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions where sourceObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      sourceObjectStateId - the source object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object state transitions
    • findBySourceObjectStateId

      public static List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions where sourceObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      sourceObjectStateId - the source object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • findBySourceObjectStateId_First

      public static ObjectStateTransition findBySourceObjectStateId_First(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the first object state transition in the ordered set where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchBySourceObjectStateId_First

      public static ObjectStateTransition fetchBySourceObjectStateId_First(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the first object state transition in the ordered set where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition, or null if a matching object state transition could not be found
    • findBySourceObjectStateId_Last

      public static ObjectStateTransition findBySourceObjectStateId_Last(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the last object state transition in the ordered set where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchBySourceObjectStateId_Last

      public static ObjectStateTransition fetchBySourceObjectStateId_Last(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the last object state transition in the ordered set where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition, or null if a matching object state transition could not be found
    • findBySourceObjectStateId_PrevAndNext

      public static ObjectStateTransition[] findBySourceObjectStateId_PrevAndNext(long objectStateTransitionId, long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the object state transitions before and after the current object state transition in the ordered set where sourceObjectStateId = ?.
      Parameters:
      objectStateTransitionId - the primary key of the current object state transition
      sourceObjectStateId - the source object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a object state transition with the primary key could not be found
      NoSuchObjectStateTransitionException
    • removeBySourceObjectStateId

      public static void removeBySourceObjectStateId(long sourceObjectStateId)
      Removes all the object state transitions where sourceObjectStateId = ? from the database.
      Parameters:
      sourceObjectStateId - the source object state ID
    • countBySourceObjectStateId

      public static int countBySourceObjectStateId(long sourceObjectStateId)
      Returns the number of object state transitions where sourceObjectStateId = ?.
      Parameters:
      sourceObjectStateId - the source object state ID
      Returns:
      the number of matching object state transitions
    • findByTargetObjectStateId

      public static List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId)
      Returns all the object state transitions where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      Returns:
      the matching object state transitions
    • findByTargetObjectStateId

      public static List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, int start, int end)
      Returns a range of all the object state transitions where targetObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      targetObjectStateId - the target object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      Returns:
      the range of matching object state transitions
    • findByTargetObjectStateId

      public static List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions where targetObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      targetObjectStateId - the target object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object state transitions
    • findByTargetObjectStateId

      public static List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions where targetObjectStateId = ?.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      targetObjectStateId - the target object state ID
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • findByTargetObjectStateId_First

      public static ObjectStateTransition findByTargetObjectStateId_First(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the first object state transition in the ordered set where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByTargetObjectStateId_First

      public static ObjectStateTransition fetchByTargetObjectStateId_First(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the first object state transition in the ordered set where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state transition, or null if a matching object state transition could not be found
    • findByTargetObjectStateId_Last

      public static ObjectStateTransition findByTargetObjectStateId_Last(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the last object state transition in the ordered set where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a matching object state transition could not be found
      NoSuchObjectStateTransitionException
    • fetchByTargetObjectStateId_Last

      public static ObjectStateTransition fetchByTargetObjectStateId_Last(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns the last object state transition in the ordered set where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state transition, or null if a matching object state transition could not be found
    • findByTargetObjectStateId_PrevAndNext

      public static ObjectStateTransition[] findByTargetObjectStateId_PrevAndNext(long objectStateTransitionId, long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
      Returns the object state transitions before and after the current object state transition in the ordered set where targetObjectStateId = ?.
      Parameters:
      objectStateTransitionId - the primary key of the current object state transition
      targetObjectStateId - the target object state ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a object state transition with the primary key could not be found
      NoSuchObjectStateTransitionException
    • removeByTargetObjectStateId

      public static void removeByTargetObjectStateId(long targetObjectStateId)
      Removes all the object state transitions where targetObjectStateId = ? from the database.
      Parameters:
      targetObjectStateId - the target object state ID
    • countByTargetObjectStateId

      public static int countByTargetObjectStateId(long targetObjectStateId)
      Returns the number of object state transitions where targetObjectStateId = ?.
      Parameters:
      targetObjectStateId - the target object state ID
      Returns:
      the number of matching object state transitions
    • cacheResult

      public static void cacheResult(ObjectStateTransition objectStateTransition)
      Caches the object state transition in the entity cache if it is enabled.
      Parameters:
      objectStateTransition - the object state transition
    • cacheResult

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

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

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

      public static ObjectStateTransition updateImpl(ObjectStateTransition objectStateTransition)
    • findByPrimaryKey

      public static ObjectStateTransition findByPrimaryKey(long objectStateTransitionId) throws NoSuchObjectStateTransitionException
      Returns the object state transition with the primary key or throws a NoSuchObjectStateTransitionException if it could not be found.
      Parameters:
      objectStateTransitionId - the primary key of the object state transition
      Returns:
      the object state transition
      Throws:
      NoSuchObjectStateTransitionException - if a object state transition with the primary key could not be found
      NoSuchObjectStateTransitionException
    • fetchByPrimaryKey

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

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

      public static List<ObjectStateTransition> findAll(int start, int end)
      Returns a range of all the object state transitions.

      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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
      Returns an ordered range of all the object state transitions.

      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 ObjectStateTransitionModelImpl.

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

      public static List<ObjectStateTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object state transitions.

      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 ObjectStateTransitionModelImpl.

      Parameters:
      start - the lower bound of the range of object state transitions
      end - the upper bound of the range of object state transitions (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 transitions
    • removeAll

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

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

      public static ObjectStateTransitionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectStateTransitionPersistence persistence)