public class LayoutLocalizationUtil
extends java.lang.Object
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
LayoutLocalizationPersistence
Constructor and Description |
---|
LayoutLocalizationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(LayoutLocalization layoutLocalization)
Caches the layout localization in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<LayoutLocalization> layoutLocalizations)
Caches the layout localizations in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(LayoutLocalization layoutLocalization) |
static int |
countAll()
Returns the number of layout localizations.
|
static int |
countByG_L_P(long groupId,
java.lang.String languageId,
long plid)
Returns the number of layout localizations where groupId = ? and languageId = ? and plid = ?.
|
static int |
countByL_P(java.lang.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_C(java.lang.String uuid,
long companyId)
Returns the number of layout localizations where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of layout localizations where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of layout localizations where uuid = ?.
|
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,
java.lang.String languageId,
long plid)
Returns the layout localization where groupId = ? and languageId = ? and plid = ? or returns
null if it could not be found. |
static LayoutLocalization |
fetchByG_L_P(long groupId,
java.lang.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. |
static LayoutLocalization |
fetchByL_P(java.lang.String languageId,
long plid)
Returns the layout localization where languageId = ? and plid = ? or returns
null if it could not be found. |
static LayoutLocalization |
fetchByL_P(java.lang.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. |
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,LayoutLocalization> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static LayoutLocalization |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the layout localization where uuid = ? and groupId = ? or returns
null if it could not be found. |
static LayoutLocalization |
fetchByUUID_G(java.lang.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. |
static LayoutLocalization |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
Returns the last layout localization in the ordered set where uuid = ?.
|
static java.util.List<LayoutLocalization> |
findAll()
Returns all the layout localizations.
|
static java.util.List<LayoutLocalization> |
findAll(int start,
int end)
Returns a range of all the layout localizations.
|
static java.util.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 java.util.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,
java.lang.String languageId,
long plid)
Returns the layout localization where groupId = ? and languageId = ? and plid = ? or throws a
NoSuchLayoutLocalizationException if it could not be found. |
static LayoutLocalization |
findByL_P(java.lang.String languageId,
long plid)
Returns the layout localization where languageId = ? and plid = ? or throws a
NoSuchLayoutLocalizationException if it could not be found. |
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 java.util.List<LayoutLocalization> |
findByPlid(long plid)
Returns all the layout localizations where plid = ?.
|
static java.util.List<LayoutLocalization> |
findByPlid(long plid,
int start,
int end)
Returns a range of all the layout localizations where plid = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long layoutLocalizationId)
Returns the layout localization with the primary key or throws a
NoSuchLayoutLocalizationException if it could not be found. |
static LayoutLocalization |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<LayoutLocalization> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the layout localizations where uuid = ? and companyId = ?.
|
static java.util.List<LayoutLocalization> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the layout localizations where uuid = ? and companyId = ?.
|
static java.util.List<LayoutLocalization> |
findByUuid_C(java.lang.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 java.util.List<LayoutLocalization> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the layout localization where uuid = ? and groupId = ? or throws a
NoSuchLayoutLocalizationException if it could not be found. |
static LayoutLocalization |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<LayoutLocalization> |
findByUuid(java.lang.String uuid)
Returns all the layout localizations where uuid = ?.
|
static java.util.List<LayoutLocalization> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the layout localizations where uuid = ?.
|
static java.util.List<LayoutLocalization> |
findByUuid(java.lang.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 java.util.List<LayoutLocalization> |
findByUuid(java.lang.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 java.util.List<LayoutLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<LayoutLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<LayoutLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) |
static LayoutLocalizationPersistence |
getPersistence() |
static LayoutLocalization |
remove(long layoutLocalizationId)
Removes the layout localization with the primary key from the database.
|
static void |
removeAll()
Removes all the layout localizations from the database.
|
static LayoutLocalization |
removeByG_L_P(long groupId,
java.lang.String languageId,
long plid)
Removes the layout localization where groupId = ? and languageId = ? and plid = ? from the database.
|
static LayoutLocalization |
removeByL_P(java.lang.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_C(java.lang.String uuid,
long companyId)
Removes all the layout localizations where uuid = ? and companyId = ? from the database.
|
static LayoutLocalization |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the layout localization where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the layout localizations where uuid = ? 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) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(LayoutLocalization layoutLocalization)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,LayoutLocalization> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<LayoutLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<LayoutLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<LayoutLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static LayoutLocalization update(LayoutLocalization layoutLocalization)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static LayoutLocalization update(LayoutLocalization layoutLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<LayoutLocalization> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<LayoutLocalization> findByUuid(java.lang.String uuid, int start, int end)
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
.
uuid
- the uuidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)public static java.util.List<LayoutLocalization> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<LayoutLocalization> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static LayoutLocalization findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization[] findByUuid_PrevAndNext(long layoutLocalizationId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
layoutLocalizationId
- the primary key of the current layout localizationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static LayoutLocalization findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchLayoutLocalizationException
NoSuchLayoutLocalizationException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching layout localization could not be foundpublic static LayoutLocalization removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchLayoutLocalizationException
uuid
- the uuidgroupId
- the group IDNoSuchLayoutLocalizationException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<LayoutLocalization> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<LayoutLocalization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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
.
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)public static java.util.List<LayoutLocalization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<LayoutLocalization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static LayoutLocalization findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization[] findByUuid_C_PrevAndNext(long layoutLocalizationId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
layoutLocalizationId
- the primary key of the current layout localizationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<LayoutLocalization> findByPlid(long plid)
plid
- the plidpublic static java.util.List<LayoutLocalization> findByPlid(long plid, int start, int end)
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
.
plid
- the plidstart
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)public static java.util.List<LayoutLocalization> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<LayoutLocalization> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static LayoutLocalization findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
plid
- the plidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
plid
- the plidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization findByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
plid
- the plidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
plid
- the plidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout localization could not be foundpublic static LayoutLocalization[] findByPlid_PrevAndNext(long layoutLocalizationId, long plid, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator) throws NoSuchLayoutLocalizationException
layoutLocalizationId
- the primary key of the current layout localizationplid
- the plidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundpublic static void removeByPlid(long plid)
plid
- the plidpublic static int countByPlid(long plid)
plid
- the plidpublic static LayoutLocalization findByL_P(java.lang.String languageId, long plid) throws NoSuchLayoutLocalizationException
NoSuchLayoutLocalizationException
if it could not be found.languageId
- the language IDplid
- the plidNoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByL_P(java.lang.String languageId, long plid)
null
if it could not be found. Uses the finder cache.languageId
- the language IDplid
- the plidnull
if a matching layout localization could not be foundpublic static LayoutLocalization fetchByL_P(java.lang.String languageId, long plid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.languageId
- the language IDplid
- the pliduseFinderCache
- whether to use the finder cachenull
if a matching layout localization could not be foundpublic static LayoutLocalization removeByL_P(java.lang.String languageId, long plid) throws NoSuchLayoutLocalizationException
languageId
- the language IDplid
- the plidNoSuchLayoutLocalizationException
public static int countByL_P(java.lang.String languageId, long plid)
languageId
- the language IDplid
- the plidpublic static LayoutLocalization findByG_L_P(long groupId, java.lang.String languageId, long plid) throws NoSuchLayoutLocalizationException
NoSuchLayoutLocalizationException
if it could not be found.groupId
- the group IDlanguageId
- the language IDplid
- the plidNoSuchLayoutLocalizationException
- if a matching layout localization could not be foundpublic static LayoutLocalization fetchByG_L_P(long groupId, java.lang.String languageId, long plid)
null
if it could not be found. Uses the finder cache.groupId
- the group IDlanguageId
- the language IDplid
- the plidnull
if a matching layout localization could not be foundpublic static LayoutLocalization fetchByG_L_P(long groupId, java.lang.String languageId, long plid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDlanguageId
- the language IDplid
- the pliduseFinderCache
- whether to use the finder cachenull
if a matching layout localization could not be foundpublic static LayoutLocalization removeByG_L_P(long groupId, java.lang.String languageId, long plid) throws NoSuchLayoutLocalizationException
groupId
- the group IDlanguageId
- the language IDplid
- the plidNoSuchLayoutLocalizationException
public static int countByG_L_P(long groupId, java.lang.String languageId, long plid)
groupId
- the group IDlanguageId
- the language IDplid
- the plidpublic static void cacheResult(LayoutLocalization layoutLocalization)
layoutLocalization
- the layout localizationpublic static void cacheResult(java.util.List<LayoutLocalization> layoutLocalizations)
layoutLocalizations
- the layout localizationspublic static LayoutLocalization create(long layoutLocalizationId)
layoutLocalizationId
- the primary key for the new layout localizationpublic static LayoutLocalization remove(long layoutLocalizationId) throws NoSuchLayoutLocalizationException
layoutLocalizationId
- the primary key of the layout localizationNoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundpublic static LayoutLocalization updateImpl(LayoutLocalization layoutLocalization)
public static LayoutLocalization findByPrimaryKey(long layoutLocalizationId) throws NoSuchLayoutLocalizationException
NoSuchLayoutLocalizationException
if it could not be found.layoutLocalizationId
- the primary key of the layout localizationNoSuchLayoutLocalizationException
- if a layout localization with the primary key could not be foundpublic static LayoutLocalization fetchByPrimaryKey(long layoutLocalizationId)
null
if it could not be found.layoutLocalizationId
- the primary key of the layout localizationnull
if a layout localization with the primary key could not be foundpublic static java.util.List<LayoutLocalization> findAll()
public static java.util.List<LayoutLocalization> findAll(int start, int end)
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
.
start
- the lower bound of the range of layout localizationsend
- the upper bound of the range of layout localizations (not inclusive)public static java.util.List<LayoutLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<LayoutLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static LayoutLocalizationPersistence getPersistence()
public static void setPersistence(LayoutLocalizationPersistence persistence)