@ProviderType
public class LayoutSetUtil
extends java.lang.Object
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
LayoutSetPersistence,
LayoutSetPersistenceImpl| Constructor and Description |
|---|
LayoutSetUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(LayoutSet layoutSet)
Caches the layout set in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<LayoutSet> layoutSets)
Caches the layout sets in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(LayoutSet layoutSet) |
static int |
countAll()
Returns the number of layout sets.
|
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(java.lang.String layoutSetPrototypeUuid)
Returns the number of layout sets where layoutSetPrototypeUuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static LayoutSet |
create(long layoutSetId)
Creates a new layout set with the primary key.
|
static LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or returns
null if it could not be found. |
static LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout,
boolean retrieveFromCache)
Returns the layout set where groupId = ? and privateLayout = ? or returns
null if it could not be found, optionally using the finder cache. |
static LayoutSet |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where groupId = ?.
|
static LayoutSet |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where groupId = ?.
|
static LayoutSet |
fetchByLayoutSetPrototypeUuid_First(java.lang.String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
static LayoutSet |
fetchByLayoutSetPrototypeUuid_Last(java.lang.String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
static LayoutSet |
fetchByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or returns
null if it could not be found. |
static java.util.List<LayoutSet> |
findAll()
Returns all the layout sets.
|
static java.util.List<LayoutSet> |
findAll(int start,
int end)
Returns a range of all the layout sets.
|
static java.util.List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets.
|
static LayoutSet |
findByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or throws a
NoSuchLayoutSetException if it could not be found. |
static LayoutSet |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where groupId = ?.
|
static LayoutSet |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where groupId = ?.
|
static LayoutSet[] |
findByGroupId_PrevAndNext(long layoutSetId,
long groupId,
OrderByComparator orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.
|
static java.util.List<LayoutSet> |
findByGroupId(long groupId)
Returns all the layout sets where groupId = ?.
|
static java.util.List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the layout sets where groupId = ?.
|
static java.util.List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets where groupId = ?.
|
static LayoutSet |
findByLayoutSetPrototypeUuid_First(java.lang.String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
static LayoutSet |
findByLayoutSetPrototypeUuid_Last(java.lang.String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
static LayoutSet[] |
findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
java.lang.String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
static java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid)
Returns all the layout sets where layoutSetPrototypeUuid = ?.
|
static java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid,
int start,
int end)
Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.
|
static java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.
|
static LayoutSet |
findByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or throws a
NoSuchLayoutSetException if it could not be found. |
static java.util.List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static LayoutSetPersistence |
getPersistence() |
static LayoutSet |
remove(long layoutSetId)
Removes the layout set with the primary key from the database.
|
static void |
removeAll()
Removes all the layout sets 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(java.lang.String layoutSetPrototypeUuid)
Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.
|
void |
setPersistence(LayoutSetPersistence persistence)
Deprecated.
As of 6.2.0
|
static LayoutSet |
update(LayoutSet layoutSet) |
static LayoutSet |
update(LayoutSet layoutSet,
ServiceContext serviceContext) |
static LayoutSet |
updateImpl(LayoutSet layoutSet) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(LayoutSet layoutSet)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static LayoutSet update(LayoutSet layoutSet) throws SystemException
public static LayoutSet update(LayoutSet layoutSet, ServiceContext serviceContext) throws SystemException
public static java.util.List<LayoutSet> findByGroupId(long groupId) throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findByGroupId(long groupId, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static LayoutSet findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
layoutSetId - the primary key of the current layout setgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a layout set with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static int countByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid) throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuidSystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)SystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static LayoutSet findByLayoutSetPrototypeUuid_First(java.lang.String layoutSetPrototypeUuid, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByLayoutSetPrototypeUuid_First(java.lang.String layoutSetPrototypeUuid, OrderByComparator orderByComparator) throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet findByLayoutSetPrototypeUuid_Last(java.lang.String layoutSetPrototypeUuid, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByLayoutSetPrototypeUuid_Last(java.lang.String layoutSetPrototypeUuid, OrderByComparator orderByComparator) throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId, java.lang.String layoutSetPrototypeUuid, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, SystemException
layoutSetId - the primary key of the current layout setlayoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchLayoutSetException - if a layout set with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid)
throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuidSystemException - if a system exception occurredpublic static int countByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid)
throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuidSystemException - if a system exception occurredpublic static LayoutSet findByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException, SystemException
NoSuchLayoutSetException if it could not be found.groupId - the group IDprivateLayout - the private layoutNoSuchLayoutSetException - if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByG_P(long groupId, boolean privateLayout) throws SystemException
null if it could not be found. Uses the finder cache.groupId - the group IDprivateLayout - the private layoutnull if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByG_P(long groupId, boolean privateLayout, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.groupId - the group IDprivateLayout - the private layoutretrieveFromCache - whether to use the finder cachenull if a matching layout set could not be foundSystemException - if a system exception occurredpublic static LayoutSet removeByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException, SystemException
groupId - the group IDprivateLayout - the private layoutSystemException - if a system exception occurredNoSuchLayoutSetExceptionpublic static int countByG_P(long groupId,
boolean privateLayout)
throws SystemException
groupId - the group IDprivateLayout - the private layoutSystemException - if a system exception occurredpublic static void cacheResult(LayoutSet layoutSet)
layoutSet - the layout setpublic static void cacheResult(java.util.List<LayoutSet> layoutSets)
layoutSets - the layout setspublic static LayoutSet create(long layoutSetId)
layoutSetId - the primary key for the new layout setpublic static LayoutSet remove(long layoutSetId) throws NoSuchLayoutSetException, SystemException
layoutSetId - the primary key of the layout setNoSuchLayoutSetException - if a layout set with the primary key could not be foundSystemException - if a system exception occurredpublic static LayoutSet updateImpl(LayoutSet layoutSet) throws SystemException
SystemExceptionpublic static LayoutSet findByPrimaryKey(long layoutSetId) throws NoSuchLayoutSetException, SystemException
NoSuchLayoutSetException if it could not be found.layoutSetId - the primary key of the layout setNoSuchLayoutSetException - if a layout set with the primary key could not be foundSystemException - if a system exception occurredpublic static LayoutSet fetchByPrimaryKey(long layoutSetId) throws SystemException
null if it could not be found.layoutSetId - the primary key of the layout setnull if a layout set with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findAll(int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<LayoutSet> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static LayoutSetPersistence getPersistence()
public void setPersistence(LayoutSetPersistence persistence)