Class LayoutLocalizationUtil

java.lang.Object
com.liferay.layout.service.persistence.LayoutLocalizationUtil

public class LayoutLocalizationUtil extends Object
The persistence utility for the layout localization service. This utility wraps com.liferay.layout.service.persistence.impl.LayoutLocalizationPersistenceImpl 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

    • LayoutLocalizationUtil

      public LayoutLocalizationUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static LayoutLocalization update(LayoutLocalization layoutLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<LayoutLocalization> findByUuid(String uuid)
      Returns all the layout localizations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching layout localizations
    • findByUuid

      public static List<LayoutLocalization> findByUuid(String uuid, int start, int end)
      Returns a range of all the layout localizations where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (not inclusive)
      Returns:
      the range of matching layout localizations
    • findByUuid

      public static List<LayoutLocalization> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns an ordered range of all the layout localizations where uuid = ?.

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

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

      public static List<LayoutLocalization> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout localizations where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (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 localizations
    • findByUuid_First

      public static LayoutLocalization findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the first layout localization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByUuid_First

      public static LayoutLocalization fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns the first layout localization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout localization, or null if a matching layout localization could not be found
    • findByUuid_Last

      public static LayoutLocalization findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the last layout localization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByUuid_Last

      public static LayoutLocalization fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns the last layout localization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout localization, or null if a matching layout localization could not be found
    • findByUuid_PrevAndNext

      public static LayoutLocalization[] findByUuid_PrevAndNext(long layoutLocalizationId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the layout localizations before and after the current layout localization in the ordered set where uuid = ?.
      Parameters:
      layoutLocalizationId - the primary key of the current layout localization
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a layout localization with the primary key could not be found
      NoSuchLayoutLocalizationException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the layout localizations where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of layout localizations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching layout localizations
    • findByUUID_G

      public static LayoutLocalization findByUUID_G(String uuid, long groupId) throws NoSuchLayoutLocalizationException
      Returns the layout localization where uuid = ? and groupId = ? or throws a NoSuchLayoutLocalizationException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByUUID_G

      public static LayoutLocalization fetchByUUID_G(String uuid, long groupId)
      Returns the layout localization where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • fetchByUUID_G

      public static LayoutLocalization fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the layout localization where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • removeByUUID_G

      public static LayoutLocalization removeByUUID_G(String uuid, long groupId) throws NoSuchLayoutLocalizationException
      Removes the layout localization where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the layout localization that was removed
      Throws:
      NoSuchLayoutLocalizationException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of layout localizations where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching layout localizations
    • findByUuid_C

      public static List<LayoutLocalization> findByUuid_C(String uuid, long companyId)
      Returns all the layout localizations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching layout localizations
    • findByUuid_C

      public static List<LayoutLocalization> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the layout localizations where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (not inclusive)
      Returns:
      the range of matching layout localizations
    • findByUuid_C

      public static List<LayoutLocalization> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns an ordered range of all the layout localizations where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching layout localizations
    • findByUuid_C

      public static List<LayoutLocalization> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout localizations where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (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 localizations
    • findByUuid_C_First

      public static LayoutLocalization findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the first layout localization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByUuid_C_First

      public static LayoutLocalization fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns the first layout localization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout localization, or null if a matching layout localization could not be found
    • findByUuid_C_Last

      public static LayoutLocalization findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the last layout localization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByUuid_C_Last

      public static LayoutLocalization fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns the last layout localization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout localization, or null if a matching layout localization could not be found
    • findByUuid_C_PrevAndNext

      public static LayoutLocalization[] findByUuid_C_PrevAndNext(long layoutLocalizationId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the layout localizations before and after the current layout localization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      layoutLocalizationId - the primary key of the current layout localization
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a layout localization with the primary key could not be found
      NoSuchLayoutLocalizationException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the layout localizations where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of layout localizations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching layout localizations
    • findByPlid

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

      public static List<LayoutLocalization> findByPlid(long plid, int start, int end)
      Returns a range of all the layout localizations 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 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 LayoutLocalizationModelImpl.

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

      public static List<LayoutLocalization> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns an ordered range of all the layout localizations 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 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 LayoutLocalizationModelImpl.

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

      public static List<LayoutLocalization> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout localizations 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 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 LayoutLocalizationModelImpl.

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

      public static LayoutLocalization findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the first layout localization 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 localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByPlid_First

      public static LayoutLocalization fetchByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns the first layout localization 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 localization, or null if a matching layout localization could not be found
    • findByPlid_Last

      public static LayoutLocalization findByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the last layout localization in the ordered set where plid = ?.
      Parameters:
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByPlid_Last

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

      public static LayoutLocalization[] findByPlid_PrevAndNext(long layoutLocalizationId, long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
      Returns the layout localizations before and after the current layout localization in the ordered set where plid = ?.
      Parameters:
      layoutLocalizationId - the primary key of the current layout localization
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a layout localization with the primary key could not be found
      NoSuchLayoutLocalizationException
    • removeByPlid

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

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

      public static LayoutLocalization findByL_P(String languageId, long plid) throws NoSuchLayoutLocalizationException
      Returns the layout localization where languageId = ? and plid = ? or throws a NoSuchLayoutLocalizationException if it could not be found.
      Parameters:
      languageId - the language ID
      plid - the plid
      Returns:
      the matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByL_P

      public static LayoutLocalization fetchByL_P(String languageId, long plid)
      Returns the layout localization where languageId = ? and plid = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      languageId - the language ID
      plid - the plid
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • fetchByL_P

      public static LayoutLocalization fetchByL_P(String languageId, long plid, boolean useFinderCache)
      Returns the layout localization where languageId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      languageId - the language ID
      plid - the plid
      useFinderCache - whether to use the finder cache
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • removeByL_P

      public static LayoutLocalization removeByL_P(String languageId, long plid) throws NoSuchLayoutLocalizationException
      Removes the layout localization where languageId = ? and plid = ? from the database.
      Parameters:
      languageId - the language ID
      plid - the plid
      Returns:
      the layout localization that was removed
      Throws:
      NoSuchLayoutLocalizationException
    • countByL_P

      public static int countByL_P(String languageId, long plid)
      Returns the number of layout localizations where languageId = ? and plid = ?.
      Parameters:
      languageId - the language ID
      plid - the plid
      Returns:
      the number of matching layout localizations
    • findByG_L_P

      public static LayoutLocalization findByG_L_P(long groupId, String languageId, long plid) throws NoSuchLayoutLocalizationException
      Returns the layout localization where groupId = ? and languageId = ? and plid = ? or throws a NoSuchLayoutLocalizationException if it could not be found.
      Parameters:
      groupId - the group ID
      languageId - the language ID
      plid - the plid
      Returns:
      the matching layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a matching layout localization could not be found
      NoSuchLayoutLocalizationException
    • fetchByG_L_P

      public static LayoutLocalization fetchByG_L_P(long groupId, String languageId, long plid)
      Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      languageId - the language ID
      plid - the plid
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • fetchByG_L_P

      public static LayoutLocalization fetchByG_L_P(long groupId, String languageId, long plid, boolean useFinderCache)
      Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      languageId - the language ID
      plid - the plid
      useFinderCache - whether to use the finder cache
      Returns:
      the matching layout localization, or null if a matching layout localization could not be found
    • removeByG_L_P

      public static LayoutLocalization removeByG_L_P(long groupId, String languageId, long plid) throws NoSuchLayoutLocalizationException
      Removes the layout localization where groupId = ? and languageId = ? and plid = ? from the database.
      Parameters:
      groupId - the group ID
      languageId - the language ID
      plid - the plid
      Returns:
      the layout localization that was removed
      Throws:
      NoSuchLayoutLocalizationException
    • countByG_L_P

      public static int countByG_L_P(long groupId, String languageId, long plid)
      Returns the number of layout localizations where groupId = ? and languageId = ? and plid = ?.
      Parameters:
      groupId - the group ID
      languageId - the language ID
      plid - the plid
      Returns:
      the number of matching layout localizations
    • cacheResult

      public static void cacheResult(LayoutLocalization layoutLocalization)
      Caches the layout localization in the entity cache if it is enabled.
      Parameters:
      layoutLocalization - the layout localization
    • cacheResult

      public static void cacheResult(List<LayoutLocalization> layoutLocalizations)
      Caches the layout localizations in the entity cache if it is enabled.
      Parameters:
      layoutLocalizations - the layout localizations
    • create

      public static LayoutLocalization create(long layoutLocalizationId)
      Creates a new layout localization with the primary key. Does not add the layout localization to the database.
      Parameters:
      layoutLocalizationId - the primary key for the new layout localization
      Returns:
      the new layout localization
    • remove

      public static LayoutLocalization remove(long layoutLocalizationId) throws NoSuchLayoutLocalizationException
      Removes the layout localization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      layoutLocalizationId - the primary key of the layout localization
      Returns:
      the layout localization that was removed
      Throws:
      NoSuchLayoutLocalizationException - if a layout localization with the primary key could not be found
      NoSuchLayoutLocalizationException
    • updateImpl

      public static LayoutLocalization updateImpl(LayoutLocalization layoutLocalization)
    • findByPrimaryKey

      public static LayoutLocalization findByPrimaryKey(long layoutLocalizationId) throws NoSuchLayoutLocalizationException
      Returns the layout localization with the primary key or throws a NoSuchLayoutLocalizationException if it could not be found.
      Parameters:
      layoutLocalizationId - the primary key of the layout localization
      Returns:
      the layout localization
      Throws:
      NoSuchLayoutLocalizationException - if a layout localization with the primary key could not be found
      NoSuchLayoutLocalizationException
    • fetchByPrimaryKey

      public static LayoutLocalization fetchByPrimaryKey(long layoutLocalizationId)
      Returns the layout localization with the primary key or returns null if it could not be found.
      Parameters:
      layoutLocalizationId - the primary key of the layout localization
      Returns:
      the layout localization, or null if a layout localization with the primary key could not be found
    • findAll

      public static List<LayoutLocalization> findAll()
      Returns all the layout localizations.
      Returns:
      the layout localizations
    • findAll

      public static List<LayoutLocalization> findAll(int start, int end)
      Returns a range of all the layout localizations.

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

      Parameters:
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (not inclusive)
      Returns:
      the range of layout localizations
    • findAll

      public static List<LayoutLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
      Returns an ordered range of all the layout localizations.

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

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

      public static List<LayoutLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the layout localizations.

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

      Parameters:
      start - the lower bound of the range of layout localizations
      end - the upper bound of the range of layout localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of layout localizations
    • removeAll

      public static void removeAll()
      Removes all the layout localizations from the database.
    • countAll

      public static int countAll()
      Returns the number of layout localizations.
      Returns:
      the number of layout localizations
    • getPersistence

      public static LayoutLocalizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(LayoutLocalizationPersistence persistence)