Class LayoutLocalizationUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(LayoutLocalization layoutLocalization) Caches the layout localization in the entity cache if it is enabled.static void
cacheResult
(List<LayoutLocalization> layoutLocalizations) Caches the layout localizations in the entity cache if it is enabled.static void
static void
clearCache
(LayoutLocalization layoutLocalization) static int
countAll()
Returns the number of layout localizations.static int
countByG_L_P
(long groupId, String languageId, long plid) Returns the number of layout localizations where groupId = ? and languageId = ? and plid = ?.static int
countByL_P
(String languageId, long plid) Returns the number of layout localizations where languageId = ? and plid = ?.static int
countByPlid
(long plid) Returns the number of layout localizations where plid = ?.static int
countByUuid
(String uuid) Returns the number of layout localizations where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of layout localizations where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of layout localizations where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static LayoutLocalization
create
(long layoutLocalizationId) Creates a new layout localization with the primary key.static LayoutLocalization
fetchByG_L_P
(long groupId, String languageId, long plid) Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returnsnull
if it could not be found.static LayoutLocalization
fetchByG_L_P
(long groupId, String languageId, long plid, boolean useFinderCache) Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returnsnull
if it could not be found, optionally using the finder cache.static LayoutLocalization
fetchByL_P
(String languageId, long plid) Returns the layout localization where languageId = ? and plid = ? or returnsnull
if it could not be found.static LayoutLocalization
fetchByL_P
(String languageId, long plid, boolean useFinderCache) Returns the layout localization where languageId = ? and plid = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static LayoutLocalization
fetchByPrimaryKey
(long layoutLocalizationId) Returns the layout localization with the primary key or returnsnull
if it could not be found.static Map<Serializable,
LayoutLocalization> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 = ?.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 = ?.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 = ?.static LayoutLocalization
fetchByUUID_G
(String uuid, long groupId) Returns the layout localization where uuid = ? and groupId = ? or returnsnull
if it could not be found.static LayoutLocalization
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the layout localization where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.static List<LayoutLocalization>
findAll()
Returns all the layout localizations.static List<LayoutLocalization>
findAll
(int start, int end) Returns a range of all the layout localizations.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.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.static LayoutLocalization
findByG_L_P
(long groupId, String languageId, long plid) Returns the layout localization where groupId = ? and languageId = ? and plid = ? or throws aNoSuchLayoutLocalizationException
if it could not be found.static LayoutLocalization
Returns the layout localization where languageId = ? and plid = ? or throws aNoSuchLayoutLocalizationException
if it could not be found.static List<LayoutLocalization>
findByPlid
(long plid) Returns all the layout localizations where plid = ?.static List<LayoutLocalization>
findByPlid
(long plid, int start, int end) Returns a range of all the layout localizations where plid = ?.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 = ?.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 = ?.static LayoutLocalization
findByPlid_First
(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the first layout localization in the ordered set where plid = ?.static LayoutLocalization
findByPlid_Last
(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the last layout localization in the ordered set where plid = ?.static LayoutLocalization[]
findByPlid_PrevAndNext
(long layoutLocalizationId, long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the layout localizations before and after the current layout localization in the ordered set where plid = ?.static LayoutLocalization
findByPrimaryKey
(long layoutLocalizationId) Returns the layout localization with the primary key or throws aNoSuchLayoutLocalizationException
if it could not be found.static List<LayoutLocalization>
findByUuid
(String uuid) Returns all the layout localizations where uuid = ?.static List<LayoutLocalization>
findByUuid
(String uuid, int start, int end) Returns a range of all the layout localizations where uuid = ?.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 = ?.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 = ?.static List<LayoutLocalization>
findByUuid_C
(String uuid, long companyId) Returns all the layout localizations where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.static LayoutLocalization
findByUuid_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 = ?.static LayoutLocalization
findByUuid_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 = ?.static LayoutLocalization[]
findByUuid_C_PrevAndNext
(long layoutLocalizationId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the layout localizations before and after the current layout localization in the ordered set where uuid = ? and companyId = ?.static LayoutLocalization
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the first layout localization in the ordered set where uuid = ?.static LayoutLocalization
findByUUID_G
(String uuid, long groupId) Returns the layout localization where uuid = ? and groupId = ? or throws aNoSuchLayoutLocalizationException
if it could not be found.static LayoutLocalization
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the last layout localization in the ordered set where uuid = ?.static LayoutLocalization[]
findByUuid_PrevAndNext
(long layoutLocalizationId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) Returns the layout localizations before and after the current layout localization in the ordered set where uuid = ?.static List<LayoutLocalization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<LayoutLocalization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<LayoutLocalization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) static LayoutLocalization
remove
(long layoutLocalizationId) Removes the layout localization with the primary key from the database.static void
Removes all the layout localizations from the database.static LayoutLocalization
removeByG_L_P
(long groupId, String languageId, long plid) Removes the layout localization where groupId = ? and languageId = ? and plid = ? from the database.static LayoutLocalization
removeByL_P
(String languageId, long plid) Removes the layout localization where languageId = ? and plid = ? from the database.static void
removeByPlid
(long plid) Removes all the layout localizations where plid = ? from the database.static void
removeByUuid
(String uuid) Removes all the layout localizations where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the layout localizations where uuid = ? and companyId = ? from the database.static LayoutLocalization
removeByUUID_G
(String uuid, long groupId) Removes the layout localization where uuid = ? and groupId = ? from the database.static void
setPersistence
(LayoutLocalizationPersistence persistence) static LayoutLocalization
update
(LayoutLocalization layoutLocalization) static LayoutLocalization
update
(LayoutLocalization layoutLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static LayoutLocalization
updateImpl
(LayoutLocalization layoutLocalization)
-
Constructor Details
-
LayoutLocalizationUtil
public LayoutLocalizationUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
Returns all the layout localizations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching layout localizations
-
findByUuid
Returns a range of all the layout localizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of layout localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (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 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 localizationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundNoSuchLayoutLocalizationException
-
removeByUuid
Removes all the layout localizations where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
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 aNoSuchLayoutLocalizationException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
fetchByUUID_G
Returns the layout localization where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching layout localization, or
null
if a matching layout localization could not be found
-
fetchByUUID_G
Returns the layout localization where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- 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 uuidgroupId
- the group ID- Returns:
- the layout localization that was removed
- Throws:
NoSuchLayoutLocalizationException
-
countByUUID_G
Returns the number of layout localizations where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching layout localizations
-
findByUuid_C
Returns all the layout localizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of layout localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (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 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 localizationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundNoSuchLayoutLocalizationException
-
removeByUuid_C
Removes all the layout localizations where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of layout localizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching layout localizations
-
findByPlid
Returns all the layout localizations where plid = ?.- Parameters:
plid
- the plid- Returns:
- the matching layout localizations
-
findByPlid
Returns a range of all the layout localizations where plid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (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 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 plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 plidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
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 plidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 localizationplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundNoSuchLayoutLocalizationException
-
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 aNoSuchLayoutLocalizationException
if it could not be found.- Parameters:
languageId
- the language IDplid
- the plid- Returns:
- the matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
fetchByL_P
Returns the layout localization where languageId = ? and plid = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
languageId
- the language IDplid
- the plid- Returns:
- the matching layout localization, or
null
if a matching layout localization could not be found
-
fetchByL_P
Returns the layout localization where languageId = ? and plid = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
languageId
- the language IDplid
- the pliduseFinderCache
- 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 IDplid
- the plid- Returns:
- the layout localization that was removed
- Throws:
NoSuchLayoutLocalizationException
-
countByL_P
Returns the number of layout localizations where languageId = ? and plid = ?.- Parameters:
languageId
- the language IDplid
- 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 aNoSuchLayoutLocalizationException
if it could not be found.- Parameters:
groupId
- the group IDlanguageId
- the language IDplid
- the plid- Returns:
- the matching layout localization
- Throws:
NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundNoSuchLayoutLocalizationException
-
fetchByG_L_P
Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDlanguageId
- the language IDplid
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDlanguageId
- the language IDplid
- the pliduseFinderCache
- 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 IDlanguageId
- the language IDplid
- the plid- Returns:
- the layout localization that was removed
- Throws:
NoSuchLayoutLocalizationException
-
countByG_L_P
Returns the number of layout localizations where groupId = ? and languageId = ? and plid = ?.- Parameters:
groupId
- the group IDlanguageId
- the language IDplid
- the plid- Returns:
- the number of matching layout localizations
-
cacheResult
Caches the layout localization in the entity cache if it is enabled.- Parameters:
layoutLocalization
- the layout localization
-
cacheResult
Caches the layout localizations in the entity cache if it is enabled.- Parameters:
layoutLocalizations
- the layout localizations
-
create
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 foundNoSuchLayoutLocalizationException
-
updateImpl
-
findByPrimaryKey
public static LayoutLocalization findByPrimaryKey(long layoutLocalizationId) throws NoSuchLayoutLocalizationException Returns the layout localization with the primary key or throws aNoSuchLayoutLocalizationException
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 foundNoSuchLayoutLocalizationException
-
fetchByPrimaryKey
Returns the layout localization with the primary key or returnsnull
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
Returns all the layout localizations.- Returns:
- the layout localizations
-
findAll
Returns a range of all the layout localizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of layout localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromLayoutLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-