Class DDMStructureVersionUtil

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

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

    • DDMStructureVersionUtil

      public DDMStructureVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByStructureId

      public static List<DDMStructureVersion> findByStructureId(long structureId)
      Returns all the ddm structure versions where structureId = ?.
      Parameters:
      structureId - the structure ID
      Returns:
      the matching ddm structure versions
    • findByStructureId

      public static List<DDMStructureVersion> findByStructureId(long structureId, int start, int end)
      Returns a range of all the ddm structure versions where structureId = ?.

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

      Parameters:
      structureId - the structure ID
      start - the lower bound of the range of ddm structure versions
      end - the upper bound of the range of ddm structure versions (not inclusive)
      Returns:
      the range of matching ddm structure versions
    • findByStructureId

      public static List<DDMStructureVersion> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
      Returns an ordered range of all the ddm structure versions where structureId = ?.

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

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

      public static List<DDMStructureVersion> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm structure versions where structureId = ?.

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

      Parameters:
      structureId - the structure ID
      start - the lower bound of the range of ddm structure versions
      end - the upper bound of the range of ddm structure 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 structure versions
    • findByStructureId_First

      public static DDMStructureVersion findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
      Returns the first ddm structure version in the ordered set where structureId = ?.
      Parameters:
      structureId - the structure ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm structure version
      Throws:
      NoSuchStructureVersionException - if a matching ddm structure version could not be found
      NoSuchStructureVersionException
    • fetchByStructureId_First

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

      public static DDMStructureVersion findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
      Returns the last ddm structure version in the ordered set where structureId = ?.
      Parameters:
      structureId - the structure ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm structure version
      Throws:
      NoSuchStructureVersionException - if a matching ddm structure version could not be found
      NoSuchStructureVersionException
    • fetchByStructureId_Last

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

      public static DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
      Returns the ddm structure versions before and after the current ddm structure version in the ordered set where structureId = ?.
      Parameters:
      structureVersionId - the primary key of the current ddm structure version
      structureId - the structure ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm structure version
      Throws:
      NoSuchStructureVersionException - if a ddm structure version with the primary key could not be found
      NoSuchStructureVersionException
    • removeByStructureId

      public static void removeByStructureId(long structureId)
      Removes all the ddm structure versions where structureId = ? from the database.
      Parameters:
      structureId - the structure ID
    • countByStructureId

      public static int countByStructureId(long structureId)
      Returns the number of ddm structure versions where structureId = ?.
      Parameters:
      structureId - the structure ID
      Returns:
      the number of matching ddm structure versions
    • findByS_V

      public static DDMStructureVersion findByS_V(long structureId, String version) throws NoSuchStructureVersionException
      Returns the ddm structure version where structureId = ? and version = ? or throws a NoSuchStructureVersionException if it could not be found.
      Parameters:
      structureId - the structure ID
      version - the version
      Returns:
      the matching ddm structure version
      Throws:
      NoSuchStructureVersionException - if a matching ddm structure version could not be found
      NoSuchStructureVersionException
    • fetchByS_V

      public static DDMStructureVersion fetchByS_V(long structureId, String version)
      Returns the ddm structure version where structureId = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      structureId - the structure ID
      version - the version
      Returns:
      the matching ddm structure version, or null if a matching ddm structure version could not be found
    • fetchByS_V

      public static DDMStructureVersion fetchByS_V(long structureId, String version, boolean useFinderCache)
      Returns the ddm structure version where structureId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      structureId - the structure ID
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ddm structure version, or null if a matching ddm structure version could not be found
    • removeByS_V

      public static DDMStructureVersion removeByS_V(long structureId, String version) throws NoSuchStructureVersionException
      Removes the ddm structure version where structureId = ? and version = ? from the database.
      Parameters:
      structureId - the structure ID
      version - the version
      Returns:
      the ddm structure version that was removed
      Throws:
      NoSuchStructureVersionException
    • countByS_V

      public static int countByS_V(long structureId, String version)
      Returns the number of ddm structure versions where structureId = ? and version = ?.
      Parameters:
      structureId - the structure ID
      version - the version
      Returns:
      the number of matching ddm structure versions
    • findByS_S

      public static List<DDMStructureVersion> findByS_S(long structureId, int status)
      Returns all the ddm structure versions where structureId = ? and status = ?.
      Parameters:
      structureId - the structure ID
      status - the status
      Returns:
      the matching ddm structure versions
    • findByS_S

      public static List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end)
      Returns a range of all the ddm structure versions where structureId = ? 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 DDMStructureVersionModelImpl.

      Parameters:
      structureId - the structure ID
      status - the status
      start - the lower bound of the range of ddm structure versions
      end - the upper bound of the range of ddm structure versions (not inclusive)
      Returns:
      the range of matching ddm structure versions
    • findByS_S

      public static List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
      Returns an ordered range of all the ddm structure versions where structureId = ? 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 DDMStructureVersionModelImpl.

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

      public static List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm structure versions where structureId = ? 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 DDMStructureVersionModelImpl.

      Parameters:
      structureId - the structure ID
      status - the status
      start - the lower bound of the range of ddm structure versions
      end - the upper bound of the range of ddm structure 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 structure versions
    • findByS_S_First

      public static DDMStructureVersion findByS_S_First(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
      Returns the first ddm structure version in the ordered set where structureId = ? and status = ?.
      Parameters:
      structureId - the structure ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm structure version
      Throws:
      NoSuchStructureVersionException - if a matching ddm structure version could not be found
      NoSuchStructureVersionException
    • fetchByS_S_First

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

      public static DDMStructureVersion findByS_S_Last(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
      Returns the last ddm structure version in the ordered set where structureId = ? and status = ?.
      Parameters:
      structureId - the structure ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm structure version
      Throws:
      NoSuchStructureVersionException - if a matching ddm structure version could not be found
      NoSuchStructureVersionException
    • fetchByS_S_Last

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

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

      public static void removeByS_S(long structureId, int status)
      Removes all the ddm structure versions where structureId = ? and status = ? from the database.
      Parameters:
      structureId - the structure ID
      status - the status
    • countByS_S

      public static int countByS_S(long structureId, int status)
      Returns the number of ddm structure versions where structureId = ? and status = ?.
      Parameters:
      structureId - the structure ID
      status - the status
      Returns:
      the number of matching ddm structure versions
    • cacheResult

      public static void cacheResult(DDMStructureVersion ddmStructureVersion)
      Caches the ddm structure version in the entity cache if it is enabled.
      Parameters:
      ddmStructureVersion - the ddm structure version
    • cacheResult

      public static void cacheResult(List<DDMStructureVersion> ddmStructureVersions)
      Caches the ddm structure versions in the entity cache if it is enabled.
      Parameters:
      ddmStructureVersions - the ddm structure versions
    • create

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

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

      public static DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)
    • findByPrimaryKey

      public static DDMStructureVersion findByPrimaryKey(long structureVersionId) throws NoSuchStructureVersionException
      Returns the ddm structure version with the primary key or throws a NoSuchStructureVersionException if it could not be found.
      Parameters:
      structureVersionId - the primary key of the ddm structure version
      Returns:
      the ddm structure version
      Throws:
      NoSuchStructureVersionException - if a ddm structure version with the primary key could not be found
      NoSuchStructureVersionException
    • fetchByPrimaryKey

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

      public static List<DDMStructureVersion> findAll()
      Returns all the ddm structure versions.
      Returns:
      the ddm structure versions
    • findAll

      public static List<DDMStructureVersion> findAll(int start, int end)
      Returns a range of all the ddm structure 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 DDMStructureVersionModelImpl.

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

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

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

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

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

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

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

      public static DDMStructureVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDMStructureVersionPersistence persistence)