Class ObjectStateUtil

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

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

    • ObjectStateUtil

      public ObjectStateUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId)
      Returns all the object states where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      Returns:
      the matching object states
    • findByListTypeEntryId

      public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end)
      Returns a range of all the object states where listTypeEntryId = ?.

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

      Parameters:
      listTypeEntryId - the list type entry ID
      start - the lower bound of the range of object states
      end - the upper bound of the range of object states (not inclusive)
      Returns:
      the range of matching object states
    • findByListTypeEntryId

      public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns an ordered range of all the object states where listTypeEntryId = ?.

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

      Parameters:
      listTypeEntryId - the list type entry ID
      start - the lower bound of the range of object states
      end - the upper bound of the range of object states (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object states
    • findByListTypeEntryId

      public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object states where listTypeEntryId = ?.

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

      Parameters:
      listTypeEntryId - the list type entry ID
      start - the lower bound of the range of object states
      end - the upper bound of the range of object states (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 states
    • findByListTypeEntryId_First

      public static ObjectState findByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
      Returns the first object state in the ordered set where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state
      Throws:
      NoSuchObjectStateException - if a matching object state could not be found
      NoSuchObjectStateException
    • fetchByListTypeEntryId_First

      public static ObjectState fetchByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns the first object state in the ordered set where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object state, or null if a matching object state could not be found
    • findByListTypeEntryId_Last

      public static ObjectState findByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
      Returns the last object state in the ordered set where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state
      Throws:
      NoSuchObjectStateException - if a matching object state could not be found
      NoSuchObjectStateException
    • fetchByListTypeEntryId_Last

      public static ObjectState fetchByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns the last object state in the ordered set where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object state, or null if a matching object state could not be found
    • findByListTypeEntryId_PrevAndNext

      public static ObjectState[] findByListTypeEntryId_PrevAndNext(long objectStateId, long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
      Returns the object states before and after the current object state in the ordered set where listTypeEntryId = ?.
      Parameters:
      objectStateId - the primary key of the current object state
      listTypeEntryId - the list type entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object state
      Throws:
      NoSuchObjectStateException - if a object state with the primary key could not be found
      NoSuchObjectStateException
    • removeByListTypeEntryId

      public static void removeByListTypeEntryId(long listTypeEntryId)
      Removes all the object states where listTypeEntryId = ? from the database.
      Parameters:
      listTypeEntryId - the list type entry ID
    • countByListTypeEntryId

      public static int countByListTypeEntryId(long listTypeEntryId)
      Returns the number of object states where listTypeEntryId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      Returns:
      the number of matching object states
    • findByObjectStateFlowId

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

      public static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end)
      Returns a range of all the object states 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 ObjectStateModelImpl.

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

      public static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns an ordered range of all the object states 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 ObjectStateModelImpl.

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

      public static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object states 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 ObjectStateModelImpl.

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

      public static ObjectState findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
      Returns the first object state 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
      Throws:
      NoSuchObjectStateException - if a matching object state could not be found
      NoSuchObjectStateException
    • fetchByObjectStateFlowId_First

      public static ObjectState fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns the first object state 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, or null if a matching object state could not be found
    • findByObjectStateFlowId_Last

      public static ObjectState findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
      Returns the last object state 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
      Throws:
      NoSuchObjectStateException - if a matching object state could not be found
      NoSuchObjectStateException
    • fetchByObjectStateFlowId_Last

      public static ObjectState fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
      Returns the last object state 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, or null if a matching object state could not be found
    • findByObjectStateFlowId_PrevAndNext

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

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

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

      public static ObjectState findByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException
      Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws a NoSuchObjectStateException if it could not be found.
      Parameters:
      listTypeEntryId - the list type entry ID
      objectStateFlowId - the object state flow ID
      Returns:
      the matching object state
      Throws:
      NoSuchObjectStateException - if a matching object state could not be found
      NoSuchObjectStateException
    • fetchByLTEI_OSFI

      public static ObjectState fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
      Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      listTypeEntryId - the list type entry ID
      objectStateFlowId - the object state flow ID
      Returns:
      the matching object state, or null if a matching object state could not be found
    • fetchByLTEI_OSFI

      public static ObjectState fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId, boolean useFinderCache)
      Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      listTypeEntryId - the list type entry ID
      objectStateFlowId - the object state flow ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object state, or null if a matching object state could not be found
    • removeByLTEI_OSFI

      public static ObjectState removeByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException
      Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.
      Parameters:
      listTypeEntryId - the list type entry ID
      objectStateFlowId - the object state flow ID
      Returns:
      the object state that was removed
      Throws:
      NoSuchObjectStateException
    • countByLTEI_OSFI

      public static int countByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
      Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.
      Parameters:
      listTypeEntryId - the list type entry ID
      objectStateFlowId - the object state flow ID
      Returns:
      the number of matching object states
    • cacheResult

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

      public static void cacheResult(List<ObjectState> objectStates)
      Caches the object states in the entity cache if it is enabled.
      Parameters:
      objectStates - the object states
    • create

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

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

      public static ObjectState updateImpl(ObjectState objectState)
    • findByPrimaryKey

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

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

      public static List<ObjectState> findAll()
      Returns all the object states.
      Returns:
      the object states
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static ObjectStatePersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectStatePersistence persistence)