Class LayoutSetUtil
com.liferay.portal.service.persistence.impl.LayoutSetPersistenceImpl
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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(LayoutSet layoutSet) Caches the layout set in the entity cache if it is enabled.static void
cacheResult
(List<LayoutSet> layoutSets) Caches the layout sets in the entity cache if it is enabled.static void
static void
clearCache
(LayoutSet layoutSet) static int
countAll()
Returns the number of layout sets.static int
countByC_L
(long companyId, String layoutSetPrototypeUuid) Returns the number of layout sets where companyId = ? and layoutSetPrototypeUuid = ?.static int
countByG_P
(long groupId, boolean privateLayout) Returns the number of layout sets where groupId = ? and privateLayout = ?.static int
countByGroupId
(long groupId) Returns the number of layout sets where groupId = ?.static int
countByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid) Returns the number of layout sets where layoutSetPrototypeUuid = ?.static int
countByP_L
(boolean privateLayout, long logoId) Returns the number of layout sets where privateLayout = ? and logoId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static LayoutSet
create
(long layoutSetId) Creates a new layout set with the primary key.static LayoutSet
fetchByC_L_First
(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet
fetchByC_L_Last
(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet
fetchByG_P
(long groupId, boolean privateLayout) Returns the layout set where groupId = ? and privateLayout = ? or returnsnull
if it could not be found.static LayoutSet
fetchByG_P
(long groupId, boolean privateLayout, boolean useFinderCache) Returns the layout set where groupId = ? and privateLayout = ? or returnsnull
if it could not be found, optionally using the finder cache.static LayoutSet
fetchByGroupId_First
(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where groupId = ?.static LayoutSet
fetchByGroupId_Last
(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where groupId = ?.static LayoutSet
fetchByLayoutSetPrototypeUuid_First
(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.static LayoutSet
fetchByLayoutSetPrototypeUuid_Last
(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.static LayoutSet
fetchByP_L
(boolean privateLayout, long logoId) Returns the layout set where privateLayout = ? and logoId = ? or returnsnull
if it could not be found.static LayoutSet
fetchByP_L
(boolean privateLayout, long logoId, boolean useFinderCache) Returns the layout set where privateLayout = ? and logoId = ? or returnsnull
if it could not be found, optionally using the finder cache.static LayoutSet
fetchByPrimaryKey
(long layoutSetId) Returns the layout set with the primary key or returnsnull
if it could not be found.static Map<Serializable,
LayoutSet> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) findAll()
Returns all the layout sets.findAll
(int start, int end) Returns a range of all the layout sets.findAll
(int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets.findAll
(int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets.Returns all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.Returns a range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.findByC_L
(long companyId, String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.findByC_L
(long companyId, String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet
findByC_L_First
(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet
findByC_L_Last
(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet[]
findByC_L_PrevAndNext
(long layoutSetId, long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the layout sets before and after the current layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.static LayoutSet
findByG_P
(long groupId, boolean privateLayout) Returns the layout set where groupId = ? and privateLayout = ? or throws aNoSuchLayoutSetException
if it could not be found.findByGroupId
(long groupId) Returns all the layout sets where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the layout sets where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where groupId = ?.static LayoutSet
findByGroupId_First
(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where groupId = ?.static LayoutSet
findByGroupId_Last
(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where groupId = ?.static LayoutSet[]
findByGroupId_PrevAndNext
(long layoutSetId, long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.findByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid) Returns all the layout sets where layoutSetPrototypeUuid = ?.findByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid, int start, int end) Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.findByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.findByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.static LayoutSet
findByLayoutSetPrototypeUuid_First
(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.static LayoutSet
findByLayoutSetPrototypeUuid_Last
(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.static LayoutSet[]
findByLayoutSetPrototypeUuid_PrevAndNext
(long layoutSetId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.static LayoutSet
findByP_L
(boolean privateLayout, long logoId) Returns the layout set where privateLayout = ? and logoId = ? or throws aNoSuchLayoutSetException
if it could not be found.static LayoutSet
findByPrimaryKey
(long layoutSetId) Returns the layout set with the primary key or throws aNoSuchLayoutSetException
if it could not be found.findWithDynamicQuery
(DynamicQuery dynamicQuery) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutSet> orderByComparator) static LayoutSetPersistence
static LayoutSet
remove
(long layoutSetId) Removes the layout set with the primary key from the database.static void
Removes all the layout sets from the database.static void
removeByC_L
(long companyId, String layoutSetPrototypeUuid) Removes all the layout sets where companyId = ? and layoutSetPrototypeUuid = ? from the database.static LayoutSet
removeByG_P
(long groupId, boolean privateLayout) Removes the layout set where groupId = ? and privateLayout = ? from the database.static void
removeByGroupId
(long groupId) Removes all the layout sets where groupId = ? from the database.static void
removeByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid) Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.static LayoutSet
removeByP_L
(boolean privateLayout, long logoId) Removes the layout set where privateLayout = ? and logoId = ? from the database.static void
setPersistence
(LayoutSetPersistence persistence) static LayoutSet
static LayoutSet
update
(LayoutSet layoutSet, ServiceContext serviceContext) static LayoutSet
updateImpl
(LayoutSet layoutSet)
-
Constructor Details
-
LayoutSetUtil
public LayoutSetUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutSet> orderByComparator) -
update
-
update
-
findByGroupId
Returns all the layout sets where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching layout sets
-
findByGroupId
Returns a range of all the layout sets where groupId = ?.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 fromLayoutSetModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)- Returns:
- the range of matching layout sets
-
findByGroupId
public static List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where groupId = ?.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 fromLayoutSetModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout sets
-
findByGroupId
public static List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where groupId = ?.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 fromLayoutSetModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (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 sets
-
findByGroupId_First
public static LayoutSet findByGroupId_First(long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the first layout set in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByGroupId_First
public static LayoutSet fetchByGroupId_First(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set, or
null
if a matching layout set could not be found
-
findByGroupId_Last
public static LayoutSet findByGroupId_Last(long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the last layout set in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByGroupId_Last
public static LayoutSet fetchByGroupId_Last(long groupId, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set, or
null
if a matching layout set could not be found
-
findByGroupId_PrevAndNext
public static LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.- Parameters:
layoutSetId
- the primary key of the current layout setgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout set
- Throws:
NoSuchLayoutSetException
- if a layout set with the primary key could not be foundNoSuchLayoutSetException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the layout sets where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of layout sets where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching layout sets
-
findByLayoutSetPrototypeUuid
Returns all the layout sets where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuid- Returns:
- the matching layout sets
-
findByLayoutSetPrototypeUuid
public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end) Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)- Returns:
- the range of matching layout sets
-
findByLayoutSetPrototypeUuid
public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout sets
-
findByLayoutSetPrototypeUuid
public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (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 sets
-
findByLayoutSetPrototypeUuid_First
public static LayoutSet findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByLayoutSetPrototypeUuid_First
public static LayoutSet fetchByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set, or
null
if a matching layout set could not be found
-
findByLayoutSetPrototypeUuid_Last
public static LayoutSet findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByLayoutSetPrototypeUuid_Last
public static LayoutSet fetchByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set, or
null
if a matching layout set could not be found
-
findByLayoutSetPrototypeUuid_PrevAndNext
public static LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetId
- the primary key of the current layout setlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout set
- Throws:
NoSuchLayoutSetException
- if a layout set with the primary key could not be foundNoSuchLayoutSetException
-
removeByLayoutSetPrototypeUuid
Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuid
-
countByLayoutSetPrototypeUuid
Returns the number of layout sets where layoutSetPrototypeUuid = ?.- Parameters:
layoutSetPrototypeUuid
- the layout set prototype uuid- Returns:
- the number of matching layout sets
-
findByG_P
public static LayoutSet findByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException Returns the layout set where groupId = ? and privateLayout = ? or throws aNoSuchLayoutSetException
if it could not be found.- Parameters:
groupId
- the group IDprivateLayout
- the private layout- Returns:
- the matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByG_P
Returns the layout set where groupId = ? and privateLayout = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDprivateLayout
- the private layout- Returns:
- the matching layout set, or
null
if a matching layout set could not be found
-
fetchByG_P
Returns the layout set where groupId = ? and privateLayout = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDprivateLayout
- the private layoutuseFinderCache
- whether to use the finder cache- Returns:
- the matching layout set, or
null
if a matching layout set could not be found
-
removeByG_P
public static LayoutSet removeByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException Removes the layout set where groupId = ? and privateLayout = ? from the database.- Parameters:
groupId
- the group IDprivateLayout
- the private layout- Returns:
- the layout set that was removed
- Throws:
NoSuchLayoutSetException
-
countByG_P
public static int countByG_P(long groupId, boolean privateLayout) Returns the number of layout sets where groupId = ? and privateLayout = ?.- Parameters:
groupId
- the group IDprivateLayout
- the private layout- Returns:
- the number of matching layout sets
-
findByC_L
Returns all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuid- Returns:
- the matching layout sets
-
findByC_L
public static List<LayoutSet> findByC_L(long companyId, String layoutSetPrototypeUuid, int start, int end) Returns a range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)- Returns:
- the range of matching layout sets
-
findByC_L
public static List<LayoutSet> findByC_L(long companyId, String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout sets
-
findByC_L
public static List<LayoutSet> findByC_L(long companyId, String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets where companyId = ? and layoutSetPrototypeUuid = ?.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 fromLayoutSetModelImpl
.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (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 sets
-
findByC_L_First
public static LayoutSet findByC_L_First(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the first layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByC_L_First
public static LayoutSet fetchByC_L_First(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the first layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout set, or
null
if a matching layout set could not be found
-
findByC_L_Last
public static LayoutSet findByC_L_Last(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the last layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByC_L_Last
public static LayoutSet fetchByC_L_Last(long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) Returns the last layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout set, or
null
if a matching layout set could not be found
-
findByC_L_PrevAndNext
public static LayoutSet[] findByC_L_PrevAndNext(long layoutSetId, long companyId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException Returns the layout sets before and after the current layout set in the ordered set where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
layoutSetId
- the primary key of the current layout setcompanyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout set
- Throws:
NoSuchLayoutSetException
- if a layout set with the primary key could not be foundNoSuchLayoutSetException
-
removeByC_L
Removes all the layout sets where companyId = ? and layoutSetPrototypeUuid = ? from the database.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuid
-
countByC_L
Returns the number of layout sets where companyId = ? and layoutSetPrototypeUuid = ?.- Parameters:
companyId
- the company IDlayoutSetPrototypeUuid
- the layout set prototype uuid- Returns:
- the number of matching layout sets
-
findByP_L
public static LayoutSet findByP_L(boolean privateLayout, long logoId) throws NoSuchLayoutSetException Returns the layout set where privateLayout = ? and logoId = ? or throws aNoSuchLayoutSetException
if it could not be found.- Parameters:
privateLayout
- the private layoutlogoId
- the logo ID- Returns:
- the matching layout set
- Throws:
NoSuchLayoutSetException
- if a matching layout set could not be foundNoSuchLayoutSetException
-
fetchByP_L
Returns the layout set where privateLayout = ? and logoId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
privateLayout
- the private layoutlogoId
- the logo ID- Returns:
- the matching layout set, or
null
if a matching layout set could not be found
-
fetchByP_L
Returns the layout set where privateLayout = ? and logoId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
privateLayout
- the private layoutlogoId
- the logo IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching layout set, or
null
if a matching layout set could not be found
-
removeByP_L
public static LayoutSet removeByP_L(boolean privateLayout, long logoId) throws NoSuchLayoutSetException Removes the layout set where privateLayout = ? and logoId = ? from the database.- Parameters:
privateLayout
- the private layoutlogoId
- the logo ID- Returns:
- the layout set that was removed
- Throws:
NoSuchLayoutSetException
-
countByP_L
public static int countByP_L(boolean privateLayout, long logoId) Returns the number of layout sets where privateLayout = ? and logoId = ?.- Parameters:
privateLayout
- the private layoutlogoId
- the logo ID- Returns:
- the number of matching layout sets
-
cacheResult
Caches the layout set in the entity cache if it is enabled.- Parameters:
layoutSet
- the layout set
-
cacheResult
Caches the layout sets in the entity cache if it is enabled.- Parameters:
layoutSets
- the layout sets
-
create
Creates a new layout set with the primary key. Does not add the layout set to the database.- Parameters:
layoutSetId
- the primary key for the new layout set- Returns:
- the new layout set
-
remove
Removes the layout set with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
layoutSetId
- the primary key of the layout set- Returns:
- the layout set that was removed
- Throws:
NoSuchLayoutSetException
- if a layout set with the primary key could not be foundNoSuchLayoutSetException
-
updateImpl
-
findByPrimaryKey
Returns the layout set with the primary key or throws aNoSuchLayoutSetException
if it could not be found.- Parameters:
layoutSetId
- the primary key of the layout set- Returns:
- the layout set
- Throws:
NoSuchLayoutSetException
- if a layout set with the primary key could not be foundNoSuchLayoutSetException
-
fetchByPrimaryKey
Returns the layout set with the primary key or returnsnull
if it could not be found.- Parameters:
layoutSetId
- the primary key of the layout set- Returns:
- the layout set, or
null
if a layout set with the primary key could not be found
-
findAll
Returns all the layout sets.- Returns:
- the layout sets
-
findAll
Returns a range of all the layout sets.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 fromLayoutSetModelImpl
.- Parameters:
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)- Returns:
- the range of layout sets
-
findAll
public static List<LayoutSet> findAll(int start, int end, OrderByComparator<LayoutSet> orderByComparator) Returns an ordered range of all the layout sets.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 fromLayoutSetModelImpl
.- Parameters:
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of layout sets
-
findAll
public static List<LayoutSet> findAll(int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout sets.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 fromLayoutSetModelImpl
.- Parameters:
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of layout sets
-
removeAll
public static void removeAll()Removes all the layout sets from the database. -
countAll
public static int countAll()Returns the number of layout sets.- Returns:
- the number of layout sets
-
getPersistence
-
setPersistence
-