Class LayoutContentVersionUtil

java.lang.Object
com.liferay.layout.content.service.persistence.LayoutContentVersionUtil

public class LayoutContentVersionUtil extends Object
The persistence utility for the layout content version service. This utility wraps com.liferay.layout.content.service.persistence.impl.LayoutContentVersionPersistenceImpl 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

    • LayoutContentVersionUtil

      public LayoutContentVersionUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<LayoutContentVersion> layoutContentVersions)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(LayoutContentVersion layoutContentVersion)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

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

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

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

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

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

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

      public static LayoutContentVersion update(LayoutContentVersion layoutContentVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByPlid

      public static List<LayoutContentVersion> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout content versions where plid = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content 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 layout content versions
    • findByPlid_First

      public static LayoutContentVersion findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) throws NoSuchLayoutContentVersionException
      Returns the first layout content version in the ordered set where plid = ?.
      Parameters:
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version
    • fetchByPlid_First

      public static LayoutContentVersion fetchByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns the first layout content version in the ordered set where plid = ?.
      Parameters:
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version, or null if a matching layout content version could not be found
    • removeByPlid

      public static void removeByPlid(long plid)
      Removes all the layout content versions where plid = ? from the database.
      Parameters:
      plid - the plid
    • countByPlid

      public static int countByPlid(long plid)
      Returns the number of layout content versions where plid = ?.
      Parameters:
      plid - the plid
      Returns:
      the number of matching layout content versions
    • findByG_DH

      public static List<LayoutContentVersion> findByG_DH(long groupId, String dataHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout content versions where groupId = ? and dataHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      dataHash - the data hash
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content 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 layout content versions
    • findByG_DH_First

      public static LayoutContentVersion findByG_DH_First(long groupId, String dataHash, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) throws NoSuchLayoutContentVersionException
      Returns the first layout content version in the ordered set where groupId = ? and dataHash = ?.
      Parameters:
      groupId - the group ID
      dataHash - the data hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version
    • fetchByG_DH_First

      public static LayoutContentVersion fetchByG_DH_First(long groupId, String dataHash, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns the first layout content version in the ordered set where groupId = ? and dataHash = ?.
      Parameters:
      groupId - the group ID
      dataHash - the data hash
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version, or null if a matching layout content version could not be found
    • removeByG_DH

      public static void removeByG_DH(long groupId, String dataHash)
      Removes all the layout content versions where groupId = ? and dataHash = ? from the database.
      Parameters:
      groupId - the group ID
      dataHash - the data hash
    • countByG_DH

      public static int countByG_DH(long groupId, String dataHash)
      Returns the number of layout content versions where groupId = ? and dataHash = ?.
      Parameters:
      groupId - the group ID
      dataHash - the data hash
      Returns:
      the number of matching layout content versions
    • findByG_S

      public static List<LayoutContentVersion> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout content versions where groupId = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content 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 layout content versions
    • findByG_S_First

      public static LayoutContentVersion findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) throws NoSuchLayoutContentVersionException
      Returns the first layout content version in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version
    • fetchByG_S_First

      public static LayoutContentVersion fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns the first layout content version in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version, or null if a matching layout content version could not be found
    • removeByG_S

      public static void removeByG_S(long groupId, int status)
      Removes all the layout content versions where groupId = ? and status = ? from the database.
      Parameters:
      groupId - the group ID
      status - the status
    • countByG_S

      public static int countByG_S(long groupId, int status)
      Returns the number of layout content versions where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the number of matching layout content versions
    • findByP_V

      public static LayoutContentVersion findByP_V(long plid, int version) throws NoSuchLayoutContentVersionException
      Returns the layout content version where plid = ? and version = ? or throws a NoSuchLayoutContentVersionException if it could not be found.
      Parameters:
      plid - the plid
      version - the version
      Returns:
      the matching layout content version
    • fetchByP_V

      public static LayoutContentVersion fetchByP_V(long plid, int version, boolean useFinderCache)
      Returns the layout content version where plid = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      plid - the plid
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching layout content version, or null if a matching layout content version could not be found
    • removeByP_V

      public static LayoutContentVersion removeByP_V(long plid, int version) throws NoSuchLayoutContentVersionException
      Removes the layout content version where plid = ? and version = ? from the database.
      Parameters:
      plid - the plid
      version - the version
      Returns:
      the layout content version that was removed
      Throws:
      NoSuchLayoutContentVersionException
    • countByP_V

      public static int countByP_V(long plid, int version)
      Returns the number of layout content versions where plid = ? and version = ?.
      Parameters:
      plid - the plid
      version - the version
      Returns:
      the number of matching layout content versions
    • findByP_S

      public static List<LayoutContentVersion> findByP_S(long plid, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout content versions where plid = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content 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 layout content versions
    • findByP_S_First

      public static LayoutContentVersion findByP_S_First(long plid, int status, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) throws NoSuchLayoutContentVersionException
      Returns the first layout content version in the ordered set where plid = ? and status = ?.
      Parameters:
      plid - the plid
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version
    • fetchByP_S_First

      public static LayoutContentVersion fetchByP_S_First(long plid, int status, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns the first layout content version in the ordered set where plid = ? and status = ?.
      Parameters:
      plid - the plid
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout content version, or null if a matching layout content version could not be found
    • removeByP_S

      public static void removeByP_S(long plid, int status)
      Removes all the layout content versions where plid = ? and status = ? from the database.
      Parameters:
      plid - the plid
      status - the status
    • countByP_S

      public static int countByP_S(long plid, int status)
      Returns the number of layout content versions where plid = ? and status = ?.
      Parameters:
      plid - the plid
      status - the status
      Returns:
      the number of matching layout content versions
    • findByERC_G

      public static LayoutContentVersion findByERC_G(String externalReferenceCode, long groupId) throws NoSuchLayoutContentVersionException
      Returns the layout content version where externalReferenceCode = ? and groupId = ? or throws a NoSuchLayoutContentVersionException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching layout content version
    • fetchByERC_G

      public static LayoutContentVersion fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the layout content version where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching layout content version, or null if a matching layout content version could not be found
    • removeByERC_G

      public static LayoutContentVersion removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchLayoutContentVersionException
      Removes the layout content version where externalReferenceCode = ? and groupId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the layout content version that was removed
      Throws:
      NoSuchLayoutContentVersionException
    • countByERC_G

      public static int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of layout content versions where externalReferenceCode = ? and groupId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching layout content versions
    • create

      public static LayoutContentVersion create(long layoutContentVersionId)
      Creates a new layout content version with the primary key. Does not add the layout content version to the database.
      Parameters:
      layoutContentVersionId - the primary key for the new layout content version
      Returns:
      the new layout content version
    • remove

      public static LayoutContentVersion remove(long layoutContentVersionId) throws NoSuchLayoutContentVersionException
      Removes the layout content version with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      layoutContentVersionId - the primary key of the layout content version
      Returns:
      the layout content version that was removed
    • updateImpl

      public static LayoutContentVersion updateImpl(LayoutContentVersion layoutContentVersion)
    • findByPrimaryKey

      public static LayoutContentVersion findByPrimaryKey(long layoutContentVersionId) throws NoSuchLayoutContentVersionException
      Returns the layout content version with the primary key or throws a NoSuchLayoutContentVersionException if it could not be found.
      Parameters:
      layoutContentVersionId - the primary key of the layout content version
      Returns:
      the layout content version
    • fetchByPrimaryKey

      public static LayoutContentVersion fetchByPrimaryKey(long layoutContentVersionId)
      Returns the layout content version with the primary key or returns null if it could not be found.
      Parameters:
      layoutContentVersionId - the primary key of the layout content version
      Returns:
      the layout content version, or null if a layout content version with the primary key could not be found
    • fetchByP_V

      public static LayoutContentVersion fetchByP_V(long plid, int version)
      Returns the layout content version where plid = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      plid - the plid
      version - the version
      Returns:
      the matching layout content version, or null if a matching layout content version could not be found
    • fetchByERC_G

      public static LayoutContentVersion fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the layout content version where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching layout content version, or null if a matching layout content version could not be found
    • findByPlid

      public static List<LayoutContentVersion> findByPlid(long plid)
      Returns all the layout content versions where plid = ?.
      Parameters:
      plid - the plid
      Returns:
      the matching layout content versions
    • findByPlid

      public static List<LayoutContentVersion> findByPlid(long plid, int start, int end)
      Returns a range of all the layout content versions where plid = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      Returns:
      the range of matching layout content versions
    • findByPlid

      public static List<LayoutContentVersion> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns an ordered range of all the layout content versions where plid = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching layout content versions
    • findByG_DH

      public static List<LayoutContentVersion> findByG_DH(long groupId, String dataHash)
      Returns all the layout content versions where groupId = ? and dataHash = ?.
      Parameters:
      groupId - the group ID
      dataHash - the data hash
      Returns:
      the matching layout content versions
    • findByG_DH

      public static List<LayoutContentVersion> findByG_DH(long groupId, String dataHash, int start, int end)
      Returns a range of all the layout content versions where groupId = ? and dataHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      dataHash - the data hash
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      Returns:
      the range of matching layout content versions
    • findByG_DH

      public static List<LayoutContentVersion> findByG_DH(long groupId, String dataHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns an ordered range of all the layout content versions where groupId = ? and dataHash = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      dataHash - the data hash
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching layout content versions
    • findByG_S

      public static List<LayoutContentVersion> findByG_S(long groupId, int status)
      Returns all the layout content versions where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the matching layout content versions
    • findByG_S

      public static List<LayoutContentVersion> findByG_S(long groupId, int status, int start, int end)
      Returns a range of all the layout content versions where groupId = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      Returns:
      the range of matching layout content versions
    • findByG_S

      public static List<LayoutContentVersion> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns an ordered range of all the layout content versions where groupId = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching layout content versions
    • findByP_S

      public static List<LayoutContentVersion> findByP_S(long plid, int status)
      Returns all the layout content versions where plid = ? and status = ?.
      Parameters:
      plid - the plid
      status - the status
      Returns:
      the matching layout content versions
    • findByP_S

      public static List<LayoutContentVersion> findByP_S(long plid, int status, int start, int end)
      Returns a range of all the layout content versions where plid = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      Returns:
      the range of matching layout content versions
    • findByP_S

      public static List<LayoutContentVersion> findByP_S(long plid, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator)
      Returns an ordered range of all the layout content versions where plid = ? 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.

      Parameters:
      plid - the plid
      status - the status
      start - the lower bound of the range of layout content versions
      end - the upper bound of the range of layout content versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching layout content versions
    • getPersistence

      public static LayoutContentVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(LayoutContentVersionPersistence persistence)