Interface ObjectStatePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<ObjectState>

@ProviderType public interface ObjectStatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<ObjectState>
The persistence interface for the object state service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(ObjectState objectState)
    Caches the object state in the entity cache if it is enabled.
    void
    cacheResult(List<ObjectState> objectStates)
    Caches the object states in the entity cache if it is enabled.
    int
    Returns the number of object states.
    int
    countByListTypeEntryId(long listTypeEntryId)
    Returns the number of object states where listTypeEntryId = ?.
    int
    countByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
    Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.
    int
    countByObjectStateFlowId(long objectStateFlowId)
    Returns the number of object states where objectStateFlowId = ?.
    int
    Returns the number of object states where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of object states where uuid = ? and companyId = ?.
    create(long objectStateId)
    Creates a new object state with the primary key.
    fetchByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where listTypeEntryId = ?.
    fetchByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where listTypeEntryId = ?.
    fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
    Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returns null if it could not be found.
    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.
    fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where objectStateFlowId = ?.
    fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where objectStateFlowId = ?.
    fetchByPrimaryKey(long objectStateId)
    Returns the object state with the primary key or returns null if it could not be found.
    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 = ?.
    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 = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where uuid = ?.
    Returns all the object states.
    findAll(int start, int end)
    Returns a range of all the object states.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns an ordered range of all the object states.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object states.
    findByListTypeEntryId(long listTypeEntryId)
    Returns all the object states where listTypeEntryId = ?.
    findByListTypeEntryId(long listTypeEntryId, int start, int end)
    Returns a range of all the object states where listTypeEntryId = ?.
    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 = ?.
    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 = ?.
    findByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where listTypeEntryId = ?.
    findByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where listTypeEntryId = ?.
    findByListTypeEntryId_PrevAndNext(long objectStateId, long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the object states before and after the current object state in the ordered set where listTypeEntryId = ?.
    findByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
    Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws a NoSuchObjectStateException if it could not be found.
    findByObjectStateFlowId(long objectStateFlowId)
    Returns all the object states where objectStateFlowId = ?.
    findByObjectStateFlowId(long objectStateFlowId, int start, int end)
    Returns a range of all the object states where objectStateFlowId = ?.
    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 = ?.
    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 = ?.
    findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where objectStateFlowId = ?.
    findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where objectStateFlowId = ?.
    findByObjectStateFlowId_PrevAndNext(long objectStateId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the object states before and after the current object state in the ordered set where objectStateFlowId = ?.
    findByPrimaryKey(long objectStateId)
    Returns the object state with the primary key or throws a NoSuchObjectStateException if it could not be found.
    Returns all the object states where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the object states where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the object states where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the object states where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    findByUuid_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 = ?.
    findByUuid_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 = ?.
    findByUuid_C_PrevAndNext(long objectStateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the object states before and after the current object state in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the first object state in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the last object state in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long objectStateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
    Returns the object states before and after the current object state in the ordered set where uuid = ?.
    remove(long objectStateId)
    Removes the object state with the primary key from the database.
    void
    Removes all the object states from the database.
    void
    removeByListTypeEntryId(long listTypeEntryId)
    Removes all the object states where listTypeEntryId = ? from the database.
    removeByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
    Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.
    void
    removeByObjectStateFlowId(long objectStateFlowId)
    Removes all the object states where objectStateFlowId = ? from the database.
    void
    Removes all the object states where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the object states where uuid = ? and companyId = ? from the database.
    updateImpl(ObjectState objectState)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

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

      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

      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

      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

      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
    • fetchByUuid_First

      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

      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
    • fetchByUuid_Last

      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

      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
    • removeByUuid

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

      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

      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

      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

      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

      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

      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
    • fetchByUuid_C_First

      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

      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
    • fetchByUuid_C_Last

      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

      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
    • removeByUuid_C

      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

      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

      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

      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

      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

      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

      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
    • fetchByListTypeEntryId_First

      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

      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
    • fetchByListTypeEntryId_Last

      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

      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
    • removeByListTypeEntryId

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

      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

      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

      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

      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

      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

      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
    • fetchByObjectStateFlowId_First

      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

      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
    • fetchByObjectStateFlowId_Last

      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

      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
    • removeByObjectStateFlowId

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

      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

      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
    • fetchByLTEI_OSFI

      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

      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

      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

      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

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

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

      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

      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
    • updateImpl

      ObjectState updateImpl(ObjectState objectState)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

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

      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

      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

      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

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

      int countAll()
      Returns the number of object states.
      Returns:
      the number of object states