Class DDLRecordSetVersionUtil

java.lang.Object
com.liferay.dynamic.data.lists.service.persistence.DDLRecordSetVersionUtil

public class DDLRecordSetVersionUtil extends Object
The persistence utility for the ddl record set version service. This utility wraps com.liferay.dynamic.data.lists.service.persistence.impl.DDLRecordSetVersionPersistenceImpl 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

    • DDLRecordSetVersionUtil

      public DDLRecordSetVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DDLRecordSetVersion update(DDLRecordSetVersion ddlRecordSetVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByRecordSetId

      public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId)
      Returns all the ddl record set versions where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      Returns:
      the matching ddl record set versions
    • findByRecordSetId

      public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId, int start, int end)
      Returns a range of all the ddl record set versions where recordSetId = ?.

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

      Parameters:
      recordSetId - the record set ID
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set versions (not inclusive)
      Returns:
      the range of matching ddl record set versions
    • findByRecordSetId

      public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns an ordered range of all the ddl record set versions where recordSetId = ?.

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

      Parameters:
      recordSetId - the record set ID
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddl record set versions
    • findByRecordSetId

      public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddl record set versions where recordSetId = ?.

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

      Parameters:
      recordSetId - the record set ID
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set 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 ddl record set versions
    • findByRecordSetId_First

      public static DDLRecordSetVersion findByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the first ddl record set version in the ordered set where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a matching ddl record set version could not be found
      NoSuchRecordSetVersionException
    • fetchByRecordSetId_First

      public static DDLRecordSetVersion fetchByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns the first ddl record set version in the ordered set where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddl record set version, or null if a matching ddl record set version could not be found
    • findByRecordSetId_Last

      public static DDLRecordSetVersion findByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the last ddl record set version in the ordered set where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a matching ddl record set version could not be found
      NoSuchRecordSetVersionException
    • fetchByRecordSetId_Last

      public static DDLRecordSetVersion fetchByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns the last ddl record set version in the ordered set where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddl record set version, or null if a matching ddl record set version could not be found
    • findByRecordSetId_PrevAndNext

      public static DDLRecordSetVersion[] findByRecordSetId_PrevAndNext(long recordSetVersionId, long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ?.
      Parameters:
      recordSetVersionId - the primary key of the current ddl record set version
      recordSetId - the record set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a ddl record set version with the primary key could not be found
      NoSuchRecordSetVersionException
    • removeByRecordSetId

      public static void removeByRecordSetId(long recordSetId)
      Removes all the ddl record set versions where recordSetId = ? from the database.
      Parameters:
      recordSetId - the record set ID
    • countByRecordSetId

      public static int countByRecordSetId(long recordSetId)
      Returns the number of ddl record set versions where recordSetId = ?.
      Parameters:
      recordSetId - the record set ID
      Returns:
      the number of matching ddl record set versions
    • findByRS_V

      public static DDLRecordSetVersion findByRS_V(long recordSetId, String version) throws NoSuchRecordSetVersionException
      Returns the ddl record set version where recordSetId = ? and version = ? or throws a NoSuchRecordSetVersionException if it could not be found.
      Parameters:
      recordSetId - the record set ID
      version - the version
      Returns:
      the matching ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a matching ddl record set version could not be found
      NoSuchRecordSetVersionException
    • fetchByRS_V

      public static DDLRecordSetVersion fetchByRS_V(long recordSetId, String version)
      Returns the ddl record set version where recordSetId = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      recordSetId - the record set ID
      version - the version
      Returns:
      the matching ddl record set version, or null if a matching ddl record set version could not be found
    • fetchByRS_V

      public static DDLRecordSetVersion fetchByRS_V(long recordSetId, String version, boolean useFinderCache)
      Returns the ddl record set version where recordSetId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      recordSetId - the record set ID
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ddl record set version, or null if a matching ddl record set version could not be found
    • removeByRS_V

      public static DDLRecordSetVersion removeByRS_V(long recordSetId, String version) throws NoSuchRecordSetVersionException
      Removes the ddl record set version where recordSetId = ? and version = ? from the database.
      Parameters:
      recordSetId - the record set ID
      version - the version
      Returns:
      the ddl record set version that was removed
      Throws:
      NoSuchRecordSetVersionException
    • countByRS_V

      public static int countByRS_V(long recordSetId, String version)
      Returns the number of ddl record set versions where recordSetId = ? and version = ?.
      Parameters:
      recordSetId - the record set ID
      version - the version
      Returns:
      the number of matching ddl record set versions
    • findByRS_S

      public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status)
      Returns all the ddl record set versions where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      Returns:
      the matching ddl record set versions
    • findByRS_S

      public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end)
      Returns a range of all the ddl record set versions where recordSetId = ? 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 DDLRecordSetVersionModelImpl.

      Parameters:
      recordSetId - the record set ID
      status - the status
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set versions (not inclusive)
      Returns:
      the range of matching ddl record set versions
    • findByRS_S

      public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns an ordered range of all the ddl record set versions where recordSetId = ? 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 DDLRecordSetVersionModelImpl.

      Parameters:
      recordSetId - the record set ID
      status - the status
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddl record set versions
    • findByRS_S

      public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddl record set versions where recordSetId = ? 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 DDLRecordSetVersionModelImpl.

      Parameters:
      recordSetId - the record set ID
      status - the status
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set 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 ddl record set versions
    • findByRS_S_First

      public static DDLRecordSetVersion findByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a matching ddl record set version could not be found
      NoSuchRecordSetVersionException
    • fetchByRS_S_First

      public static DDLRecordSetVersion fetchByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddl record set version, or null if a matching ddl record set version could not be found
    • findByRS_S_Last

      public static DDLRecordSetVersion findByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a matching ddl record set version could not be found
      NoSuchRecordSetVersionException
    • fetchByRS_S_Last

      public static DDLRecordSetVersion fetchByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddl record set version, or null if a matching ddl record set version could not be found
    • findByRS_S_PrevAndNext

      public static DDLRecordSetVersion[] findByRS_S_PrevAndNext(long recordSetVersionId, long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException
      Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ? and status = ?.
      Parameters:
      recordSetVersionId - the primary key of the current ddl record set version
      recordSetId - the record set ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a ddl record set version with the primary key could not be found
      NoSuchRecordSetVersionException
    • removeByRS_S

      public static void removeByRS_S(long recordSetId, int status)
      Removes all the ddl record set versions where recordSetId = ? and status = ? from the database.
      Parameters:
      recordSetId - the record set ID
      status - the status
    • countByRS_S

      public static int countByRS_S(long recordSetId, int status)
      Returns the number of ddl record set versions where recordSetId = ? and status = ?.
      Parameters:
      recordSetId - the record set ID
      status - the status
      Returns:
      the number of matching ddl record set versions
    • cacheResult

      public static void cacheResult(DDLRecordSetVersion ddlRecordSetVersion)
      Caches the ddl record set version in the entity cache if it is enabled.
      Parameters:
      ddlRecordSetVersion - the ddl record set version
    • cacheResult

      public static void cacheResult(List<DDLRecordSetVersion> ddlRecordSetVersions)
      Caches the ddl record set versions in the entity cache if it is enabled.
      Parameters:
      ddlRecordSetVersions - the ddl record set versions
    • create

      public static DDLRecordSetVersion create(long recordSetVersionId)
      Creates a new ddl record set version with the primary key. Does not add the ddl record set version to the database.
      Parameters:
      recordSetVersionId - the primary key for the new ddl record set version
      Returns:
      the new ddl record set version
    • remove

      public static DDLRecordSetVersion remove(long recordSetVersionId) throws NoSuchRecordSetVersionException
      Removes the ddl record set version with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      recordSetVersionId - the primary key of the ddl record set version
      Returns:
      the ddl record set version that was removed
      Throws:
      NoSuchRecordSetVersionException - if a ddl record set version with the primary key could not be found
      NoSuchRecordSetVersionException
    • updateImpl

      public static DDLRecordSetVersion updateImpl(DDLRecordSetVersion ddlRecordSetVersion)
    • findByPrimaryKey

      public static DDLRecordSetVersion findByPrimaryKey(long recordSetVersionId) throws NoSuchRecordSetVersionException
      Returns the ddl record set version with the primary key or throws a NoSuchRecordSetVersionException if it could not be found.
      Parameters:
      recordSetVersionId - the primary key of the ddl record set version
      Returns:
      the ddl record set version
      Throws:
      NoSuchRecordSetVersionException - if a ddl record set version with the primary key could not be found
      NoSuchRecordSetVersionException
    • fetchByPrimaryKey

      public static DDLRecordSetVersion fetchByPrimaryKey(long recordSetVersionId)
      Returns the ddl record set version with the primary key or returns null if it could not be found.
      Parameters:
      recordSetVersionId - the primary key of the ddl record set version
      Returns:
      the ddl record set version, or null if a ddl record set version with the primary key could not be found
    • findAll

      public static List<DDLRecordSetVersion> findAll()
      Returns all the ddl record set versions.
      Returns:
      the ddl record set versions
    • findAll

      public static List<DDLRecordSetVersion> findAll(int start, int end)
      Returns a range of all the ddl record set 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 DDLRecordSetVersionModelImpl.

      Parameters:
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set versions (not inclusive)
      Returns:
      the range of ddl record set versions
    • findAll

      public static List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator)
      Returns an ordered range of all the ddl record set 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 DDLRecordSetVersionModelImpl.

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

      public static List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddl record set 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 DDLRecordSetVersionModelImpl.

      Parameters:
      start - the lower bound of the range of ddl record set versions
      end - the upper bound of the range of ddl record set 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 ddl record set versions
    • removeAll

      public static void removeAll()
      Removes all the ddl record set versions from the database.
    • countAll

      public static int countAll()
      Returns the number of ddl record set versions.
      Returns:
      the number of ddl record set versions
    • getPersistence

      public static DDLRecordSetVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDLRecordSetVersionPersistence persistence)