Class DDMFormInstanceVersionUtil

java.lang.Object
com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceVersionUtil

public class DDMFormInstanceVersionUtil extends Object
The persistence utility for the ddm form instance version service. This utility wraps com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFormInstanceVersionPersistenceImpl 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

    • DDMFormInstanceVersionUtil

      public DDMFormInstanceVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DDMFormInstanceVersion update(DDMFormInstanceVersion ddmFormInstanceVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByFormInstanceId

      public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId)
      Returns all the ddm form instance versions where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      Returns:
      the matching ddm form instance versions
    • findByFormInstanceId

      public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end)
      Returns a range of all the ddm form instance versions where formInstanceId = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance versions (not inclusive)
      Returns:
      the range of matching ddm form instance versions
    • findByFormInstanceId

      public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm form instance versions
    • findByFormInstanceId

      public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance 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 ddm form instance versions
    • findByFormInstanceId_First

      public static DDMFormInstanceVersion findByFormInstanceId_First(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the first ddm form instance version in the ordered set where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a matching ddm form instance version could not be found
      NoSuchFormInstanceVersionException
    • fetchByFormInstanceId_First

      public static DDMFormInstanceVersion fetchByFormInstanceId_First(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns the first ddm form instance version in the ordered set where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • findByFormInstanceId_Last

      public static DDMFormInstanceVersion findByFormInstanceId_Last(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the last ddm form instance version in the ordered set where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a matching ddm form instance version could not be found
      NoSuchFormInstanceVersionException
    • fetchByFormInstanceId_Last

      public static DDMFormInstanceVersion fetchByFormInstanceId_Last(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns the last ddm form instance version in the ordered set where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • findByFormInstanceId_PrevAndNext

      public static DDMFormInstanceVersion[] findByFormInstanceId_PrevAndNext(long formInstanceVersionId, long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ?.
      Parameters:
      formInstanceVersionId - the primary key of the current ddm form instance version
      formInstanceId - the form instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a ddm form instance version with the primary key could not be found
      NoSuchFormInstanceVersionException
    • removeByFormInstanceId

      public static void removeByFormInstanceId(long formInstanceId)
      Removes all the ddm form instance versions where formInstanceId = ? from the database.
      Parameters:
      formInstanceId - the form instance ID
    • countByFormInstanceId

      public static int countByFormInstanceId(long formInstanceId)
      Returns the number of ddm form instance versions where formInstanceId = ?.
      Parameters:
      formInstanceId - the form instance ID
      Returns:
      the number of matching ddm form instance versions
    • findByF_V

      public static DDMFormInstanceVersion findByF_V(long formInstanceId, String version) throws NoSuchFormInstanceVersionException
      Returns the ddm form instance version where formInstanceId = ? and version = ? or throws a NoSuchFormInstanceVersionException if it could not be found.
      Parameters:
      formInstanceId - the form instance ID
      version - the version
      Returns:
      the matching ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a matching ddm form instance version could not be found
      NoSuchFormInstanceVersionException
    • fetchByF_V

      public static DDMFormInstanceVersion fetchByF_V(long formInstanceId, String version)
      Returns the ddm form instance version where formInstanceId = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      formInstanceId - the form instance ID
      version - the version
      Returns:
      the matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • fetchByF_V

      public static DDMFormInstanceVersion fetchByF_V(long formInstanceId, String version, boolean useFinderCache)
      Returns the ddm form instance version where formInstanceId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      formInstanceId - the form instance ID
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • removeByF_V

      public static DDMFormInstanceVersion removeByF_V(long formInstanceId, String version) throws NoSuchFormInstanceVersionException
      Removes the ddm form instance version where formInstanceId = ? and version = ? from the database.
      Parameters:
      formInstanceId - the form instance ID
      version - the version
      Returns:
      the ddm form instance version that was removed
      Throws:
      NoSuchFormInstanceVersionException
    • countByF_V

      public static int countByF_V(long formInstanceId, String version)
      Returns the number of ddm form instance versions where formInstanceId = ? and version = ?.
      Parameters:
      formInstanceId - the form instance ID
      version - the version
      Returns:
      the number of matching ddm form instance versions
    • findByF_S

      public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status)
      Returns all the ddm form instance versions where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      Returns:
      the matching ddm form instance versions
    • findByF_S

      public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end)
      Returns a range of all the ddm form instance versions where formInstanceId = ? and status = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      status - the status
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance versions (not inclusive)
      Returns:
      the range of matching ddm form instance versions
    • findByF_S

      public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      status - the status
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm form instance versions
    • findByF_S

      public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.

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

      Parameters:
      formInstanceId - the form instance ID
      status - the status
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance 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 ddm form instance versions
    • findByF_S_First

      public static DDMFormInstanceVersion findByF_S_First(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a matching ddm form instance version could not be found
      NoSuchFormInstanceVersionException
    • fetchByF_S_First

      public static DDMFormInstanceVersion fetchByF_S_First(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • findByF_S_Last

      public static DDMFormInstanceVersion findByF_S_Last(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a matching ddm form instance version could not be found
      NoSuchFormInstanceVersionException
    • fetchByF_S_Last

      public static DDMFormInstanceVersion fetchByF_S_Last(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm form instance version, or null if a matching ddm form instance version could not be found
    • findByF_S_PrevAndNext

      public static DDMFormInstanceVersion[] findByF_S_PrevAndNext(long formInstanceVersionId, long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException
      Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceVersionId - the primary key of the current ddm form instance version
      formInstanceId - the form instance ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a ddm form instance version with the primary key could not be found
      NoSuchFormInstanceVersionException
    • removeByF_S

      public static void removeByF_S(long formInstanceId, int status)
      Removes all the ddm form instance versions where formInstanceId = ? and status = ? from the database.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
    • countByF_S

      public static int countByF_S(long formInstanceId, int status)
      Returns the number of ddm form instance versions where formInstanceId = ? and status = ?.
      Parameters:
      formInstanceId - the form instance ID
      status - the status
      Returns:
      the number of matching ddm form instance versions
    • cacheResult

      public static void cacheResult(DDMFormInstanceVersion ddmFormInstanceVersion)
      Caches the ddm form instance version in the entity cache if it is enabled.
      Parameters:
      ddmFormInstanceVersion - the ddm form instance version
    • cacheResult

      public static void cacheResult(List<DDMFormInstanceVersion> ddmFormInstanceVersions)
      Caches the ddm form instance versions in the entity cache if it is enabled.
      Parameters:
      ddmFormInstanceVersions - the ddm form instance versions
    • create

      public static DDMFormInstanceVersion create(long formInstanceVersionId)
      Creates a new ddm form instance version with the primary key. Does not add the ddm form instance version to the database.
      Parameters:
      formInstanceVersionId - the primary key for the new ddm form instance version
      Returns:
      the new ddm form instance version
    • remove

      public static DDMFormInstanceVersion remove(long formInstanceVersionId) throws NoSuchFormInstanceVersionException
      Removes the ddm form instance version with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      formInstanceVersionId - the primary key of the ddm form instance version
      Returns:
      the ddm form instance version that was removed
      Throws:
      NoSuchFormInstanceVersionException - if a ddm form instance version with the primary key could not be found
      NoSuchFormInstanceVersionException
    • updateImpl

      public static DDMFormInstanceVersion updateImpl(DDMFormInstanceVersion ddmFormInstanceVersion)
    • findByPrimaryKey

      public static DDMFormInstanceVersion findByPrimaryKey(long formInstanceVersionId) throws NoSuchFormInstanceVersionException
      Returns the ddm form instance version with the primary key or throws a NoSuchFormInstanceVersionException if it could not be found.
      Parameters:
      formInstanceVersionId - the primary key of the ddm form instance version
      Returns:
      the ddm form instance version
      Throws:
      NoSuchFormInstanceVersionException - if a ddm form instance version with the primary key could not be found
      NoSuchFormInstanceVersionException
    • fetchByPrimaryKey

      public static DDMFormInstanceVersion fetchByPrimaryKey(long formInstanceVersionId)
      Returns the ddm form instance version with the primary key or returns null if it could not be found.
      Parameters:
      formInstanceVersionId - the primary key of the ddm form instance version
      Returns:
      the ddm form instance version, or null if a ddm form instance version with the primary key could not be found
    • findAll

      public static List<DDMFormInstanceVersion> findAll()
      Returns all the ddm form instance versions.
      Returns:
      the ddm form instance versions
    • findAll

      public static List<DDMFormInstanceVersion> findAll(int start, int end)
      Returns a range of all the ddm form instance 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 DDMFormInstanceVersionModelImpl.

      Parameters:
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance versions (not inclusive)
      Returns:
      the range of ddm form instance versions
    • findAll

      public static List<DDMFormInstanceVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator)
      Returns an ordered range of all the ddm form instance 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 DDMFormInstanceVersionModelImpl.

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

      public static List<DDMFormInstanceVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm form instance 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 DDMFormInstanceVersionModelImpl.

      Parameters:
      start - the lower bound of the range of ddm form instance versions
      end - the upper bound of the range of ddm form instance 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 ddm form instance versions
    • removeAll

      public static void removeAll()
      Removes all the ddm form instance versions from the database.
    • countAll

      public static int countAll()
      Returns the number of ddm form instance versions.
      Returns:
      the number of ddm form instance versions
    • getPersistence

      public static DDMFormInstanceVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDMFormInstanceVersionPersistence persistence)