Class LayoutContentVersionUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(LayoutContentVersion layoutContentVersion) static voidcacheResult(List<LayoutContentVersion> layoutContentVersions) static voidstatic voidclearCache(LayoutContentVersion layoutContentVersion) static intcountByERC_G(String externalReferenceCode, long groupId) Returns the number of layout content versions where externalReferenceCode = ? and groupId = ?.static intcountByG_DH(long groupId, String dataHash) Returns the number of layout content versions where groupId = ? and dataHash = ?.static intcountByG_S(long groupId, int status) Returns the number of layout content versions where groupId = ? and status = ?.static intcountByP_S(long plid, int status) Returns the number of layout content versions where plid = ? and status = ?.static intcountByP_V(long plid, int version) Returns the number of layout content versions where plid = ? and version = ?.static intcountByPlid(long plid) Returns the number of layout content versions where plid = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static LayoutContentVersioncreate(long layoutContentVersionId) Creates a new layout content version with the primary key.static LayoutContentVersionfetchByERC_G(String externalReferenceCode, long groupId) Returns the layout content version where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found.static LayoutContentVersionfetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache) Returns the layout content version where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static LayoutContentVersionfetchByG_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 = ?.static LayoutContentVersionfetchByG_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 = ?.static LayoutContentVersionfetchByP_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 = ?.static LayoutContentVersionfetchByP_V(long plid, int version) Returns the layout content version where plid = ? and version = ? or returnsnullif it could not be found.static LayoutContentVersionfetchByP_V(long plid, int version, boolean useFinderCache) Returns the layout content version where plid = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.static LayoutContentVersionfetchByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) Returns the first layout content version in the ordered set where plid = ?.static LayoutContentVersionfetchByPrimaryKey(long layoutContentVersionId) Returns the layout content version with the primary key or returnsnullif it could not be found.static Map<Serializable, LayoutContentVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static LayoutContentVersionfindByERC_G(String externalReferenceCode, long groupId) Returns the layout content version where externalReferenceCode = ? and groupId = ? or throws aNoSuchLayoutContentVersionExceptionif it could not be found.static List<LayoutContentVersion> findByG_DH(long groupId, String dataHash) Returns all the layout content versions where groupId = ? and dataHash = ?.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 = ?.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 = ?.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 = ?.static LayoutContentVersionfindByG_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 = ?.static List<LayoutContentVersion> findByG_S(long groupId, int status) Returns all the layout content versions where groupId = ? and status = ?.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 = ?.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 = ?.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 = ?.static LayoutContentVersionfindByG_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 = ?.static List<LayoutContentVersion> findByP_S(long plid, int status) Returns all the layout content versions where plid = ? and status = ?.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 = ?.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 = ?.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 = ?.static LayoutContentVersionfindByP_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 = ?.static LayoutContentVersionfindByP_V(long plid, int version) Returns the layout content version where plid = ? and version = ? or throws aNoSuchLayoutContentVersionExceptionif it could not be found.static List<LayoutContentVersion> findByPlid(long plid) Returns all the layout content versions where plid = ?.static List<LayoutContentVersion> findByPlid(long plid, int start, int end) Returns a range of all the layout content versions where plid = ?.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 = ?.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 = ?.static LayoutContentVersionfindByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) Returns the first layout content version in the ordered set where plid = ?.static LayoutContentVersionfindByPrimaryKey(long layoutContentVersionId) Returns the layout content version with the primary key or throws aNoSuchLayoutContentVersionExceptionif it could not be found.static List<LayoutContentVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<LayoutContentVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<LayoutContentVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutContentVersion> orderByComparator) static LayoutContentVersionremove(long layoutContentVersionId) Removes the layout content version with the primary key from the database.static LayoutContentVersionremoveByERC_G(String externalReferenceCode, long groupId) Removes the layout content version where externalReferenceCode = ? and groupId = ? from the database.static voidremoveByG_DH(long groupId, String dataHash) Removes all the layout content versions where groupId = ? and dataHash = ? from the database.static voidremoveByG_S(long groupId, int status) Removes all the layout content versions where groupId = ? and status = ? from the database.static voidremoveByP_S(long plid, int status) Removes all the layout content versions where plid = ? and status = ? from the database.static LayoutContentVersionremoveByP_V(long plid, int version) Removes the layout content version where plid = ? and version = ? from the database.static voidremoveByPlid(long plid) Removes all the layout content versions where plid = ? from the database.static voidsetPersistence(LayoutContentVersionPersistence persistence) static LayoutContentVersionupdate(LayoutContentVersion layoutContentVersion) static LayoutContentVersionupdate(LayoutContentVersion layoutContentVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static LayoutContentVersionupdateImpl(LayoutContentVersion layoutContentVersion)
-
Constructor Details
-
LayoutContentVersionUtil
public LayoutContentVersionUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,LayoutContentVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<LayoutContentVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<LayoutContentVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static LayoutContentVersion update(LayoutContentVersion layoutContentVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 plidorderByComparator- the comparator to order the set by (optionallynull)- 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 plidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout content version, or
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDdataHash- the data hashstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDdataHash- the data hashorderByComparator- the comparator to order the set by (optionallynull)- 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 IDdataHash- the data hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout content version, or
nullif a matching layout content version could not be found
-
removeByG_DH
Removes all the layout content versions where groupId = ? and dataHash = ? from the database.- Parameters:
groupId- the group IDdataHash- the data hash
-
countByG_DH
Returns the number of layout content versions where groupId = ? and dataHash = ?.- Parameters:
groupId- the group IDdataHash- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- 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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout content version, or
nullif 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 IDstatus- 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 IDstatus- 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 aNoSuchLayoutContentVersionExceptionif it could not be found.- Parameters:
plid- the plidversion- the version- Returns:
- the matching layout content version
-
fetchByP_V
Returns the layout content version where plid = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
plid- the plidversion- the versionuseFinderCache- whether to use the finder cache- Returns:
- the matching layout content version, or
nullif 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 plidversion- 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 plidversion- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstatus- the statusstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 plidstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- 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 plidstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout content version, or
nullif 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 plidstatus- 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 plidstatus- 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 aNoSuchLayoutContentVersionExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codegroupId- 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching layout content version, or
nullif 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 codegroupId- the group ID- Returns:
- the layout content version that was removed
- Throws:
NoSuchLayoutContentVersionException
-
countByERC_G
Returns the number of layout content versions where externalReferenceCode = ? and groupId = ?.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the number of matching layout content versions
-
create
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
-
findByPrimaryKey
public static LayoutContentVersion findByPrimaryKey(long layoutContentVersionId) throws NoSuchLayoutContentVersionException Returns the layout content version with the primary key or throws aNoSuchLayoutContentVersionExceptionif it could not be found.- Parameters:
layoutContentVersionId- the primary key of the layout content version- Returns:
- the layout content version
-
fetchByPrimaryKey
Returns the layout content version with the primary key or returnsnullif it could not be found.- Parameters:
layoutContentVersionId- the primary key of the layout content version- Returns:
- the layout content version, or
nullif a layout content version with the primary key could not be found
-
fetchByP_V
Returns the layout content version where plid = ? and version = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
plid- the plidversion- the version- Returns:
- the matching layout content version, or
nullif a matching layout content version could not be found
-
fetchByERC_G
Returns the layout content version where externalReferenceCode = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codegroupId- the group ID- Returns:
- the matching layout content version, or
nullif a matching layout content version could not be found
-
findByPlid
Returns all the layout content versions where plid = ?.- Parameters:
plid- the plid- Returns:
- the matching layout content versions
-
findByPlid
Returns a range of all the layout content versions where plid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstart- the lower bound of the range of layout content versionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout content versions
-
findByG_DH
Returns all the layout content versions where groupId = ? and dataHash = ?.- Parameters:
groupId- the group IDdataHash- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDdataHash- the data hashstart- the lower bound of the range of layout content versionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDdataHash- the data hashstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout content versions
-
findByG_S
Returns all the layout content versions where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching layout content versions
-
findByG_S
Returns a range of all the layout content versions where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of layout content versionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout content versions
-
findByP_S
Returns all the layout content versions where plid = ? and status = ?.- Parameters:
plid- the plidstatus- the status- Returns:
- the matching layout content versions
-
findByP_S
Returns a range of all the layout content versions where plid = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstatus- the statusstart- the lower bound of the range of layout content versionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.layout.content.model.impl.LayoutContentVersionModelImpl.- Parameters:
plid- the plidstatus- the statusstart- the lower bound of the range of layout content versionsend- the upper bound of the range of layout content versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout content versions
-
getPersistence
-
setPersistence
-