Class ObjectEntryVersionUtil

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

public class ObjectEntryVersionUtil extends Object
The persistence utility for the object entry version service. This utility wraps com.liferay.object.service.persistence.impl.ObjectEntryVersionPersistenceImpl 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

    • ObjectEntryVersionUtil

      public ObjectEntryVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<ObjectEntryVersion> findByObjectDefinitionId(long objectDefinitionId)
      Returns all the object entry versions where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the matching object entry versions
    • findByObjectDefinitionId

      public static List<ObjectEntryVersion> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
      Returns a range of all the object entry versions where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (not inclusive)
      Returns:
      the range of matching object entry versions
    • findByObjectDefinitionId

      public static List<ObjectEntryVersion> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns an ordered range of all the object entry versions where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object entry versions
    • findByObjectDefinitionId

      public static List<ObjectEntryVersion> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object entry versions where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (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 entry versions
    • findByObjectDefinitionId_First

      public static ObjectEntryVersion findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the first object entry version in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a matching object entry version could not be found
      NoSuchObjectEntryVersionException
    • fetchByObjectDefinitionId_First

      public static ObjectEntryVersion fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns the first object entry version in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object entry version, or null if a matching object entry version could not be found
    • findByObjectDefinitionId_Last

      public static ObjectEntryVersion findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the last object entry version in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a matching object entry version could not be found
      NoSuchObjectEntryVersionException
    • fetchByObjectDefinitionId_Last

      public static ObjectEntryVersion fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns the last object entry version in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object entry version, or null if a matching object entry version could not be found
    • findByObjectDefinitionId_PrevAndNext

      public static ObjectEntryVersion[] findByObjectDefinitionId_PrevAndNext(long objectEntryVersionId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the object entry versions before and after the current object entry version in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectEntryVersionId - the primary key of the current object entry version
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a object entry version with the primary key could not be found
      NoSuchObjectEntryVersionException
    • removeByObjectDefinitionId

      public static void removeByObjectDefinitionId(long objectDefinitionId)
      Removes all the object entry versions where objectDefinitionId = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
    • countByObjectDefinitionId

      public static int countByObjectDefinitionId(long objectDefinitionId)
      Returns the number of object entry versions where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the number of matching object entry versions
    • findByObjectEntryId

      public static List<ObjectEntryVersion> findByObjectEntryId(long objectEntryId)
      Returns all the object entry versions where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      Returns:
      the matching object entry versions
    • findByObjectEntryId

      public static List<ObjectEntryVersion> findByObjectEntryId(long objectEntryId, int start, int end)
      Returns a range of all the object entry versions where objectEntryId = ?.

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

      Parameters:
      objectEntryId - the object entry ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (not inclusive)
      Returns:
      the range of matching object entry versions
    • findByObjectEntryId

      public static List<ObjectEntryVersion> findByObjectEntryId(long objectEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns an ordered range of all the object entry versions where objectEntryId = ?.

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

      Parameters:
      objectEntryId - the object entry ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object entry versions
    • findByObjectEntryId

      public static List<ObjectEntryVersion> findByObjectEntryId(long objectEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object entry versions where objectEntryId = ?.

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

      Parameters:
      objectEntryId - the object entry ID
      start - the lower bound of the range of object entry versions
      end - the upper bound of the range of object entry versions (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 entry versions
    • findByObjectEntryId_First

      public static ObjectEntryVersion findByObjectEntryId_First(long objectEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the first object entry version in the ordered set where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a matching object entry version could not be found
      NoSuchObjectEntryVersionException
    • fetchByObjectEntryId_First

      public static ObjectEntryVersion fetchByObjectEntryId_First(long objectEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns the first object entry version in the ordered set where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object entry version, or null if a matching object entry version could not be found
    • findByObjectEntryId_Last

      public static ObjectEntryVersion findByObjectEntryId_Last(long objectEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the last object entry version in the ordered set where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a matching object entry version could not be found
      NoSuchObjectEntryVersionException
    • fetchByObjectEntryId_Last

      public static ObjectEntryVersion fetchByObjectEntryId_Last(long objectEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator)
      Returns the last object entry version in the ordered set where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object entry version, or null if a matching object entry version could not be found
    • findByObjectEntryId_PrevAndNext

      public static ObjectEntryVersion[] findByObjectEntryId_PrevAndNext(long objectEntryVersionId, long objectEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntryVersion> orderByComparator) throws NoSuchObjectEntryVersionException
      Returns the object entry versions before and after the current object entry version in the ordered set where objectEntryId = ?.
      Parameters:
      objectEntryVersionId - the primary key of the current object entry version
      objectEntryId - the object entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a object entry version with the primary key could not be found
      NoSuchObjectEntryVersionException
    • removeByObjectEntryId

      public static void removeByObjectEntryId(long objectEntryId)
      Removes all the object entry versions where objectEntryId = ? from the database.
      Parameters:
      objectEntryId - the object entry ID
    • countByObjectEntryId

      public static int countByObjectEntryId(long objectEntryId)
      Returns the number of object entry versions where objectEntryId = ?.
      Parameters:
      objectEntryId - the object entry ID
      Returns:
      the number of matching object entry versions
    • findByOEI_V

      public static ObjectEntryVersion findByOEI_V(long objectEntryId, int version) throws NoSuchObjectEntryVersionException
      Returns the object entry version where objectEntryId = ? and version = ? or throws a NoSuchObjectEntryVersionException if it could not be found.
      Parameters:
      objectEntryId - the object entry ID
      version - the version
      Returns:
      the matching object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a matching object entry version could not be found
      NoSuchObjectEntryVersionException
    • fetchByOEI_V

      public static ObjectEntryVersion fetchByOEI_V(long objectEntryId, int version)
      Returns the object entry version where objectEntryId = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      objectEntryId - the object entry ID
      version - the version
      Returns:
      the matching object entry version, or null if a matching object entry version could not be found
    • fetchByOEI_V

      public static ObjectEntryVersion fetchByOEI_V(long objectEntryId, int version, boolean useFinderCache)
      Returns the object entry version where objectEntryId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      objectEntryId - the object entry ID
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object entry version, or null if a matching object entry version could not be found
    • removeByOEI_V

      public static ObjectEntryVersion removeByOEI_V(long objectEntryId, int version) throws NoSuchObjectEntryVersionException
      Removes the object entry version where objectEntryId = ? and version = ? from the database.
      Parameters:
      objectEntryId - the object entry ID
      version - the version
      Returns:
      the object entry version that was removed
      Throws:
      NoSuchObjectEntryVersionException
    • countByOEI_V

      public static int countByOEI_V(long objectEntryId, int version)
      Returns the number of object entry versions where objectEntryId = ? and version = ?.
      Parameters:
      objectEntryId - the object entry ID
      version - the version
      Returns:
      the number of matching object entry versions
    • cacheResult

      public static void cacheResult(ObjectEntryVersion objectEntryVersion)
      Caches the object entry version in the entity cache if it is enabled.
      Parameters:
      objectEntryVersion - the object entry version
    • cacheResult

      public static void cacheResult(List<ObjectEntryVersion> objectEntryVersions)
      Caches the object entry versions in the entity cache if it is enabled.
      Parameters:
      objectEntryVersions - the object entry versions
    • create

      public static ObjectEntryVersion create(long objectEntryVersionId)
      Creates a new object entry version with the primary key. Does not add the object entry version to the database.
      Parameters:
      objectEntryVersionId - the primary key for the new object entry version
      Returns:
      the new object entry version
    • remove

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

      public static ObjectEntryVersion updateImpl(ObjectEntryVersion objectEntryVersion)
    • findByPrimaryKey

      public static ObjectEntryVersion findByPrimaryKey(long objectEntryVersionId) throws NoSuchObjectEntryVersionException
      Returns the object entry version with the primary key or throws a NoSuchObjectEntryVersionException if it could not be found.
      Parameters:
      objectEntryVersionId - the primary key of the object entry version
      Returns:
      the object entry version
      Throws:
      NoSuchObjectEntryVersionException - if a object entry version with the primary key could not be found
      NoSuchObjectEntryVersionException
    • fetchByPrimaryKey

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

      public static List<ObjectEntryVersion> findAll()
      Returns all the object entry versions.
      Returns:
      the object entry versions
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static ObjectEntryVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectEntryVersionPersistence persistence)