|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.LayoutSetUtil
public class LayoutSetUtil
The persistence utility for the layout set service. This utility wraps 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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
LayoutSetPersistence
,
LayoutSetPersistenceImpl
Constructor Summary | |
---|---|
LayoutSetUtil()
|
Method Summary | |
---|---|
static 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 |
clearCache()
|
static void |
clearCache(LayoutSet layoutSet)
|
static int |
countAll()
Counts all the layout sets. |
static int |
countByG_P(long groupId,
boolean privateLayout)
Counts all the layout sets where groupId = ? and privateLayout = ?. |
static int |
countByGroupId(long groupId)
Counts all the layout sets where groupId = ?. |
static int |
countByVirtualHost(String virtualHost)
Counts all the layout sets where virtualHost = ?. |
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)
Finds 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)
Finds the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache. |
static LayoutSet |
fetchByPrimaryKey(long layoutSetId)
Finds the layout set with the primary key or returns null if it could not be found. |
static LayoutSet |
fetchByVirtualHost(String virtualHost)
Finds the layout set where virtualHost = ? or returns null if it could not be found. |
static LayoutSet |
fetchByVirtualHost(String virtualHost,
boolean retrieveFromCache)
Finds the layout set where virtualHost = ? or returns null if it could not be found, optionally using the finder cache. |
static List<LayoutSet> |
findAll()
Finds all the layout sets. |
static List<LayoutSet> |
findAll(int start,
int end)
Finds a range of all the layout sets. |
static List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the layout sets. |
static LayoutSet |
findByG_P(long groupId,
boolean privateLayout)
Finds 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)
Finds the first layout set in the ordered set where groupId = ?. |
static LayoutSet |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last layout set in the ordered set where groupId = ?. |
static LayoutSet[] |
findByGroupId_PrevAndNext(long layoutSetId,
long groupId,
OrderByComparator orderByComparator)
Finds the layout sets before and after the current layout set in the ordered set where groupId = ?. |
static List<LayoutSet> |
findByGroupId(long groupId)
Finds all the layout sets where groupId = ?. |
static List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the layout sets where groupId = ?. |
static List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the layout sets where groupId = ?. |
static LayoutSet |
findByPrimaryKey(long layoutSetId)
Finds the layout set with the primary key or throws a NoSuchLayoutSetException if it could not be found. |
static LayoutSet |
findByVirtualHost(String virtualHost)
Finds the layout set where virtualHost = ? or throws a NoSuchLayoutSetException if it could not be found. |
static List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<LayoutSet> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static LayoutSetPersistence |
getPersistence()
|
static LayoutSet |
remove(LayoutSet layoutSet)
|
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 void |
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 |
removeByVirtualHost(String virtualHost)
Removes the layout set where virtualHost = ? from the database. |
void |
setPersistence(LayoutSetPersistence persistence)
|
static LayoutSet |
update(LayoutSet layoutSet,
boolean merge)
|
static LayoutSet |
update(LayoutSet layoutSet,
boolean merge,
ServiceContext serviceContext)
|
static LayoutSet |
updateImpl(LayoutSet layoutSet,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutSetUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(LayoutSet layoutSet)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static LayoutSet remove(LayoutSet layoutSet) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static LayoutSet update(LayoutSet layoutSet, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static LayoutSet update(LayoutSet layoutSet, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(LayoutSet layoutSet)
layoutSet
- the layout set to cachepublic static void cacheResult(List<LayoutSet> layoutSets)
layoutSets
- the layout sets to cachepublic static LayoutSet create(long layoutSetId)
layoutSetId
- the primary key for the new layout set
public static LayoutSet remove(long layoutSetId) throws NoSuchLayoutSetException, SystemException
layoutSetId
- the primary key of the layout set to remove
NoSuchLayoutSetException
- if a layout set with the primary key could not be found
SystemException
- if a system exception occurredpublic static LayoutSet updateImpl(LayoutSet layoutSet, boolean merge) throws SystemException
SystemException
public static LayoutSet findByPrimaryKey(long layoutSetId) throws NoSuchLayoutSetException, SystemException
NoSuchLayoutSetException
if it could not be found.
layoutSetId
- the primary key of the layout set to find
NoSuchLayoutSetException
- if a layout set with the primary key could not be found
SystemException
- 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 set to find
null
if a layout set with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<LayoutSet> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static 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.
groupId
- the group id to search withstart
- the lower bound of the range of layout sets to returnend
- the upper bound of the range of layout sets to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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.
groupId
- the group id to search withstart
- the lower bound of the range of layout sets to returnend
- the upper bound of the range of layout sets to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static LayoutSet findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, 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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchLayoutSetException
- if a matching layout set could not be found
SystemException
- if a system exception occurredpublic static LayoutSet findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, 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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchLayoutSetException
- if a matching layout set could not be found
SystemException
- if a system exception occurredpublic static LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, OrderByComparator orderByComparator) throws NoSuchLayoutSetException, 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.
layoutSetId
- the primary key of the current layout setgroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchLayoutSetException
- if a layout set with the primary key could not be found
SystemException
- if a system exception occurredpublic static LayoutSet findByVirtualHost(String virtualHost) throws NoSuchLayoutSetException, SystemException
NoSuchLayoutSetException
if it could not be found.
virtualHost
- the virtual host to search with
NoSuchLayoutSetException
- if a matching layout set could not be found
SystemException
- if a system exception occurredpublic static LayoutSet fetchByVirtualHost(String virtualHost) throws SystemException
null
if it could not be found. Uses the finder cache.
virtualHost
- the virtual host to search with
null
if a matching layout set could not be found
SystemException
- if a system exception occurredpublic static LayoutSet fetchByVirtualHost(String virtualHost, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
virtualHost
- the virtual host to search with
null
if a matching layout set could not be found
SystemException
- 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 id to search withprivateLayout
- the private layout to search with
NoSuchLayoutSetException
- if a matching layout set could not be found
SystemException
- 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 id to search withprivateLayout
- the private layout to search with
null
if a matching layout set could not be found
SystemException
- 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 id to search withprivateLayout
- the private layout to search with
null
if a matching layout set could not be found
SystemException
- if a system exception occurredpublic static List<LayoutSet> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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.
start
- the lower bound of the range of layout sets to returnend
- the upper bound of the range of layout sets to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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.
start
- the lower bound of the range of layout sets to returnend
- the upper bound of the range of layout sets to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static void removeByVirtualHost(String virtualHost) throws NoSuchLayoutSetException, SystemException
virtualHost
- the virtual host to search with
SystemException
- if a system exception occurred
NoSuchLayoutSetException
public static void removeByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException, SystemException
groupId
- the group id to search withprivateLayout
- the private layout to search with
SystemException
- if a system exception occurred
NoSuchLayoutSetException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static int countByVirtualHost(String virtualHost) throws SystemException
virtualHost
- the virtual host to search with
SystemException
- if a system exception occurredpublic static int countByG_P(long groupId, boolean privateLayout) throws SystemException
groupId
- the group id to search withprivateLayout
- the private layout to search with
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)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |